JP2009093225A - Storage control device, method, program, and storage device - Google Patents
Storage control device, method, program, and storage device Download PDFInfo
- Publication number
- JP2009093225A JP2009093225A JP2007260324A JP2007260324A JP2009093225A JP 2009093225 A JP2009093225 A JP 2009093225A JP 2007260324 A JP2007260324 A JP 2007260324A JP 2007260324 A JP2007260324 A JP 2007260324A JP 2009093225 A JP2009093225 A JP 2009093225A
- Authority
- JP
- Japan
- Prior art keywords
- cache
- storage
- usage condition
- host
- host server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、ホストサーバからのI/Oコマンドに応じて、記憶媒体に対してデータの書き込み又は読み出しをキャッシュメモリを用いて行うストレージ制御装置等に関する。 The present invention relates to a storage control device or the like that uses a cache memory to write or read data to or from a storage medium in response to an I / O command from a host server.
キャッシュメモリとは、CPU等の高速処理装置と低速記憶装置との間におかれる高速メモリのことである。一般のストレージ装置では、データの読み出し及び書き込みを高速に処理するためにデータを保持するキャッシュメモリを搭載している(例えば特許文献1参照)。 A cache memory is a high-speed memory placed between a high-speed processing device such as a CPU and a low-speed storage device. A general storage device is equipped with a cache memory that holds data in order to process data reading and writing at high speed (see, for example, Patent Document 1).
また、バックアップとは、データの写しを取って保存することであり、例えば、コンピュータやサーバに保存されたデータやプログラムを、破損やコンピュータウイルス感染などの事態に備え、別の記憶媒体に保存することである。 In addition, backup means copying data and storing it. For example, data and programs stored in a computer or server are stored in another storage medium in case of damage or computer virus infection. That is.
しかしながら、一般のストレージ装置において、バックアップJOB等の大容量のデータ転送が行われるI/O処理が実行された場合、処理優先度の高いJOBの処理遅延が発生する問題があった。つまり、データバックアップJOB等を実行した場合、データバックアップJOBのI/O処理によってストレージ装置のキャッシュ利用率が高まり、オンラインJOBで利用可能なキャッシュ量が少なくなり、オンラインJOBの処理遅延が発生する問題があった。 However, in a general storage apparatus, when an I / O process such as a backup job in which a large amount of data is transferred is executed, there is a problem that a processing delay of a job with a high processing priority occurs. In other words, when a data backup job or the like is executed, the cache utilization rate of the storage device increases due to the I / O processing of the data backup job, the amount of cache available for the online job decreases, and the online job processing delay occurs. was there.
そこで、本発明の目的は、大容量のデータ転送が行われるI/O処理が実行された場合でも、処理優先度の高いJOBの処理遅延を抑制し得る、ストレージ制御装置等を提供することにある。 Accordingly, an object of the present invention is to provide a storage control device or the like that can suppress a processing delay of a JOB having a high processing priority even when an I / O processing for transferring a large amount of data is executed. is there.
本発明に係るストレージ制御装置は、記憶媒体及びキャッシュメモリを備えたストレージ装置に用いられ、ホストサーバからのI/Oコマンドに応じて前記ホストサーバと前記記憶媒体との間でデータを転送するものである。そして、本発明に係るストレージ制御装置は、キャッシュ利用条件を予め記憶するキャッシュ利用条件記憶手段と、前記I/Oコマンドから得られた情報が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用条件を満たすか否かを判定するI/O判定手段と、このI/O判定手段で前記キャッシュ利用条件を満たすと判定されると、前記ホストサーバと記憶媒体との間でキャッシュメモリを介してデータを転送し、前記I/O判定手段で前記キャッシュ利用条件を満たさないと判定されると、前記ホストサーバと記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する転送パス制御手段と、を備えたことを特徴とする。 A storage control apparatus according to the present invention is used in a storage apparatus having a storage medium and a cache memory, and transfers data between the host server and the storage medium in response to an I / O command from the host server. It is. The storage control apparatus according to the present invention includes a cache usage condition storage unit that stores cache usage conditions in advance, and a cache usage condition in which information obtained from the I / O command is stored in the cache usage condition storage unit. I / O determination means for determining whether or not the data satisfies the condition, and if the I / O determination means determines that the cache usage condition is satisfied, data is transferred between the host server and the storage medium via the cache memory. And when the I / O determination means determines that the cache usage condition is not satisfied, the transfer path control means transfers the data directly between the host server and the storage medium without going through the cache memory. And.
本発明に係るストレージ装置は、本発明に係るストレージ制御装置と、前記記憶媒体と、前記キャッシュメモリと、を備えたことを特徴とする。 A storage apparatus according to the present invention includes the storage control apparatus according to the present invention, the storage medium, and the cache memory.
本発明に係るストレージ制御方法は、記憶媒体及びキャッシュメモリを備えたストレージ装置に用いられ、ホストサーバからのI/Oコマンドに応じて前記ホストサーバと前記記憶媒体との間でデータを転送するものである。そして、本発明に係るストレージ制御方法は、キャッシュ利用条件を予め記憶しておき、前記I/Oコマンドから得られた情報が前記キャッシュ利用条件を満たすか否かを判定し、前記キャッシュ利用条件を満たすときは、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介してデータを転送し、前記キャッシュ利用条件を満たさないときは、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する、ことを特徴とする。 A storage control method according to the present invention is used in a storage apparatus including a storage medium and a cache memory, and transfers data between the host server and the storage medium in response to an I / O command from the host server. It is. The storage control method according to the present invention stores cache usage conditions in advance, determines whether or not the information obtained from the I / O command satisfies the cache usage conditions, and sets the cache usage conditions. When satisfying, the data is transferred between the host server and the storage medium via the cache memory, and when the cache usage condition is not satisfied, the cache memory is transferred between the host server and the storage medium. It is characterized in that data is directly transferred without going through.
本発明に係るストレージ制御プログラムは、記憶媒体及びキャッシュメモリを備えたストレージ装置に用いられ、ホストサーバからのI/Oコマンドに応じて前記ホストサーバと前記記憶媒体との間でデータを転送するためのものである。そして、本発明に係るストレージ制御プログラムは、キャッシュ利用条件を予め記憶するキャッシュ利用条件記憶手段、前記I/Oコマンドから得られた情報が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用条件を満たすか否かを判定するI/O判定手段、及び、このI/O判定手段で前記キャッシュ利用条件を満たすと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介してデータを転送し、前記I/O判定手段で前記キャッシュ利用条件を満たさないと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する転送パス制御手段、としてコンピュータを機能させることを特徴とする。 A storage control program according to the present invention is used in a storage apparatus including a storage medium and a cache memory, and transfers data between the host server and the storage medium in response to an I / O command from the host server. belongs to. The storage control program according to the present invention includes a cache usage condition storage unit that stores cache usage conditions in advance, and a cache usage condition in which information obtained from the I / O command is stored in the cache usage condition storage unit. I / O determining means for determining whether or not the condition is satisfied, and when the I / O determining means determines that the cache usage condition is satisfied, the cache memory is interposed between the host server and the storage medium. And transferring the data directly between the host server and the storage medium without going through the cache memory when the I / O determination means determines that the cache usage condition is not satisfied. The computer functions as path control means.
本発明によれば、I/Oコマンドから得られた情報がキャッシュ利用条件を満たさないと、キャッシュメモリを介さずに直接データを転送することにより、大容量のデータ転送が行われるI/Oコマンドを受けた場合にキャッシュメモリを介さずに直接データを転送できるので、処理優先度の高いJOBの処理遅延を抑制できる。 According to the present invention, if the information obtained from the I / O command does not satisfy the cache use condition, the data is transferred directly without going through the cache memory, so that the large-capacity data transfer is performed. Since the data can be directly transferred without going through the cache memory when the data is received, the processing delay of JOB having a high processing priority can be suppressed.
図1は、本発明に係るストレージ制御装置及びストレージ装置の一実施形態を示すブロック図である。以下、この図面に基づき説明する。 FIG. 1 is a block diagram showing an embodiment of a storage control device and a storage device according to the present invention. Hereinafter, description will be given based on this drawing.
本実施形態のストレージ装置10は、ストレージ制御装置20、キャッシュメモリ11、記憶媒体としての論理ディスク12等を備えている。ストレージ装置10は、スイッチ装置13を介して二つのホストサーバ30,40に接続されている。本実施形態のストレージ制御装置20は、ホストサーバ30,40からのI/Oコマンド31,41に応じてホストサーバ30,40と論理ディスク12との間でデータを転送するものであり、キャッシュ利用条件記憶手段21、I/O判定手段22、転送パス制御手段23等を備えている。
The
キャッシュ利用条件記憶手段21は、キャッシュ利用条件を予め記憶する。I/O判定手段22は、I/Oコマンド31,41から得られた情報がキャッシュ利用条件記憶手段21に記憶されているキャッシュ利用条件を満たすか否かを判定する。転送パス制御手段23は、I/O判定手段22でキャッシュ利用条件を満たすと判定されると、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介してデータを転送し、I/O判定手段22でキャッシュ利用条件を満たさないと判定されると、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介さずに直接データを転送する。
The cache use condition storage means 21 stores the cache use condition in advance. The I /
I/O判定手段22は、ホストサーバ30,40ごとに設けられたホストバスアダプタ(HBA:Host Bus Adapter)32,42の固有アドレスに基づいて、ホストサーバ30,40のどちらであるかを判断する。キャッシュ利用条件記憶手段21は、ホストサーバ30,40のそれぞれについてキャッシュ利用条件を記憶する。I/O判定手段22は、ホストサーバ30,40のそれぞれについてキャッシュ利用条件を満たすか否かを判定する。
The I / O determination means 22 determines which of the host servers 30 and 40 is based on a unique address of a host bus adapter (HBA) 32 or 42 provided for each of the host servers 30 and 40. To do. The cache use
ここで、ホストバスアダプタ32,42とは、ホストサーバと周辺機器とを接続するためのインタフェースコントローラのことであり、SCSI(Small Computer System Interface)の場合は「SCSIアダプタ」又は「SCSIコントローラ」とも言い、ファイバチャネルの場合は「ファイバチャネルアダプタ」とも言う。ホストバスアダプタ32,42には、WWN(World Wide Name)という64ビットの固有アドレスが割り当てられる。WWNにはポートネーム(port name)とノードネーム(node name)との二つがあるが、通常、WWNとはポートネームを指す。
Here, the
なお、論理ディスク12は、磁気ディスクである。ただし、記憶媒体は、磁気ディスクに限らず、光ディスクや半導体メモリなどでもよい。
The
図2は、図1における転送パス制御手段の構成の一例を示すブロック図である。以下、図1及び図2に基づき説明する。 FIG. 2 is a block diagram showing an example of the configuration of the transfer path control means in FIG. Hereinafter, a description will be given based on FIG. 1 and FIG.
転送パス制御手段23は、キャッシュデータ転送パス24、ホストデータ転送パス25、ディスク制御手段26等を有する。キャッシュデータ転送パス24は、キャッシュメモリ11を介してデータを転送するときに用いる。ホストデータ転送パス25は、キャッシュメモリ11を介さずに直接データを転送するときに用いる。ディスク制御手段26は、論理ディスク12に対してデータの読み出し及び書き込みを実行するとともに、I/O判定手段22の判定結果に基づいてキャッシュデータ転送パス24及びホストデータ転送パス25のどちらか一方を用いてデータを転送する機能を有する。
The transfer
キャッシュデータ転送パス24とホストデータ転送パス25とはバス接続されており、どちらのパスへデータ転送を行うかはディスク制御手段26が出力するアドレスによって決定される。論理ディスク12からのデータ読み出し時にディスク制御手段26へ読み出し先アドレスを指示することによって、転送パスを切り替えることが可能となる。これらのパスは、PCI(Peripheral Component Interconnect)等の一般的なバスで実現可能である。
The cache
図3は、図1におけるストレージ制御装置のハードウェア構成の一例を示すブロック図である。以下、図1及び図3に基づき説明する。 FIG. 3 is a block diagram illustrating an example of a hardware configuration of the storage control apparatus in FIG. Hereinafter, a description will be given based on FIGS. 1 and 3.
ストレージ制御装置20は、CPU51、RAM52、ROM53、入出力インタフェース54等からなる一般的なマイクロコンピュータを有する。入出力インタフェース54は、キャッシュメモリ11、論理ディスク12、スイッチ装置13等に接続されている。このマイクロコンピュータをキャッシュ利用条件記憶手段21、I/O判定手段22及び転送パス制御手段23として機能させるためプログラム及びデータが、RAM52に格納されている。CPU51は、RAM52に格納された命令列を一つずつ取り出し、これを解釈して実行する。なお、ストレージ制御装置20の各手段は、ソフトウェアを用いずにハードウェアのみで構成することもできるし、ファームウェアで構成することもできる。
The
次に、図1に基づき、本実施形態のストレージ制御装置20及びストレージ装置10の作用及び効果について説明する。
Next, operations and effects of the
バックアップJOB34等の大容量のデータ転送をキャッシュメモリ11を介して行うと、これによりキャッシュメモリ11の大部分が占有され、優先度の高いオンラインJOB33,43等に処理遅延が発生する。そこで、例えばオンラインJOBは「キャッシュ利用条件を満たす」、バックアップJOBは「キャッシュ利用条件を満たさない」、と予め決めておき、I/Oコマンド31,41から得られた情報がキャッシュ利用条件を満たさないときはキャッシュメモリ11を介さずに直接データを転送する。したがって、ストレージ制御装置20によれば、大容量のデータ転送が行われるI/Oコマンドを受けた場合にキャッシュメモリ11を介さずに直接データを転送するので、処理優先度の高いJOBの処理遅延を抑制できる。
When large-capacity data transfer such as the
また、ストレージ装置10によれば、ストレージ制御装置20を備えているので、I/Oコマンド31,41から得られた情報がキャッシュ利用条件を満たさないと、キャッシュメモリ11を介さずに直接データを転送することにより、大容量のデータ転送が行われるI/Oコマンド31,41を受けた場合にキャッシュメモリ11を介さずに直接データを転送でき、これにより処理優先度の高いJOBの処理遅延を抑制できる。
In addition, since the
図4は、図1におけるキャッシュ利用条件記憶手段が記憶するテーブル(キャッシュ利用条件)の第一例を示す図表である。図5は、本実施形態のストレージ制御装置の動作の第一例を示すフローチャートである。以下、図1、図4及び図5に基づき、本実施形態のストレージ制御装置の動作の第一例を説明する。 FIG. 4 is a chart showing a first example of a table (cache use condition) stored by the cache use condition storage means in FIG. FIG. 5 is a flowchart showing a first example of the operation of the storage control apparatus of this embodiment. Hereinafter, a first example of the operation of the storage control apparatus according to this embodiment will be described with reference to FIG. 1, FIG. 4, and FIG.
本例におけるキャッシュ利用条件記憶手段21は、キャッシュ利用条件として「キャッシュ利用最大I/O転送長」を記憶している。I/O判定手段22は、I/Oコマンド31,41に含まれるI/O転送長がキャッシュ利用条件記憶手段21に記憶されている「キャッシュ利用最大I/O転送長」を超えなければキャッシュ利用条件を満たすと判定し、I/Oコマンド31,41に含まれるI/O転送長がキャッシュ利用条件記憶手段21に記憶されている「キャッシュ利用最大I/O転送長」を超えればキャッシュ利用条件を満たさないと判定する。SCSI等の一般的なディスクインタフェースでは、データ転送前にI/Oコマンド31,41が発行される。このI/Oコマンド31,41中にI/O転送長が含まれているので、I/O判定手段22は転送開始前にI/O転送長を判断することが可能である。
The cache use condition storage means 21 in this example stores “cache use maximum I / O transfer length” as the cache use condition. If the I / O transfer length included in the I / O commands 31 and 41 does not exceed the “maximum cache usage I / O transfer length” stored in the cache usage
図1を参照すると、ストレージ装置10はスイッチ装置13を介しホストサーバ0(ホストサーバ30)及びホストサーバ1(ホストサーバ40)に接続されており、キャッシュ利用条件記憶手段21、I/O判定手段22、転送パス制御手段23、キャッシュメモリ11、論理ディスク12、キャッシュデータ転送パス24、ホストデータ転送パス25等を含んで構成される。
Referring to FIG. 1, the
キャッシュ利用条件記憶手段21は、設定された「キャッシュ利用最大I/O転送長」をWWNごとに、図4に示す形式で記憶する機能を有する。ホストバスアダプタ32,42ごとの「キャッシュ利用最大I/O転送長」の設定は、ホストサーバ30,40からのコマンドやストレージ装置10に接続可能な外部端末などにより行えばよい。図4において「HBA0・・・32Kバイト」とは、HBA0に関するデータは転送長が32Kバイト以下であればキャッシュメモリ11を通し32Kバイトを超えればキャッシュメモリ11を通さないという意味である。同じく「HBA1・・・No Limit」とは、HBA1に関するデータは全部キャッシュメモリ11を通すという意味である。
The cache use
I/O判定手段22は、受信したI/Oコマンドの発行元WWNと受信したI/Oコマンドの転送長とを判断し、これらをキャッシュ利用条件記憶手段21に記憶された「キャッシュ利用最大I/O転送長」と比較する機能を有する。 The I / O determination means 22 determines the issue source WWN of the received I / O command and the transfer length of the received I / O command, and these are stored in the “cache use maximum I” stored in the cache use condition storage means 21. / O transfer length ".
転送パス制御手段23は、論理ディスク12から読み出したデータを、キャッシュデータ転送パス24で転送するか、ホストデータ転送パス25で転送するか、どちらか一方に切り替える機能を有する。キャッシュデータ転送パス24は論理ディスク12から読み出したデータを、キャッシュメモリ11に転送する機能を有する。ホストデータ転送パス25は、論理ディスク12から読み出したデータを直接ホストサーバ30,40へ転送する機能を有する。
The transfer path control means 23 has a function of switching the data read from the
次に、図5のフローチャートを中心に説明する。まず、I/O判定手段22は、ホストサーバ30,40からI/Oコマンド31,41を受信した場合、I/O発行元のWWNとI/O転送長とを判断する(ステップ101)。続いて、I/O判定手段22は、キャッシュ利用条件記憶手段21からI/Oの発行元WWNの「キャッシュ利用最大I/O転送長」を取得する(ステップ102)。続いて、I/O判定手段22は、受信したI/O転送長とキャッシュ利用条件記憶手段21から取得した「キャッシュ利用最大I/O転送長」とを比較する(ステップ103)。比較した結果、受信したI/O転送長が「キャッシュ利用最大I/O転送長」を超えていた場合、I/O判定手段22は、転送パス制御手段23に対しホストデータ転送パス25を用いてデータ転送を行うよう通知する(ステップ104)。また、比較した結果、受信したI/O転送長が「キャッシュ利用最大I/O転送長」以下であった場合、I/O判定手段22は、転送パス制御手段23に対しキャッシュデータ転送パス24を用いてデータ転送を行うよう通知する(ステップ105)。転送パス制御手段23は、I/O判定手段22から通知されたパスを用いてデータ転送を行うことにより、ホストサーバ30,40ごとに設定したI/O転送長ごとのキャッシュ利用オンオフ切り替えを実現することが可能となる。
Next, description will be made mainly with reference to the flowchart of FIG. First, when receiving the I / O commands 31 and 41 from the host servers 30 and 40, the I / O determination means 22 determines the WWN of the I / O issuer and the I / O transfer length (step 101). Subsequently, the I /
このように、キャッシュ利用条件記憶手段21、I/O判定手段22、転送パス制御手段23等を有するストレージ制御装置20は、次の機能を有する。1.設定された転送長によりキャッシュ利用オンオフを切り替える機能。2.HBAのWWNごとに、キャッシュ利用オンオフ切り替えの転送長を設定することにより、キャッシュ利用オンオフ切り替えの転送長を可変とする機能。
As described above, the
つまり、ストレージ制御装置20は、ストレージ装置10のI/O処理におけるキャッシュ利用オンオフを、ホストサーバ30,40ごと設定したI/O転送長に応じて切り替えることにより、データバックアップJOB等を実行した場合に発生し得るオンラインJOBの処理遅延を抑える。一般的にデータバックアップJOBのI/O転送長がオンラインJOBのI/O転送長より大きいという特徴を利用し、キャッシュの利用オンオフをホストサーバごとに設定した「キャッシュ利用最大I/O転送長」によって切り替えることを可能とし、データバックアップJOB等の大容量データI/Oによって発生するオンラインJOBの処理遅延を抑える。換言すると、設定された「キャッシュ利用最大I/O転送長」を超えるI/Oの場合、ストレージ装置10のキャッシュメモリ11を利用せずI/O処理を行うことで、オンラインJOBで利用可能なキャッシュ量を確保することが可能となり、バックアップJOB等の実行時にオンラインJOBの処理遅延を抑えることが可能となる。
That is, the
図5は、図1におけるキャッシュ利用条件記憶手段が記憶するテーブル(キャッシュ利用条件)の第二例を示す図表である。図6は、本実施形態のストレージ制御装置の動作の第二例を示すフローチャートである。以下、図1、図6及び図7に基づき、本実施形態のストレージ制御装置の動作の第二例を説明する。 FIG. 5 is a chart showing a second example of a table (cache use condition) stored by the cache use condition storage unit in FIG. FIG. 6 is a flowchart showing a second example of the operation of the storage control apparatus of this embodiment. Hereinafter, a second example of the operation of the storage control apparatus according to this embodiment will be described with reference to FIG. 1, FIG. 6, and FIG.
キャッシュ利用のオンオフ切り替えを実施する基準として、第一例ではI/Oの転送長を用いているが、本例ではシーケンシャルアクセスI/Oの連続数を用いる。つまり、シーケンシャルアクセスI/Oの連続数が一定以上ある場合は、データ容量の大きいバックアップJOB等であると判断する。なお、「シーケンシャルアクセス」とは、データの読み書きを行う方法の一つであり、先頭から順番に連続してアクセスを行う方法をいう。一方、読み込みや書き込みを行いたい場所に直接アクセスする方法は「ランダムアクセス」という。シーケンシャルアクセスは、データが記録されている先頭位置から順に読み込みや書き込みを行なう。そのため、必要なデータを探したい場合でも、先頭から順に読み込んでいくため、ランダムアクセスに比べて時間がかかる。反対に全てのデータを必要とするような場合には、連続してアクセスできるためシーケンシャルアクセスの方が高速になる。 In the first example, the I / O transfer length is used as a reference for performing on / off switching of cache use, but in this example, the sequential number of sequential access I / O is used. That is, when the sequential access I / O number is a certain number or more, it is determined that the backup job has a large data capacity. Note that “sequential access” is one of the methods for reading and writing data, and means a method for sequentially accessing from the top. On the other hand, a method of directly accessing a place where reading or writing is desired is called “random access”. In sequential access, reading and writing are sequentially performed from the head position where data is recorded. For this reason, even when it is desired to search for necessary data, it takes time compared to random access because it is read sequentially from the top. On the other hand, when all data is required, sequential access is faster because continuous access is possible.
本例におけるキャッシュ利用条件記憶手段21は、キャッシュ利用条件として、I/Oシーケンシャルアクセスの連続数についてキャッシュ利用最大数を記憶している。I/O判定手段22は、I/OコマンドがI/Oシーケンシャルアクセスであるか否かを判定し、そのI/Oシーケンシャルアクセスの連続数がキャッシュ利用条件記憶手段21に記憶されているキャッシュ利用最大数を超えなければキャッシュ利用条件を満たすと判定し、I/Oシーケンシャルアクセスの連続数がキャッシュ利用条件記憶手段21に記憶されているキャッシュ利用最大数を超えればキャッシュ利用条件を満たさないと判定する。
The cache use condition storage means 21 in this example stores the maximum cache use number for the number of consecutive I / O sequential accesses as the cache use condition. The I / O determination means 22 determines whether or not the I / O command is an I / O sequential access, and the cache use condition storage means 21 stores the number of consecutive I / O sequential accesses. If the maximum number is not exceeded, it is determined that the cache usage condition is satisfied, and if the number of consecutive I / O sequential accesses exceeds the maximum cache usage number stored in the cache usage
つまり、キャッシュ利用条件記憶手段21は、図6[2]に示す形式でWWNごとにキャッシュメモリ11を利用可能なシーケンシャルアクセス数の閾値(以下「キャッシュ利用最大シーケンシャルアクセスI/O連続数」という。)を記憶している。I/O判定手段22は、受信したI/Oコマンドがシーケンシャルアクセスであるか否かを判定する機能と、I/O発行元WWNごとにシーケンシャルアクセスの連続数を図6[1]の形式で記憶する機能を持つ。
That is, the cache use condition storage means 21 is referred to as a sequential access count threshold (hereinafter referred to as “cache use maximum sequential access I / O continuous count”) that can use the
図6[1]において「HBA0・・・5」とは、HBA0に関するシーケンシャルアクセスの連続数が現在「5」であることを示している。同じく、「HBA1・・・10」とは、HBA1に関するシーケンシャルアクセスの連続数が現在「10」であることを示している。図6[2]において「HBA0・・・20」とは、HBA0に関するシーケンシャルアクセスの連続数が「20」以下であればキャッシュメモリ11を通し「20」を超えればキャッシュメモリ11を通さないという意味である。同じく「HBA1・・・No Limit」とは、HBA1に関するデータは全部キャッシュメモリ11を通すという意味である。
In FIG. 6 [1], “HBA 0... 5” indicates that the sequential number of sequential accesses related to HBA 0 is currently “5”. Similarly, “HBA1... 10” indicates that the sequential number of sequential accesses related to HBA1 is currently “10”. In FIG. 6 [2], “HBA 0... 20” means that if the number of sequential accesses related to HBA 0 is “20” or less, the
次に、図7のフローチャートを中心に説明する。まず、I/O判定手段22は、ホストサーバ30,40からI/Oコマンド31,41を受信した場合、I/O発行元のWWNを判断し(ステップ201)、受信したI/Oコマンドがシーケンシャルアクセスであるか否かを判断する(ステップ202)。シーケンシャルアクセスでなかった場合、I/O判定手段22は、シーケンシャルアクセスI/Oカウンタをリセットし(ステップ206)、キャッシュメモリ11を利用したデータ転送を行うように転送パス制御手段23に指示する(ステップ207)。
Next, description will be made mainly with reference to the flowchart of FIG. First, when receiving the I / O commands 31 and 41 from the host servers 30 and 40, the I /
一方、シーケンシャルアクセスであった場合、I/O判定手段22は、シーケンシャルアクセスI/Oカウンタを+1する(ステップ203)。続いて、I/O判定手段22は、シーケンシャルアクセスカウンタの値と、キャッシュ利用条件記憶手段21に設定された値とを比較する。(ステップ204)、シーケンシャルアクセスカウンタの値が「キャッシュ利用最大シーケンシャルアクセスI/O連続数」以下であった場合、I/O判定手段22は、キャッシュメモリ11を利用したデータ転送を行うように転送パス制御手段23に指示する(ステップ207)。シーケンシャルアクセスカウンタの値が「キャッシュ利用最大シーケンシャルアクセスI/O連続数」を超えていた場合、I/O判定手段22は、キャッシュメモリ11を利用せずデータ転送を行うように転送パス制御手段23に指示する(ステップ205)。
On the other hand, if it is a sequential access, the I / O determination means 22 increments the sequential access I / O counter by 1 (step 203). Subsequently, the I /
以上の動作を行うことにより、ホストサーバ30,40ごとに設定した「キャッシュ利用最大シーケンシャルアクセスI/O連続数」によってキャッシュ利用オンオフ切り替えを実現することが可能となる。 By performing the above operation, it is possible to realize the cache use ON / OFF switching by the “cache use maximum sequential access I / O continuous number” set for each of the host servers 30 and 40.
次に、本発明に係るストレージ制御方法の一実施形態について説明する。本実施形態のストレージ制御方法は、図1のストレージ制御装置の動作そのものである。したがって、図1に基づき説明する。 Next, an embodiment of the storage control method according to the present invention will be described. The storage control method of this embodiment is the operation itself of the storage control apparatus of FIG. Therefore, description will be made based on FIG.
本実施形態のストレージ制御方法は、論理ディスク12及びキャッシュメモリ11を備えたストレージ装置10に用いられ、ホストサーバ30,40からのI/Oコマンド31,41に応じてホストサーバ30,40と論理ディスク12との間でデータを転送するものである。そして、本実施形態のストレージ制御方法は、キャッシュ利用条件を予め記憶しておき、I/Oコマンド31,41から得られた情報がキャッシュ利用条件を満たすか否かを判定し、キャッシュ利用条件を満たすときは、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介してデータを転送し、キャッシュ利用条件を満たさないときは、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介さずに直接データを転送する、ことを特徴とする。なお、各構成要素は、図1のストレージ制御装置と同様に具体化することができる。
The storage control method according to the present embodiment is used in the
本実施形態のストレージ制御方法によれば、I/Oコマンド31,41から得られた情報がキャッシュ利用条件を満たさないと、キャッシュメモリ11を介さずに直接データを転送することにより、大容量のデータ転送が行われるI/Oコマンド31,41を受けた場合にキャッシュメモリ11を介さずに直接データを転送できるので、処理優先度の高いJOBの処理遅延を抑制できる。
According to the storage control method of the present embodiment, if the information obtained from the I / O commands 31 and 41 does not satisfy the cache usage condition, the data is transferred directly without going through the
次に、本発明に係るストレージ制御プログラムの一実施形態について説明する。本実施形態のストレージ制御プログラムは、図1のストレージ制御装置の各手段をコンピュータに機能させるためのものである。したがって、図1に基づき説明する。 Next, an embodiment of a storage control program according to the present invention will be described. The storage control program of this embodiment is for causing a computer to function each unit of the storage control apparatus of FIG. Therefore, description will be made based on FIG.
本実施形態のストレージ制御プログラムは、論理ディスク12及びキャッシュメモリ11を備えたストレージ装置10に用いられ、ホストサーバ30,40からのI/Oコマンド31,41に応じてホストサーバ30,40と論理ディスク12との間でデータを転送するためのものである。そして、本実施形態のストレージ制御プログラムは、キャッシュ利用条件記憶手段21、I/O判定手段22及び転送パス制御手段23として、コンピュータ(図3参照)を機能させることを特徴とする。キャッシュ利用条件記憶手段21は、キャッシュ利用条件を予め記憶する。I/O判定手段22は、I/Oコマンド31,41から得られた情報がキャッシュ利用条件記憶手段21に記憶されているキャッシュ利用条件を満たすか否かを判定する。転送パス制御手段23は、I/O判定手段22でキャッシュ利用条件を満たすと判定されると、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介してデータを転送し、I/O判定手段22でキャッシュ利用条件を満たさないと判定されると、ホストサーバ30,40と論理ディスク12との間でキャッシュメモリ11を介さずに直接データを転送する。なお、各構成要素は、図1のストレージ制御装置と同様に具体化することができる。
The storage control program according to the present embodiment is used in the
本実施形態のストレージ制御プログラムによれば、I/Oコマンド31,41から得られた情報がキャッシュ利用条件を満たさないと、キャッシュメモリ11を介さずに直接データを転送することにより、大容量のデータ転送が行われるI/Oコマンド31,41を受けた場合にキャッシュメモリ11を介さずに直接データを転送できるので、処理優先度の高いJOBの処理遅延を抑制できる。
According to the storage control program of the present embodiment, if the information obtained from the I / O commands 31 and 41 does not satisfy the cache use condition, the data is transferred directly without going through the
以上、上記各実施形態を参照して本発明を説明したが、本発明は上記各実施形態に限定されるものではない。本発明の構成や詳細については、当業者が理解し得るさまざまな変更を加え得る。また、本発明には、上記各実施形態の構成の一部又は全部を相互に適宜組み合わせたものも含まれる。図5及び図7の例では記憶媒体からデータを読み出す場合について述べたが、記憶媒体にデータを書き込む場合も、データの転送方向が逆になるだけであるので当然に本発明に含まれる。ストレージ装置に接続されるホストサーバの台数も、二台に限らず、一台又は三台以上でもよい。 Although the present invention has been described with reference to the above embodiments, the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art may be made to the configuration and details of the present invention. Further, the present invention includes a combination of some or all of the configurations of the above-described embodiments as appropriate. In the examples of FIGS. 5 and 7, the case where data is read from the storage medium has been described. However, the case where data is written to the storage medium is also included in the present invention since the data transfer direction is only reversed. The number of host servers connected to the storage apparatus is not limited to two, and may be one or three or more.
10 ストレージ装置
11 キャッシュメモリ
12 論理ディスク(記憶媒体)
20 ストレージ制御装置
21 キャッシュ利用条件記憶手段
22 I/O判定手段
23 転送パス制御手段
24 キャッシュデータ転送パス
25 ホストデータ転送パス
30 ホストサーバ(ホストサーバ0)
32 ホストバスアダプタ(HBA0)
40 ホストサーバ(ホストサーバ1)
42 ホストバスアダプタ(HBA1)
10
20
32 Host bus adapter (HBA0)
40 Host server (Host server 1)
42 Host bus adapter (HBA1)
Claims (12)
キャッシュ利用条件を予め記憶するキャッシュ利用条件記憶手段と、
前記I/Oコマンドから得られた情報が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用条件を満たすか否かを判定するI/O判定手段と、
このI/O判定手段で前記キャッシュ利用条件を満たすと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介してデータを転送し、前記I/O判定手段で前記キャッシュ利用条件を満たさないと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する転送パス制御手段と、
を備えたことを特徴とするストレージ制御装置。 In a storage control device that is used in a storage device including a storage medium and a cache memory, and transfers data between the host server and the storage medium in response to an I / O command from the host server,
Cache usage condition storage means for storing cache usage conditions in advance;
I / O determination means for determining whether information obtained from the I / O command satisfies a cache usage condition stored in the cache usage condition storage means;
When the I / O determination means determines that the cache usage condition is satisfied, data is transferred between the host server and the storage medium via the cache memory, and the I / O determination means determines the cache. When it is determined that the use condition is not satisfied, transfer path control means for directly transferring data between the host server and the storage medium without going through the cache memory;
A storage control device comprising:
前記キャッシュ利用条件記憶手段は、複数の前記ホストサーバのそれぞれについて前記キャッシュ利用条件を記憶し、
前記I/O判定手段は、複数の前記ホストサーバのそれぞれについて前記キャッシュ利用条件を満たすか否かを判定する、
ことを特徴とする請求項1記載のストレージ制御装置。 The host server is plural,
The cache use condition storage means stores the cache use condition for each of the plurality of host servers,
The I / O determination means determines whether or not the cache usage condition is satisfied for each of the plurality of host servers;
The storage control device according to claim 1.
ことを特徴とする請求項2記載のストレージ制御装置。 The I / O determination means determines which host server is based on a unique address of a host bus adapter provided for each of the plurality of host servers.
The storage control device according to claim 2.
前記I/O判定手段は、前記I/Oコマンドに含まれるI/O転送長が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用最大I/O転送長を超えなければ前記キャッシュ利用条件を満たすと判定し、前記I/Oコマンドに含まれるI/O転送長が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用最大I/O転送長を超えれば前記キャッシュ利用条件を満たさないと判定する、
ことを特徴とする請求項1乃至3のいずれか一項に記載のストレージ制御装置。 The cache use condition storage means stores a cache use maximum I / O transfer length as the cache use condition,
The I / O determination means determines the cache usage condition if the I / O transfer length included in the I / O command does not exceed the maximum cache usage I / O transfer length stored in the cache usage condition storage means. If the I / O transfer length included in the I / O command exceeds the maximum cache use I / O transfer length stored in the cache use condition storage unit, the cache use condition is not satisfied. To
The storage control device according to claim 1, wherein the storage control device is a storage control device.
前記I/O判定手段は、前記I/OコマンドがI/Oシーケンシャルアクセスであるか否かを判定し、そのI/Oシーケンシャルアクセスの連続数が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用最大数を超えなければ前記キャッシュ利用条件を満たすと判定し、前記I/Oシーケンシャルアクセスの連続数が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用最大数を超えれば前記キャッシュ利用条件を満たさないと判定する、
ことを特徴とする請求項1乃至3のいずれか一項に記載のストレージ制御装置。 The cache usage condition storage means stores the maximum number of cache usages of consecutive I / O sequential accesses as the cache usage condition,
The I / O determination means determines whether or not the I / O command is an I / O sequential access, and a cache in which the number of consecutive I / O sequential accesses is stored in the cache use condition storage means. If the maximum usage number is not exceeded, it is determined that the cache usage condition is satisfied, and if the number of consecutive I / O sequential accesses exceeds the maximum cache usage number stored in the cache usage condition storage unit, the cache usage condition is determined. Judge that it does not meet,
The storage control device according to claim 1, wherein the storage control device is a storage control device.
を備えたことを特徴とするストレージ装置。 The storage control device according to any one of claims 1 to 5, the storage medium, the cache memory,
A storage apparatus comprising:
キャッシュ利用条件を予め記憶しておき、
前記I/Oコマンドから得られた情報が前記キャッシュ利用条件を満たすか否かを判定し、
前記キャッシュ利用条件を満たすときは、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介してデータを転送し、前記キャッシュ利用条件を満たさないときは、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する、
ことを特徴とするストレージ制御方法。 In a storage control method for transferring data between the host server and the storage medium in response to an I / O command from the host server, used in a storage device including a storage medium and a cache memory,
Store cache usage conditions in advance,
Determining whether information obtained from the I / O command satisfies the cache usage condition;
When the cache usage condition is satisfied, data is transferred between the host server and the storage medium via the cache memory. When the cache usage condition is not satisfied, the host server and the storage medium Directly transferring data without going through the cache memory,
And a storage control method.
複数の前記ホストサーバのそれぞれについて前記キャッシュ利用条件を記憶し、
複数の前記ホストサーバのそれぞれについて、前記I/Oコマンドから得られた情報が前記キャッシュ利用条件を満たすか否かを判定する、
ことを特徴とする請求項7記載のストレージ制御方法。 The host server is plural,
Storing the cache usage condition for each of the plurality of host servers;
For each of the plurality of host servers, it is determined whether information obtained from the I / O command satisfies the cache usage condition.
The storage control method according to claim 7.
複数の前記ホストサーバごとに設けられたホストバスアダプタの固有アドレスに基づいて、どのホストサーバであるかを判断する、
ことを特徴とする請求項8記載のストレージ制御方法。 When determining whether the information obtained from the I / O command satisfies the cache usage condition for each of the plurality of host servers,
Determining which host server is based on a unique address of a host bus adapter provided for each of the plurality of host servers;
The storage control method according to claim 8.
キャッシュ利用条件を予め記憶するキャッシュ利用条件記憶手段、
前記I/Oコマンドから得られた情報が前記キャッシュ利用条件記憶手段に記憶されているキャッシュ利用条件を満たすか否かを判定するI/O判定手段、及び、
このI/O判定手段で前記キャッシュ利用条件を満たすと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介してデータを転送し、前記I/O判定手段で前記キャッシュ利用条件を満たさないと判定されると、前記ホストサーバと前記記憶媒体との間で前記キャッシュメモリを介さずに直接データを転送する転送パス制御手段、
としてコンピュータを機能させることを特徴とするストレージ制御プログラム。 A storage control program for use in a storage device having a storage medium and a cache memory, for transferring data between the host server and the storage medium in response to an I / O command from the host server,
Cache usage condition storage means for storing cache usage conditions in advance;
I / O determination means for determining whether or not information obtained from the I / O command satisfies a cache usage condition stored in the cache usage condition storage means; and
When the I / O determination means determines that the cache usage condition is satisfied, data is transferred between the host server and the storage medium via the cache memory, and the I / O determination means determines the cache. A transfer path control means for transferring data directly between the host server and the storage medium without going through the cache memory when it is determined that the use condition is not satisfied;
A storage control program for causing a computer to function as
前記キャッシュ利用条件記憶手段は、複数の前記ホストサーバのそれぞれについて前記キャッシュ利用条件を記憶し、
前記I/O判定手段は、複数の前記ホストサーバのそれぞれについて前記キャッシュ利用条件を満たすか否かを判定する、
ことを特徴とする請求項10記載のストレージ制御プログラム。 The host server is plural,
The cache use condition storage means stores the cache use condition for each of the plurality of host servers,
The I / O determination means determines whether or not the cache usage condition is satisfied for each of the plurality of host servers;
The storage control program according to claim 10, wherein:
ことを特徴とする請求項11記載のストレージ制御プログラム。 The I / O determination means determines which host server is based on a unique address of a host bus adapter provided for each of the plurality of host servers.
The storage control program according to claim 11, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007260324A JP2009093225A (en) | 2007-10-03 | 2007-10-03 | Storage control device, method, program, and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007260324A JP2009093225A (en) | 2007-10-03 | 2007-10-03 | Storage control device, method, program, and storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009093225A true JP2009093225A (en) | 2009-04-30 |
Family
ID=40665203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007260324A Pending JP2009093225A (en) | 2007-10-03 | 2007-10-03 | Storage control device, method, program, and storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009093225A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013077161A (en) * | 2011-09-30 | 2013-04-25 | Toshiba Corp | Information processor, hybrid storage device and cache method |
JP2015519619A (en) * | 2012-05-16 | 2015-07-09 | 株式会社日立製作所 | Storage system and data transfer control method in storage system |
JP2021149366A (en) * | 2020-03-18 | 2021-09-27 | 株式会社日立製作所 | Complex system and data transfer method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03196345A (en) * | 1989-12-26 | 1991-08-27 | Nec Corp | Data input/output system |
JPH0773107A (en) * | 1993-09-03 | 1995-03-17 | Pfu Ltd | Control method for disk system |
JP2006065875A (en) * | 2005-09-06 | 2006-03-09 | Hitachi Ltd | Data storage system |
-
2007
- 2007-10-03 JP JP2007260324A patent/JP2009093225A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03196345A (en) * | 1989-12-26 | 1991-08-27 | Nec Corp | Data input/output system |
JPH0773107A (en) * | 1993-09-03 | 1995-03-17 | Pfu Ltd | Control method for disk system |
JP2006065875A (en) * | 2005-09-06 | 2006-03-09 | Hitachi Ltd | Data storage system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013077161A (en) * | 2011-09-30 | 2013-04-25 | Toshiba Corp | Information processor, hybrid storage device and cache method |
JP2015519619A (en) * | 2012-05-16 | 2015-07-09 | 株式会社日立製作所 | Storage system and data transfer control method in storage system |
JP2021149366A (en) * | 2020-03-18 | 2021-09-27 | 株式会社日立製作所 | Complex system and data transfer method |
JP7316242B2 (en) | 2020-03-18 | 2023-07-27 | 株式会社日立製作所 | Storage system and data transfer method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7631218B2 (en) | RAID system and Rebuild/Copy back processing method thereof | |
JP4775846B2 (en) | Computer system and method for controlling allocation of physical links | |
KR101035225B1 (en) | Controller apparatus and method for improved data transfer | |
US8321622B2 (en) | Storage system with multiple controllers and multiple processing paths | |
JP6899852B2 (en) | Storage device | |
TWI465905B (en) | Memory system having high data transfer efficiency and host controller | |
US8924606B2 (en) | Storage system and data transfer control method | |
US8635386B2 (en) | Communication control device, data communication method and program | |
JP6955159B2 (en) | Storage systems, storage controllers and programs | |
JP4477437B2 (en) | Storage device, inter-cluster data communication method, and cluster communication control program thereof | |
US7694037B2 (en) | Information processing apparatus and command multiplicity control method wherein commands are sent from a host to a target using iSCSI control protocol | |
US9977602B2 (en) | Storage system, storage device, and control method of storage system | |
JP2012063817A (en) | Communication device | |
JP2007310448A (en) | Computer system, management computer, and storage system management method | |
US11422714B1 (en) | Efficient copying of data in a storage system | |
JP2009093225A (en) | Storage control device, method, program, and storage device | |
JP2019204463A (en) | Storage system and control method therefor | |
JP2003288317A (en) | System and method for detecting and compensating for runt block data transfer | |
US20140082308A1 (en) | Storage control device and method for controlling storage devices | |
JP2007004710A (en) | Storage access system, data transfer device, storage accessing method and program | |
JP4936088B2 (en) | Disk array device, disk array system, and cache control method | |
US20060277326A1 (en) | Data transfer system and method | |
JP2010033481A (en) | Virtualized switch and computer system | |
JP4431492B2 (en) | Data transfer unit that supports multiple coherency granules | |
JP6951016B2 (en) | Switching circuit, management system, information processing device and access frequency switching method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Effective date: 20110121 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Effective date: 20110303 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110628 |