JPH1049309A - Scsi/tcq control system - Google Patents

Scsi/tcq control system

Info

Publication number
JPH1049309A
JPH1049309A JP19935096A JP19935096A JPH1049309A JP H1049309 A JPH1049309 A JP H1049309A JP 19935096 A JP19935096 A JP 19935096A JP 19935096 A JP19935096 A JP 19935096A JP H1049309 A JPH1049309 A JP H1049309A
Authority
JP
Japan
Prior art keywords
tcq
command
upper limit
magnetic disk
limit value
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
Application number
JP19935096A
Other languages
Japanese (ja)
Other versions
JP2972583B2 (en
Inventor
Shinji Sato
伸司 佐藤
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 Software Shikoku Ltd
Original Assignee
NEC Software Shikoku Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP8199350A priority Critical patent/JP2972583B2/en
Publication of JPH1049309A publication Critical patent/JPH1049309A/en
Application granted granted Critical
Publication of JP2972583B2 publication Critical patent/JP2972583B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To sufficiently derive the performance of a magnetic disk drive and to speed up processing without making a request exceeding the performance by setting the upper-limit value of the number of issued tagged command queuing(TCQ) commands in device ID units. SOLUTION: An information processor 1 which is connected to magnetic disk drives 5 and 6 through a SCSI bus 7 makes the TCQ command issue of the SCSI control driver 3 of an OS 2 efficient and consists of a command issue processing part 33, a command end processing part 34, and a current counter 31 and a save counter 32 provided in a memory 4. The current counter 31 stores the number of commands which are issued by the SCSI control driver 3 and being executed in ID units and the save counter 32 stores a permissible upper-limit value in ID units. The command issue processing part 33 compares the issue number with the upper-limit value to previously detect the issue of TCQ commands exceeding the upper-limit value and enqueue them. The command end processing part 34 subtracts the issue number in end response and sets the current issue num ber to the upper-limit value of the save counter 32 in queue-full response.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はSCSI・TCQ制
御方式に関し、特にSCSIバスを介しTCQ機能を持
つ複数の磁気ディスク装置と接続された情報処理装置の
SCSI・TCQ制御方式に関する。
The present invention relates to a SCSI / TCQ control method, and more particularly to a SCSI / TCQ control method for an information processing device connected to a plurality of magnetic disk devices having a TCQ function via a SCSI bus.

【0002】[0002]

【従来の技術】TCQ(Tagged Command
Queueing)機能とは、磁気ディスク装置が複
数のコマンドを受け付けタグを付けて一時記憶し、順番
に実行して回答する機能であり、磁気ディスク装置のア
クセス速度には限界があり、コマンドの受け付けから応
答までに時間がかかるため、特にマルチタスク処理を行
う情報処理装置の処理効率を改善するために設けられて
いる。
2. Description of the Related Art TCQ (Tagged Command)
The queuing function is a function in which the magnetic disk device receives a plurality of commands, temporarily stores them with a tag, temporarily executes them, and responds by sequentially executing the commands. The access speed of the magnetic disk device is limited, Since it takes time to respond, it is provided especially to improve the processing efficiency of an information processing apparatus that performs multitask processing.

【0003】SCSIバスに接続して使用されるSCS
I磁気ディスク装置(以下、単に磁気ディスク装置と称
す)には、装置規模の異なるものが複数の装置製造者か
ら供給されており、TCQ機能を備えた場合にも、磁気
ディスク装置が受け付け可能な最大TCQコマンド数は
装置規模や装置製造者により異なっている。
SCS used by connecting to a SCSI bus
The I magnetic disk device (hereinafter, simply referred to as a magnetic disk device) is supplied from a plurality of device manufacturers with different device sizes, and can be accepted by the magnetic disk device even if it has a TCQ function. The maximum number of TCQ commands varies depending on the device scale and the device manufacturer.

【0004】TCQ機能を備えた磁気ディスク装置は、
上位の情報処理装置からTCQコマンドが転送された場
合、その磁気ディスク装置の最大TCQコマンド数に達
するまでは、転送されたTCQコマンドを受け付けてメ
モリに記憶し処理終了時に終了応答を返すが、既に最大
TCQコマンド数のコマンドがメモリに記憶されていた
場合にはキューフル応答(Queueing Full
Status)を返送し、転送されたTCQコマンド
の受け付けを拒否する。
A magnetic disk device having a TCQ function is:
When a TCQ command is transferred from a higher-level information processing device, the transferred TCQ command is received and stored in a memory, and an end response is returned at the end of processing until the maximum number of TCQ commands of the magnetic disk device is reached. If the maximum number of TCQ commands has been stored in the memory, the queue full response (Queueing Full Response)
Status), and rejects acceptance of the transferred TCQ command.

【0005】SCSIバスを介して接続されたTCQ機
能を持つ複数の磁気ディスク装置を制御する情報処理装
置の従来のSCSI・TCQ制御方式は、磁気ディスク
装置の持つ受け付け可能な最大TCQコマンド数が装置
規模や装置製造者により異なること、キューフル応答が
頻繁に発生すると磁気ディスク装置に対するアクセス性
能が低下することを考慮し、1台の磁気ディスク装置に
対して発行するTCQコマンド数に上限を設定し、この
上限値としてSCSIバスに接続されている磁気ディス
ク装置の中の最大TCQコマンド数の最も小さい値を選
択し、すべての磁気ディスク装置に共通の固有値として
持つ方法が一般的であった。
[0005] In the conventional SCSI TCQ control method of an information processing device for controlling a plurality of magnetic disk devices having a TCQ function connected via a SCSI bus, the maximum number of TCQ commands that the magnetic disk device can accept is limited to the device. In consideration of the fact that the size and the device manufacturer differ, and that the access performance to the magnetic disk device deteriorates when the queue full response occurs frequently, an upper limit is set for the number of TCQ commands issued to one magnetic disk device, In general, a method of selecting the smallest value of the maximum number of TCQ commands among the magnetic disk devices connected to the SCSI bus as this upper limit value and having it as a unique value common to all magnetic disk devices has been common.

【0006】[0006]

【発明が解決しようとする課題】上述した従来のSCS
I・TCQ制御方式の問題点は、磁気ディスク装置に対
するTCQコマンド発行数の上限を、すべての磁気ディ
スク装置に共通の固定値として最小値を設定しているた
め、ある磁気ディスク装置ではまだTCQコマンドを受
け付ける余裕があるにもかかわらず、TCQコマンドの
発行を制限してしまい磁気ディスク装置の持つ性能を十
分に引き出していないことである。
The above-described conventional SCS
The problem with the I • TCQ control method is that the upper limit of the number of TCQ commands issued to the magnetic disk device is set to a minimum value as a fixed value common to all magnetic disk devices. Despite having room to accept, the issue of the TCQ command is restricted, and the performance of the magnetic disk device is not fully exploited.

【0007】本発明の目的は、磁気ディスク装置に対す
るTCQコマンド発行数の上限値を装置(SCSI・I
D)単位に最大TCQコマンド数と同じに自動設定し管
理することにより、SCSIバスに接続されている各磁
気ディスク装置の性能を十分に引き出し、且つ性能以上
の要求を行わずキューフル応答の発生を防ぎ無駄な処理
を無くし、処理の高速化を可能とするSCSI・TCQ
制御方式を提供することである。
An object of the present invention is to set the upper limit of the number of TCQ commands issued to a magnetic disk drive (SCSI I / O).
D) By automatically setting and managing the same as the maximum number of TCQ commands in units, the performance of each magnetic disk device connected to the SCSI bus can be sufficiently extracted, and the occurrence of a queue full response can be achieved without requesting a performance higher than the performance. SCSI / TCQ that eliminates wasted processing and speeds up processing
It is to provide a control method.

【0008】[0008]

【課題を解決するための手段】請求項1のSCSI・T
CQ制御方式は、TCQ機能を有する複数の磁気ディス
ク装置とSCSIバスで接続された情報処理装置のTC
Qコマンドの発行を制御するSCSI・TCQ制御方式
において、装置ID単位に実行中のTCQコマンド数を
記憶するカレント値記憶手段と、装置ID単位に発行を
許容するTCQコマンド数を記憶する上限値記憶手段
と、装置ID単位ごとに前記カレント値記憶手段の記憶
値が前記上限記憶手段の上限値に達しないとき前記カレ
ント値記憶手段の記憶値に1を加算してTCQコマンド
を発行する前記カレント値記憶手段の記憶値が前記上限
記憶手段の上限値に達した場合は発行を待ち合わせるコ
マンド発行処理手段と、前記磁気ディスク装置からTC
Qコマンドに対する終了報告を受け前記カレント値記憶
手段の記憶値から1を減算するコマンド終了処理手段と
を備えて構成されている。
A SCSI-T according to claim 1
The CQ control method is based on the TC of an information processing device connected to a plurality of magnetic disk devices having a TCQ function via a SCSI bus.
In the SCSI / TCQ control method for controlling the issuance of Q commands, a current value storage means for storing the number of TCQ commands being executed for each device ID, and an upper limit value for storing the number of TCQ commands permitted to be issued for each device ID Means for adding a TCQ command by adding 1 to the storage value of the current value storage means when the storage value of the current value storage means does not reach the upper limit of the upper limit storage means for each device ID unit A command issuance processing unit that waits for issuance when the storage value of the storage unit reaches the upper limit value of the upper limit storage unit;
Command termination processing means for receiving a termination report for the Q command and subtracting 1 from the stored value of the current value storage means.

【0009】請求項2のSCSI・TCQ制御方式は、
請求項1記載のSCSI・TCQ制御方式において、前
記コマンド発行処理手段が、前記上限値記憶手段に有効
な上限値が記憶されていないときには前記カレント値記
憶手段の記憶値に1を加算してTCQコマンドを発行す
る機能を併せ備え、前記コマンド終了処理手段が、磁気
ディスク装置からキューフル応答を受けたときに前記カ
レント値記憶手段の記憶値を前記上限値記憶手段の上限
値として格納した後に前記カレント値記憶手段の記憶値
から1を減算する機能を併せ備えたことを特徴としてい
る。
The SCSI / TCQ control method according to claim 2 is as follows.
2. The SCSI / TCQ control method according to claim 1, wherein said command issuing processing means adds a 1 to a value stored in said current value storage means when said effective upper limit value is not stored in said upper limit value storage means. A command issuing function, wherein the command termination processing means stores the storage value of the current value storage means as the upper limit value of the upper limit value storage means when the queue completion response is received from the magnetic disk device, and thereafter the It is characterized by having a function of subtracting 1 from the value stored in the value storage means.

【0010】請求項3のSCSI・TCQ制御方式は、
請求項1又は請求項2に記載されたSCSI・TCQ制
御方式において、前記上限値記憶手段が、電気的に書き
換え可能な不揮発性メモリにより構成されていることを
特徴としている。
[0010] The SCSI / TCQ control method according to claim 3 is as follows.
In the SCSI / TCQ control method according to claim 1 or 2, the upper limit value storage means is constituted by an electrically rewritable nonvolatile memory.

【0011】[0011]

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

【0012】図1は本発明の一実施形態の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention.

【0013】本実施形態のSCSI・TCQ制御方式
は、図1に示すように、SCSIバス7を介して異なる
製造者の磁気ディスク装置5及び6と接続された情報処
理装置1において、OS2中のSCSI制御ドライバ3
が最大TCQコマンド数が任意の磁気ディスク装置5及
び6にTCQコマンドを発行する際の効率を改善するた
めのものであり、SCSI制御ドライバ3に含まれるコ
マンド発行処理部33及びコマンド終了処理部34と、
メモリ4に設けられたカレントカウンタ31及びセーブ
カウンタ32とで構成されている。
As shown in FIG. 1, the SCSI / TCQ control method of the present embodiment uses the information processing device 1 connected to the magnetic disk devices 5 and 6 of different manufacturers via the SCSI bus 7 in the OS2. SCSI control driver 3
Is for improving the efficiency of issuing TCQ commands to the magnetic disk devices 5 and 6 having the maximum number of TCQ commands, and the command issue processing unit 33 and the command end processing unit 34 included in the SCSI control driver 3. When,
It comprises a current counter 31 and a save counter 32 provided in the memory 4.

【0014】カレントカウンタ31は、SCSI制御ド
ライバ3が発行した実行中のTCQコマンド数を磁気デ
ィスク装置(SCSI・ID)単位に管理するためのも
のであり、磁気ディスク装置ごとにTCQコマンドが発
行されると該当するIDの発行数に1が加算され、処理
が終了すると発行数から1が減算される。
The current counter 31 manages the number of executing TCQ commands issued by the SCSI control driver 3 for each magnetic disk device (SCSI ID), and issues a TCQ command for each magnetic disk device. Then, 1 is added to the issued number of the corresponding ID, and when the processing is completed, 1 is subtracted from the issued number.

【0015】セーブカウンタ32は、磁気ディスク装置
(SCSI・ID)単位で発行可能なTCQコマンドの
上限値を格納するもので、この実施形態では各磁気ディ
スク装置の受け付け可能な最大TCQコマンド数が自動
的に設定される。
The save counter 32 stores the upper limit of TCQ commands that can be issued in units of magnetic disk devices (SCSI IDs). In this embodiment, the maximum number of TCQ commands that can be accepted by each magnetic disk device is automatically set. Is set.

【0016】コマンド発行処理部33は、磁気ディスク
装置5及び6に対してTCQコマンドを発行するための
処理を行う手段で、カレントカウンタ31及びセーブカ
ウンタ32を使用して、最大TCQコマンド数を超える
TCQコマンドの発行を事前に検出して待ち合わせ、無
駄なTCQコマンドの発行とキューフル応答の交換を防
止する機能を備えている。
The command issuance processing section 33 is a means for performing processing for issuing a TCQ command to the magnetic disk devices 5 and 6, and uses the current counter 31 and the save counter 32 to exceed the maximum number of TCQ commands. It has a function to detect the issuance of a TCQ command in advance and wait for it to prevent useless TCQ command issuance and exchange of queue full responses.

【0017】コマンド終了処理部34は、磁気ディスク
装置5及び6からのTCQコマンドに対する応答を受け
て終了処理を行う手段で、カレントカウンタ31の発行
数を減算する通常処理に加え、キューフル応答を受けた
ときセーブカウンタ32に最大TCQコマンド数を設定
する機能を備えている。
The command termination processing section 34 receives the response to the TCQ command from the magnetic disk devices 5 and 6 and performs termination processing. The command termination processing section 34 receives a queue full response in addition to the normal processing of subtracting the number of current counters 31 issued. A function of setting the maximum number of TCQ commands in the save counter 32 when the timer is turned on.

【0018】図2は、コマンド発行処理部33の処理手
順を示した流れ図である。
FIG. 2 is a flowchart showing the processing procedure of the command issuing processing unit 33.

【0019】SCSI制御ドライバ3は、その初期化時
にカレントカウンタ31とセーブカウンタ32とを共に
初期化し、すべてのIDに対する発行数および上限値に
有効な値(0以外)がセットされていない状態とした
後、動作を開始する。
The SCSI control driver 3 initializes both the current counter 31 and the save counter 32 at the time of the initialization, and sets a state in which valid values (other than 0) are not set for the number of issued IDs and the upper limit value for all IDs. After that, the operation starts.

【0020】SCSI制御ドライバ3が磁気ディスク装
置5,6に対してTCQコマンドを発行するとき、コマ
ンド発行処理部33はセーブカウンタ32中のコマンド
発行対象の磁気ディスク装置に該当するIDの上限値エ
リアに有効な値がセットされているか否かをチェックす
る(ステップS1)。有効な値がセットされていない
(上限値=0)場合には(ステップS2)、カレントカ
ウンタ31中の該当するIDの発行数エリアの値に1を
加算し、磁気ディスク装置に対してTCQコマンドを発
行する(ステップS3)。
When the SCSI control driver 3 issues a TCQ command to the magnetic disk devices 5 and 6, the command issuance processing unit 33 sets the upper limit area of the ID corresponding to the magnetic disk device to which the command is to be issued in the save counter 32. It is checked whether or not a valid value is set in (step S1). If a valid value is not set (upper limit value = 0) (step S2), 1 is added to the value of the issue number area of the corresponding ID in the current counter 31, and a TCQ command is issued to the magnetic disk device. Is issued (step S3).

【0021】ステップS2におけるチェックの結果、セ
ーブカウンタ32に有効な値がセットされていた場合に
は、カレントカウンタ31中の該当するIDの発行数
(C)とセーブカウンタ32中の該当するIDの上限値
(S)とを比較して(ステップS4)、カレントカウン
タ31の発行数(C)が小さい場合(C<S)には(ス
テップS5)、ステップS3に進みセーブカウンタ32
に有効な値がセットされていない場合と同じ処理でカレ
ントカウンタ31の発行数(C)に1を加算し磁気ディ
スク装置に対してTCQコマンドを発行する。
As a result of the check in step S2, if a valid value is set in the save counter 32, the number of issued IDs (C) of the corresponding ID in the current counter 31 and the number of Comparing with the upper limit value (S) (step S4), if the issued number (C) of the current counter 31 is small (C <S) (step S5), the process proceeds to step S3 and the save counter 32
In the same processing as when the valid value is not set in the command, 1 is added to the issued number (C) of the current counter 31 and a TCQ command is issued to the magnetic disk device.

【0022】ステップS5での比較の結果、カレントカ
ウンタ31の発行数(C)がセーブカウンタ32の上限
値(S)と等しい(C=S)場合は、磁気ディスク装置
に対するTCQコマンドの発行を待ち合わせる(ステッ
プS6)。このTCQコマンドの発行は、該当IDの磁
気ディスク装置から終了報告が発生し、コマンド終了処
理部34によりカレントカウンタ31の該当IDの発行
数が減算され、セーブカウンタ32の上限値より小さく
なるまで待たされる。
As a result of the comparison in step S5, if the number of issues (C) of the current counter 31 is equal to the upper limit (S) of the save counter 32 (C = S), the process waits for the issuance of a TCQ command to the magnetic disk device. (Step S6). The issuance of this TCQ command is waited until a completion report is generated from the magnetic disk device of the corresponding ID, the number of issued IDs of the current counter 31 is reduced by the command completion processing unit 34, and the number is reduced below the upper limit of the save counter 32. It is.

【0023】図3は、コマンド終了処理部34の処理手
順を示した流れ図である。
FIG. 3 is a flowchart showing the processing procedure of the command end processing unit 34.

【0024】コマンド終了処理部34は、TCQコマン
ド終了報告時に磁気ディスク装置から返される終了ステ
ータスをチェックし(ステップS11)、キューフル応
答の場合には(ステップS12)、カレントカウンタ3
1のコマンド終了報告対象の磁気ディスク装置のIDに
対応する発行数エリアの値を、セーブカウンタ32の同
じIDに対応する上限値エリアに格納し、コマンド発行
処理部33に対して発行したTCQコマンドが受け付け
られなかった旨を通知し再発行処理を指示する(ステッ
プS13)。その後、カレントカウンタ31の該当ID
の発行数から1を減算する(ステップS14)。ステッ
プS12の判定がキューフル応答でなく正常終了であれ
ば、直ちにステップS14に進み処理を終了する。
The command end processing unit 34 checks the end status returned from the magnetic disk device at the time of reporting the TCQ command end (step S11). If the response is a queue full response (step S12), the current counter 3
1 is stored in the upper limit area corresponding to the same ID of the save counter 32, and the TCQ command issued to the command Is notified and a reissue process is instructed (step S13). Then, the corresponding ID of the current counter 31
Is subtracted from the issuance number (step S14). If the determination in step S12 is not a queue full response but is a normal end, the process immediately proceeds to step S14 and ends.

【0025】以上詳細に説明したように、本実施形態の
SCSI・TCQコマンド制御方式では、カレントカウ
ンタ31及びセーブカウンタ32を共に初期化した状態
から始動すると、一度キューフル応答を受信すると、そ
の磁気ディスク装置の持つ最大TCQコマンド数が自動
的に上限値としてセーブカウンタ32に設定され、それ
以降はTCQコマンドの発行前にキューフル状態を検出
してTCQコマンドの発行を待ち合わせる。これにより
個々の磁気ディスク装置の性能を最大に引き出し、且
つ、磁気ディスク装置の持つ性能以上の要求を行わない
ことから無駄な処理が発生することがなくなるので、磁
気ディスク装置に対する処理の高速化が可能となる。
As described in detail above, according to the SCSI / TCQ command control method of this embodiment, when the current counter 31 and the save counter 32 are started from the initialized state, once the queue full response is received, the magnetic disk The maximum number of TCQ commands of the apparatus is automatically set as an upper limit value in the save counter 32. Thereafter, before issuing the TCQ command, a queue full state is detected and the issuing of the TCQ command is waited for. As a result, the performance of each magnetic disk device is maximized, and unnecessary processing does not occur because requests that exceed the performance of the magnetic disk device are not made. It becomes possible.

【0026】上述した実施態様の説明では、カレントカ
ウンタ,セーブカウンタは同じメモリ内に設けられ、双
方が初期化された状態から始動するものとした。これに
対して、カレントカウンタは通常のRAMに設けるがセ
ーブカウンタを電気的に書き換え可能な不揮発性メモリ
(EEPROM)に設けると、電源を切った場合でも一
度記憶された上限値は保存されるので、カレントカウン
タのみを初期化して始動するようにすればよく、磁気デ
ィスク装置の構成に変動があった場合にはセーブカウン
タの必要なIDの上限値のみを初期化すればよい。
In the above description of the embodiment, the current counter and the save counter are provided in the same memory, and are started from a state where both are initialized. On the other hand, if the current counter is provided in a normal RAM, but the save counter is provided in an electrically rewritable nonvolatile memory (EEPROM), the upper limit once stored is saved even when the power is turned off. Only the current counter needs to be initialized and started, and if there is a change in the configuration of the magnetic disk device, only the upper limit value of the ID required for the save counter needs to be initialized.

【0027】又、上述の実施態様は、セーブカウンタの
上限値を自動的に装置の最大TCQコマンド数に設定す
るものであるが、SCSIバスに接続される磁気ディス
ク装置の特性に合わせて、あらかじめIDごとに上限値
を設定したテーブルを作成して外部記憶装置に保存して
おき、起動時にメモリに読み込むように構成しても、装
置構成の変更時に修正を行う煩わしさはあるが同様な効
果が得られる。なお、テーブルを外部記憶装置でなく装
置内のEEPROMに作成し、装置構成の変更時のみに
修正を行うようにすることもできる。
In the above embodiment, the upper limit value of the save counter is automatically set to the maximum number of TCQ commands of the device. However, the upper limit value of the save counter is set in advance according to the characteristics of the magnetic disk device connected to the SCSI bus. Even if a table in which an upper limit value is set for each ID is created and stored in an external storage device, and is read into the memory at the time of startup, it is troublesome to make a correction when the device configuration is changed, but the same effect is obtained. Is obtained. The table may be created not in the external storage device but in an EEPROM in the device, and the correction may be made only when the device configuration is changed.

【0028】[0028]

【発明の効果】以上説明したように、本発明のSCSI
・TCQ制御方式は、SCSIバスに接続された磁気デ
ィスク装置に対するTCQコマンド発行数の上限をID
単位に管理するため、磁気ディスク装置の有する性能を
十分に引き出すことができ、且つ磁気ディスク装置の性
能以上の要求を行わないことから無駄な処理の発生を防
止することができるので、磁気ディスク装置に対する処
理の高速化を可能にする効果がある。又、個々の磁気デ
ィスク装置に対する上限値を使用中に自動設定すること
も可能なため、バスに接続される種々の磁気ディスク装
置の性能を意識することなく、上記の効果を発揮させる
ことが可能となる。
As described above, the SCSI of the present invention
The TCQ control method uses an ID of the upper limit of the number of TCQ commands issued to the magnetic disk device connected to the SCSI bus.
Since the management is performed in units, the performance of the magnetic disk device can be sufficiently exploited, and unnecessary requests can be prevented from being made more than the performance of the magnetic disk device. This has the effect of making it possible to speed up the processing for. Also, since the upper limit value for each magnetic disk device can be automatically set during use, the above effects can be exhibited without being conscious of the performance of various magnetic disk devices connected to the bus. Becomes

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

【図1】本発明の一実施形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】図1のコマンド発行処理部の処理手順を示す流
れ図である。
FIG. 2 is a flowchart showing a processing procedure of a command issuance processing unit of FIG. 1;

【図3】図1のコマンド終了処理部の処理手順を示す流
れ図である。
FIG. 3 is a flowchart showing a processing procedure of a command end processing unit of FIG. 1;

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

1 情報処理装置 2 OS 3 SCSI制御ドライバ 4 メモリ 5,6 磁気ディスク装置 7 SCSIバス 31 カレントカウンタ 32 セーブカウンタ 33 コマンド発行処理部 34 コマンド終了処理部 DESCRIPTION OF SYMBOLS 1 Information processing apparatus 2 OS 3 SCSI control driver 4 Memory 5, 6 Magnetic disk device 7 SCSI bus 31 Current counter 32 Save counter 33 Command issue processing part 34 Command end processing part

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 TCQ機能を有する複数の磁気ディスク
装置とSCSIバスで接続された情報処理装置のTCQ
コマンドの発行を制御するSCSI・TCQ制御方式に
おいて、装置ID単位で前記磁気ディスク装置で実行中
のTCQコマンドの数を記憶するカレント値記憶手段
と、装置ID単位に前記磁気ディスク装置が受け付け可
能なTCQコマンドの上限値を格納する上限値記憶手段
と、装置ID単位に前記カレント値記憶手段の記憶値が
前記上限値記憶手段の上限値に達しないときのみ前記カ
レント値記憶手段の記憶値に1を加算してTCQコマン
ドを発行し、前記カレント値記憶手段の記憶値が前記上
限値記憶手段の上限値に達した場合にはTCQコマンド
の発行を待ち合わせるコマンド発行処理手段と、装置I
D単位に前記磁気ディスク装置からTCQコマンドに対
する終了報告を受けたとき前記カレント値記憶手段の記
憶値から1を減算するコマンド終了処理手段とを備えた
ことを特徴とするSCSI・TCQ制御方式。
An information processing device connected to a plurality of magnetic disk devices having a TCQ function via a SCSI bus.
In the SCSI / TCQ control method for controlling command issuance, current value storage means for storing the number of TCQ commands being executed in the magnetic disk device for each device ID, and the magnetic disk device being capable of receiving the magnetic disk device for each device ID An upper limit value storage unit for storing an upper limit value of the TCQ command; and a storage value of the current value storage unit for each device ID only when the storage value of the current value storage unit does not reach the upper limit value of the upper limit value storage unit. Command issuing processing means for waiting for the TCQ command to be issued when the stored value of the current value storage means reaches the upper limit of the upper limit value storage means;
A SCSI / TCQ control method, comprising: command completion processing means for subtracting 1 from the value stored in the current value storage means when receiving a completion report for the TCQ command from the magnetic disk device in D units.
【請求項2】 前記コマンド発行処理手段が、前記上限
値記憶手段に有効な上限値が記憶されていないときは無
条件に前記カレント値記憶手段の記憶値に1を加算して
TCQコマンドを発行する機能を併せ備え、前記コマン
ド終了処理手段が、前記磁気ディスク装置からキューフ
ル応答を受けたときに前記カレント値記憶手段の記憶値
を前記上限値記憶手段に上限値として格納した後に前記
カレント値記憶手段の記憶値から1を減算して前記コマ
ンド発行処理手段に対しTCQコマンドの再発行を指示
する機能を併せ備えたことを特徴とする請求項1記載の
SCSI・TCQ制御方式。
2. The command issuing processing means unconditionally adds 1 to a value stored in the current value storage means and issues a TCQ command when a valid upper limit value is not stored in the upper limit value storage means. The command termination processing means stores the stored value of the current value storage means as the upper limit value in the upper limit value storage means when receiving a queue full response from the magnetic disk device, and thereafter stores the current value. 2. The SCSI / TCQ control system according to claim 1, further comprising a function of subtracting 1 from the stored value of the means and instructing the command issuing processing means to reissue a TCQ command.
【請求項3】 前記上限値記憶手段が、電気的に書き換
え可能な不揮発性メモリにより構成されていることを特
徴とする請求項1又は請求項2に記載されたSCSI・
TCQ制御方式。
3. The SCSI device according to claim 1, wherein said upper limit value storage means comprises an electrically rewritable nonvolatile memory.
TCQ control method.
JP8199350A 1996-07-29 1996-07-29 SCSI / TCQ control method Expired - Fee Related JP2972583B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8199350A JP2972583B2 (en) 1996-07-29 1996-07-29 SCSI / TCQ control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8199350A JP2972583B2 (en) 1996-07-29 1996-07-29 SCSI / TCQ control method

Publications (2)

Publication Number Publication Date
JPH1049309A true JPH1049309A (en) 1998-02-20
JP2972583B2 JP2972583B2 (en) 1999-11-08

Family

ID=16406308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8199350A Expired - Fee Related JP2972583B2 (en) 1996-07-29 1996-07-29 SCSI / TCQ control method

Country Status (1)

Country Link
JP (1) JP2972583B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005322181A (en) * 2004-04-05 2005-11-17 Hitachi Ltd Command multiplex number monitoring control scheme and computer system operating it
JP2007323356A (en) * 2006-05-31 2007-12-13 Hitachi Ltd Storage control device, and command execution number control method of storage control device
JP2009282648A (en) * 2008-05-21 2009-12-03 Fujitsu Ltd Storage device, disk controller and command issue control method
JP2011039800A (en) * 2009-08-12 2011-02-24 Hitachi Ltd Database management method and system, and processing program therefor
US8234415B2 (en) 2008-07-14 2012-07-31 Fujitsu Limited Storage device and control unit
JP2014010476A (en) * 2012-06-27 2014-01-20 Fujitsu Ltd Storage virtualization device, storage virtualization method and storage virtualization program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03280147A (en) * 1990-03-29 1991-12-11 Yokogawa Electric Corp Device configuration method for ews
JPH04126493A (en) * 1990-09-17 1992-04-27 Fujitsu Ltd Write control system for real time data
JPH07334467A (en) * 1994-06-07 1995-12-22 Hitachi Ltd Computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03280147A (en) * 1990-03-29 1991-12-11 Yokogawa Electric Corp Device configuration method for ews
JPH04126493A (en) * 1990-09-17 1992-04-27 Fujitsu Ltd Write control system for real time data
JPH07334467A (en) * 1994-06-07 1995-12-22 Hitachi Ltd Computer system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005322181A (en) * 2004-04-05 2005-11-17 Hitachi Ltd Command multiplex number monitoring control scheme and computer system operating it
JP4568021B2 (en) * 2004-04-05 2010-10-27 株式会社日立製作所 Computer system that operates the command multiple number monitoring control system
JP2007323356A (en) * 2006-05-31 2007-12-13 Hitachi Ltd Storage control device, and command execution number control method of storage control device
JP2009282648A (en) * 2008-05-21 2009-12-03 Fujitsu Ltd Storage device, disk controller and command issue control method
JP4542173B2 (en) * 2008-05-21 2010-09-08 富士通株式会社 Storage device, disk controller, and command issue control method
US8145834B2 (en) 2008-05-21 2012-03-27 Fujitsu Limited Storage apparatus, disk controller, and command issue control method
US8234415B2 (en) 2008-07-14 2012-07-31 Fujitsu Limited Storage device and control unit
JP2011039800A (en) * 2009-08-12 2011-02-24 Hitachi Ltd Database management method and system, and processing program therefor
US8346744B2 (en) 2009-08-12 2013-01-01 Hitachi, Ltd. Database management method, database management system, and processing program therefor
JP2014010476A (en) * 2012-06-27 2014-01-20 Fujitsu Ltd Storage virtualization device, storage virtualization method and storage virtualization program

Also Published As

Publication number Publication date
JP2972583B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
CA2367890C (en) A host adapter for combining i/o completion reports and method of using the same
US6446214B2 (en) System and method for handling power state change requests initiated by peripheral devices
US7269630B2 (en) Automatically switching shared remote devices in a dense server environment thereby allowing the remote devices to function as a local device
JP2972583B2 (en) SCSI / TCQ control method
US6606712B1 (en) Electronic device and power source control method
US7240043B2 (en) Method of controlling storage control apparatus, storage control apparatus, and computer readable program for controlling the same
KR100346873B1 (en) Method of and system for managing reselection on a scsi bus
JP2001014227A (en) Method and device for updating time-out time and machine-readable recording medium with program recorded thereon
CN110351449A (en) Image forming apparatus and its control method including storing equipment
JP3214557B2 (en) I / O control device and DMA transfer control method
KR0162765B1 (en) Method and apparatus for i/o scheduler driving in high speed computer
CN110716697B (en) Information processing method and equipment
JP3416476B2 (en) Host-router connection method, host computer, router and recording medium
JP3257484B2 (en) Computer communication flow control method, method and recording medium
JPH1185529A (en) Method for starting data storage system and computer system
CN111459260A (en) Control method, control device, controller and storage medium
JP2002312185A (en) Exclusive access controller, method of exclusive access control, and program
JP3508053B2 (en) Printer power control
JPH05250179A (en) Job control system in multijob system
JPH07239921A (en) Pc card
JP3664079B2 (en) Job stopping method and apparatus in system freeze
JP2001290670A (en) Cluster system
JPH0340124A (en) Interface device
JP2000242462A (en) Information processing system and information processing method
JP2002259145A (en) Method for executing program

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990810

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070827

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090827

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090827

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100827

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120827

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees