JPH07244562A - Method for controlling access to mirror disk - Google Patents

Method for controlling access to mirror disk

Info

Publication number
JPH07244562A
JPH07244562A JP6036189A JP3618994A JPH07244562A JP H07244562 A JPH07244562 A JP H07244562A JP 6036189 A JP6036189 A JP 6036189A JP 3618994 A JP3618994 A JP 3618994A JP H07244562 A JPH07244562 A JP H07244562A
Authority
JP
Japan
Prior art keywords
disk
access
request
mirror
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6036189A
Other languages
Japanese (ja)
Inventor
Yoshihiro Imura
佳弘 井村
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.)
N T T DATA TSUSHIN KK
NTT Data Corp
Original Assignee
N T T DATA TSUSHIN KK
NTT Data Communications Systems Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by N T T DATA TSUSHIN KK, NTT Data Communications Systems Corp filed Critical N T T DATA TSUSHIN KK
Priority to JP6036189A priority Critical patent/JPH07244562A/en
Publication of JPH07244562A publication Critical patent/JPH07244562A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a mirror disk access controlling method capable of improving throughput independently of the existence of deflection of a reading disk area from an application program. CONSTITUTION:An operating system 10 connected between an application program and a mirror disk executes following access control. Namely a reading request out of access requests sent from the application program is allocated to one disk device 21 or 22 in which the number of processing queuing access requests in a mirror disk management table 109 is relatively small. When an access request is a writing request, the contents of an access request block 108 in a completion queue 104 are recognized, whether an objective area to be accessed is overlapped between the writing request be accessed is overlapped between the writing request and a reading request in a processing end queuing state or not is judged and a non-overlapped writing request is allocated to both the disk devices 21, 22. On the other hand, an overlapped writing request is queued until the reading request in the processing end queuing state ends its processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、同じデータを2系列の
ディスク装置に書き込むことにより、ディスク内のデー
タを保護するためのミラーディスク(mirrored disk)
アクセス制御方法に関し、特に、複数のディスク装置か
らの割り込み送受信機能によりミラーディスクを制御す
るオペレーティングシステムにおいて、単位時間当たり
の上位プログラムからのミラーディスクに対するアクセ
ス処理件数を高めるミラーディスクアクセス制御方法に
関する。
BACKGROUND OF THE INVENTION The present invention relates to a mirrored disk for protecting the data in a disk by writing the same data in two series of disk devices.
The present invention relates to an access control method, and more particularly, to a mirror disk access control method for increasing the number of access processes to a mirror disk from a higher-order program per unit time in an operating system that controls a mirror disk by an interrupt transmission / reception function from a plurality of disk devices.

【0002】[0002]

【従来の技術】オペレーティングシステムからミラーデ
ィスクへアクセスする場合の態様として、データの書込
要求と読出要求とがある。この場合、書込要求は両方の
ディスク装置に対して行わなければならないが、読出要
求はどちらか1つのディスク装置に対して行えば十分で
ある。このような特徴を利用して、ミラーディスクから
のデータ読出処理を高速化する方法が従来から工夫され
ている。
2. Description of the Related Art As a mode of accessing a mirror disk from an operating system, there are a data write request and a data read request. In this case, the write request must be issued to both disk devices, but the read request is sufficient to be issued to either one of the disk devices. A method for speeding up data read processing from a mirror disk by utilizing such characteristics has been devised conventionally.

【0003】以下、その代表的な方法を図7(a)〜
(c)を参照して説明する。なお、図7において、Rは
データ読出時間、Wはデータ書込時間を表し、それぞれ
のアクセス対象領域(ディスク装置のアクセス先先頭ア
ドレスからアクセスサイズ分だけの領域)に重なりが無
いものとしている。
A typical method will be described below with reference to FIGS.
This will be described with reference to (c). In FIG. 7, R represents the data read time and W represents the data write time, and it is assumed that there is no overlap in the respective access target areas (areas corresponding to the access size from the access destination start address of the disk device).

【0004】(1)固定読出方法 図7(a)に示すように、読出要求を行うディスク装置
を、ミラーディスクを構成するどちらか1つのディスク
装置、図示の例では正ディスク装置に固定する方法であ
る。この方法については、例えば「障害対策機能の充実
進むオフコン」、日経コンピュータ、1991.7 .
29の記事などを参考にすることが出来る。
(1) Fixed Read Method As shown in FIG. 7A, a method of fixing the read request disk device to any one of the disk devices constituting the mirror disk, in the illustrated example, the primary disk device. Is. This method is described in, for example, “Office Computer with advanced fault countermeasure functions”, Nikkei Computer, 1991.7.
You can refer to 29 articles.

【0005】(2)要求同時発行方法 図7(b)に示すように、ミラーディスクを構成する2
系列のディスク装置に対して同時に読出要求を発行し、
発行された2つの読出要求のうち先に終了したものを採
用し、他方を中止させる方法である。この要求同時発行
方法については、例えば古川他、「二重化ボリューム方
式におけるI/O性能」、情報処理学会第37回(昭和
63年後期)全国大会、4P−4、236ー237頁の
記事などを参考にすることが出来る。
(2) Simultaneous request issuing method As shown in FIG. 7B, a mirror disk is constructed 2
Issue read requests to disk devices of the same series at the same time,
This is a method of adopting the one of the two issued read requests that has been completed first and canceling the other. For the method of issuing requests simultaneously, see, for example, Furukawa et al., "I / O Performance in Duplex Volume Method", Information Processing Society of Japan 37th (late 1988) National Convention, 4P-4, pages 236-237, etc. Can be used as a reference.

【0006】(3)スプリットシーク方法 ディスクアクセス時間の多くを占めるのは、ディスク装
置の読み書きヘッドが目的のシリンダに到達するまでの
時間(シーク時間)である。ディスク装置の読み書きヘ
ッドの移動距離が大きいほどシーク時間は大きい。そこ
で、シーク時間を小さくするために、図7(c)に示す
ように、ミラーディスクの一方のディスク装置について
は半分のシリンダを読み、他方のディスク装置について
は残りの半分のシリンダを読むようにアクセス制御を行
う方法がスプリットシーク方法である。このスプリット
シーク方法については、例えば、グレイ他、「フォール
ト・トレラント・システム」マグロウヒルブック社、1
07−109頁の記事などを参考にすることが出来る。
(3) Split seek method Most of the disk access time is the time (seek time) until the read / write head of the disk device reaches the target cylinder. The longer the moving distance of the read / write head of the disk device, the longer the seek time. Therefore, in order to reduce the seek time, as shown in FIG. 7C, half of the cylinder is read for one disk device of the mirror disk, and the other half of the cylinder is read for the other disk device. The method of performing access control is the split seek method. For this split seek method, see, for example, Gray et al., “Fault Tolerant System”, McGraw-Hill Book, Inc., 1.
You can refer to the articles on pages 07-109.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
方法には、それぞれ以下のような問題があった。 (1)固定読出方法 データ読出速度は、単一ディスク装置の場合のデータ読
出速度と全く等しく、2系列のディスク装置を使うミラ
ーディスクの特徴を生かしていない。
However, each of the conventional methods has the following problems. (1) Fixed Read Method The data read speed is exactly the same as the data read speed in the case of a single disk device, and the characteristics of the mirror disk using two series of disk devices are not utilized.

【0008】(2)要求同時発行方法 一回の読出要求で2系列のディスク装置を同時に占有す
るため、上位プログラムから見た読出要求1件あたりの
応答時間は短くなるが、逆に単位時間当たりの上位プロ
グラムからのミラーディスクに対するアクセス処理件数
(スループット)を高くすることが出来ない。
(2) Simultaneous request issuing method Since a single read request occupies two series of disk devices at the same time, the response time per read request seen from the host program is short, but conversely per unit time. It is not possible to increase the number of access processing cases (throughput) to the mirror disk from the higher-level program.

【0009】(3)スプリットシーク方法 上位プログラムからの読出要求が、ミラーディスク全体
の領域に均一に分散していない場合には、どちらか1方
のディスク装置に対して読出要求が集中し、逆に他方の
ディスク装置は空き時間が多くなる。その結果、全体的
にスループットが低下する。
(3) Split seek method When the read requests from the host program are not evenly distributed over the entire area of the mirror disk, the read requests are concentrated on either one of the disk devices, and vice versa. In addition, the other disk device has a lot of free time. As a result, the throughput is reduced as a whole.

【0010】本発明は、上記問題点を解決し、上位プロ
グラムからの読出対象となるディスク装置の偏りの有無
に拘らず、スループットを向上するミラーディスクアク
セス制御方法を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above problems and provide a mirror disk access control method for improving throughput regardless of whether or not there is a bias in the disk device to be read from the host program.

【0011】[0011]

【課題を解決するための手段】本発明が提供する本発明
のミラーディスクアクセス制御方法は、上位プログラム
からのアクセス要求に従ってミラーディスクに対するデ
ータの読出又は書込制御を行うミラーディスクアクセス
制御部を備え、該ミラーディスクアクセス制御部が、前
記アクセス要求の読出又は書込の種別を判定する手段
と、アクセス対象領域を認識する手段と、ミラーディス
クを構成するディスク装置毎の処理待ちアクセス要求数
を検出する手段とを有するオペレーティングシステム
が、以下の処理を行う。
The mirror disk access control method of the present invention provided by the present invention comprises a mirror disk access control unit for controlling the reading or writing of data with respect to a mirror disk in accordance with an access request from a host program. The mirror disk access control unit detects the type of read or write of the access request, the unit for recognizing the access target area, and the number of pending access requests for each disk device constituting the mirror disk. The operating system including the means for performing the following processes.

【0012】即ち、前記上位プログラムから送られるア
クセス要求のうち、読出要求は、前記処理待ちアクセス
要求数が相対的に少ない一方のディスク装置に対して割
り当てる。この場合、前記処理待ちアクセス要求数を、
当該ディスク装置からの割り込み受信の度に減少させる
ことで、各ディスク装置の負荷の様子を判定する。
That is, of the access requests sent from the upper-level program, the read request is assigned to one of the disk devices that has a relatively small number of access requests waiting to be processed. In this case, the number of access requests waiting for processing is
The state of the load on each disk device is determined by decreasing each interrupt reception from the disk device.

【0013】また、上位プログラムから送られるアクセ
ス要求が書込要求のときは、処理終了待ち状態にある読
出要求との間でアクセス対象領域が重複するか否かを判
定し、重複しない書込要求は両方のディスク装置に対し
て割り当て、重複する書込要求はその処理終了待ち状態
の読出要求に対する処理が終了するまで待ち合わせる。
When the access request sent from the upper-level program is a write request, it is determined whether or not the access target area overlaps with the read request waiting for processing completion, and the write request that does not overlap is determined. Is assigned to both disk devices, and duplicate write requests are waited until the processing for the read request in the processing completion waiting state is completed.

【0014】[0014]

【作用】本発明のミラーディスクアクセス制御方法で
は、上位プログラムからのアクセス要求が読出要求の場
合に占有するミラーディスク側のディスク装置は、常に
負荷の小さい一方のディスク装置となる。
According to the mirror disk access control method of the present invention, the disk device on the mirror disk side that is occupied when the access request from the higher-order program is a read request is always the one with the lighter load.

【0015】また、書込要求の場合は、まず、処理終了
待ち状態にある読出要求との間でアクセス対象領域の重
複の有無が判定され、重複しない書込要求は両方のディ
スク装置に対して割り当て、重複する書込要求はその処
理終了待ち状態の読出要求に対する処理が終了するまで
待ち合わせる。
In the case of a write request, first, it is determined whether or not the access target area overlaps with the read request in the processing end waiting state, and write requests that do not overlap are sent to both disk devices. Write requests that are allocated and overlapped are waited until the processing for the read request in the processing completion waiting state is completed.

【0016】従って、各ディスク装置に対する上位プロ
グラムからのアクセス要求数がアクセス対象領域の偏り
の有無に関わり無く定常的に等しくなる。なお、アクセ
ス要求数は各ディスク装置からの割込発生の度に減少す
る。この割込は、当該ディスク装置において処理が終了
したことを示す。
Therefore, the number of access requests from the host program to each disk device is constantly the same regardless of whether the access target area is biased or not. It should be noted that the number of access requests decreases each time an interrupt occurs from each disk device. This interrupt indicates that the processing is completed in the disk device.

【0017】[0017]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明の方法を実現するための概
念構成図であり、10はオペレーティングシステム、2
1,21はミラーディスクを構成する正副ディスク装
置、30は応用プログラム(上位プログラム)である。
応用プログラム30は複数存在し、ミラーディスクアク
セス要求、即ち、正又は副ディスク装置21,22にデ
ータを書き込むための書込要求、又は、いずれかのディ
スク装置からデータ読み出すための読出要求をオペレー
ティングシステム10に対して発行する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a conceptual configuration diagram for realizing the method of the present invention, 10 is an operating system, 2
Reference numerals 1 and 21 denote primary and secondary disk devices constituting a mirror disk, and 30 denotes an application program (upper program).
There are a plurality of application programs 30, and the operating system issues a mirror disk access request, that is, a write request for writing data in the primary or secondary disk device 21 or 22, or a read request for reading data from either disk device. Issue to 10.

【0018】その際、いずれの要求の場合も、アクセス
するデータのミラーディスク内の先頭アドレス、アクセ
スするデータのサイズを指定する。本実施例では、この
先頭アドレスから始まり、上記データサイズだけのミラ
ーディスク内のデータ乃至その記録領域をアクセス対象
領域と称して説明する。
At this time, in any case, the head address of the data to be accessed in the mirror disk and the size of the data to be accessed are specified. In this embodiment, data starting from this head address and having a data size corresponding to the data size or its recording area will be referred to as an access target area.

【0019】オペレーティングシステム10は、上記ミ
ラーディスクアクセス要求の読出/書込要求の種別(要
求種別)と、上記アクセス対象領域と、各ディスク装置
21,22への処理待ちアクセス要求数とを格納する記
憶手段、例えば管理テーブルを備え、応用プログラム3
0からのミラーディスクアクセス要求の受信を契機にそ
の要求種別に応じて各ディスク装置21,22へのアク
セス制御を行う。このようにオペレーティングシステム
10を介することにより、ミラーディスクを構成する2
つのディスク装置21,22は、応用プログラム30か
らは、破線で示すように1つのディスク装置に見える。
The operating system 10 stores the read / write request type (request type) of the mirror disk access request, the access target area, and the number of access requests waiting to be processed for each of the disk devices 21 and 22. The application program 3 includes a storage unit, for example, a management table.
Upon receiving a mirror disk access request from 0, access control to the disk devices 21 and 22 is performed according to the request type. In this way, a mirror disk is configured by passing through the operating system 10.
From the application program 30, the two disk devices 21 and 22 appear as one disk device as indicated by the broken line.

【0020】図2は、上記構成のオペレーティングシス
テム10とミラーディスクとの関連を示す説明図であ
る。図2において、101は処理待ちキュー、102は
正ディスクキュー、103は副ディスクキュー、104
は完了待ちキュー、105〜108は各キューに格納さ
れるアクセス要求ブロック、109はミラーディスク管
理表を示す。
FIG. 2 is an explanatory diagram showing the relationship between the operating system 10 having the above-mentioned configuration and the mirror disk. In FIG. 2, 101 is a processing queue, 102 is a primary disk queue, 103 is a secondary disk queue, and 104.
Is a completion waiting queue, 105 to 108 are access request blocks stored in each queue, and 109 is a mirror disk management table.

【0021】ミラーディスク管理表109には、正ディ
スク装置21へのアクセス要求ブロック数、即ち正ディ
スクキュー102内のアクセス要求ブロック106の数
と、副ディスク装置22へのアクセス要求ブロック数、
即ち副のディスクキュー103内のアクセス要求ブロッ
ク107の数が格納されている。
In the mirror disk management table 109, the number of access request blocks to the primary disk device 21, that is, the number of access request blocks 106 in the primary disk queue 102 and the number of access request blocks to the secondary disk device 22,
That is, the number of access request blocks 107 in the secondary disk queue 103 is stored.

【0022】アクセス要求ブロック106の内容は図3
に示すとおりであり、応用プログラム30からのミラー
ディスクアクセス要求が読出/書込要求のいずれである
かを表す要求種別(例えば数値情報)、ディスクのアク
セス位置(アクセスするデータのミラーディスク内の先
頭アドレス)、アクセスサイズ(アクセスするデータサ
イズ)、ディスクアクセス完了数、アクセス結果をそれ
ぞれ格納してなる。ディスクアクセス完了数は、上記要
求種別が後述のように書込要求のときに意味を持ち、そ
の値は0,1,2の何れかである。他のアクセス要求ブ
ロック105,107,108も同じ構成となる。
The contents of the access request block 106 are shown in FIG.
, The request type (for example, numerical information) that indicates whether the mirror disk access request from the application program 30 is a read / write request, the disk access position (the head of the data to be accessed in the mirror disk). Address), access size (data size to be accessed), disk access completion count, and access result. The disk access completion number has a meaning when the request type is a write request as described later, and its value is 0, 1, or 2. The other access request blocks 105, 107, 108 also have the same configuration.

【0023】なお、上述の「処理待ちアクセス要求数」
とは、各ディスクキュー102,103の中で待ち状態
になっているアクセス要求ブロック106,107の数
を意味し、「処理終了待ち状態にある読出要求」とは、
完了待ちキュー104の中で待ち状態になっているアク
セス要求ブロック108のうち、要求種別が「読出」に
なっているものをいう。
The above-mentioned "number of access requests waiting to be processed"
Means the number of access request blocks 106 and 107 in the waiting state in each of the disk queues 102 and 103, and the “read request in the processing end waiting state” is
Among the access request blocks 108 in the waiting state in the completion waiting queue 104, the request type is “read”.

【0024】次に上記設定のオペレーティングシステム
10によるミラーディスクアクセス制御、即ちデータ読
出要求処理及びデータ書込要求処理の具体的な流れを図
4〜図6を参照して説明する。
Next, a concrete flow of the mirror disk access control, that is, the data read request process and the data write request process by the operating system 10 having the above setting will be described with reference to FIGS.

【0025】(データ読出要求処理)図4は、上位プロ
グラム30からのアクセス要求とミラーディスクからの
割込との切り分け処理の手順図であり、通常は、上位プ
ログラム30からのアクセス要求(データ読出/書込要
求)、又は各ディスク21,22からの割込があるまで
待ち状態にある(S301)。
(Data Read Request Process) FIG. 4 is a procedure diagram of a process of separating an access request from the upper program 30 and an interrupt from the mirror disk. Normally, the access request from the upper program 30 (data read) is performed. (/ Write request), or waiting for an interrupt from each disk 21, 22 (S301).

【0026】ここで、例えば上位プログラム30からミ
ラーディスクに対するデータ読出要求のアクセス要求ブ
ロックが発行された場合は、ディスク側からの割込では
ないので(S302)、まず、処理待ちキュー101が
空か否かを確認し(S303)、空きなら当該アクセス
要求ブロックを処理待ちキュー101の先頭に繋ぐ(S
304)。処理待ちキュー101が空いてない場合は、
当該アクセス要求ブロックを処理待ちキュー101の最
後に追加し(S305)、最初の処理(S301)に戻
る。
Here, for example, when an access request block for a data read request to the mirror disk is issued from the upper program 30, it is not an interrupt from the disk side (S302), so that the processing waiting queue 101 is empty first. It is confirmed whether or not (S303), and if it is free, the access request block is connected to the head of the processing queue 101 (S).
304). If the waiting queue 101 is not empty,
The access request block is added to the end of the process waiting queue 101 (S305), and the process returns to the first process (S301).

【0027】図5はミラーディスクに対するアクセス要
求処理の手順図であり、上述のように、アクセス要求ブ
ロックを処理待ちキュー101の先頭に繋いだとき(S
304)は、そのアクセス要求ブロックが読出要求か否
かを確認する(S401)。この例では読出要求なの
で、そのアクセス要求ブロックを完了待ちキュー104
の最後に繋くとともに、別のアクセス要求ブロック(デ
ィスク用アクセス要求ブロック106)を1つ作成する
(S402)。
FIG. 5 is a procedure diagram of the access request processing for the mirror disk. As described above, when the access request block is connected to the head of the processing waiting queue 101 (S
304) confirms whether or not the access request block is a read request (S401). In this example, since it is a read request, the access request block is transferred to the completion waiting queue 104.
And another access request block (disk access request block 106) is created (S402).

【0028】その後、ミラーディスク管理表109に記
録されたアクセス要求ブロック数を参照して正ディスク
装置21のアクセス要求ブロック数が少なければ、正デ
ィスクキュー102の最後に上記ディスク用アクセス要
求ブロック106を繋ぐ(S403)。このとき、ディ
スク用アクセス要求ブロック106が正ディスクキュー
102の先頭であれば直ちに正ディスク装置21に対し
てアクセス要求を発行し(S405)、そうでなければ
最初の処理(S301)に戻る。この処理により、正副
のディスク装置21,22に対する負荷が均等化され、
上位プログラム30からのミラーディスクへの読出処理
のとスループットを向上させることが可能になる。
After that, referring to the number of access request blocks recorded in the mirror disk management table 109, if the number of access request blocks of the primary disk device 21 is small, the above-mentioned disk access request block 106 is set at the end of the primary disk queue 102. Connect (S403). At this time, if the disk access request block 106 is the head of the primary disk queue 102, an access request is immediately issued to the primary disk device 21 (S405), and if not, the process returns to the first processing (S301). By this processing, the loads on the primary and secondary disk devices 21 and 22 are equalized,
It is possible to improve the read processing from the upper program 30 to the mirror disk and the throughput.

【0029】次に、図6を参照してミラーディスクから
オペレーティングシステム10への割込処理について説
明する。上述のように、正ディスク装置21への読出要
求が行われ、アクセス領域へのアクセス(データ読出)
が完了すると、正ディスク装置21からアクセス完了の
割込がオペレーティングシステム10に通知される。
Next, the interrupt processing from the mirror disk to the operating system 10 will be described with reference to FIG. As described above, a read request is issued to the primary disk device 21, and the access area is accessed (data read).
Is completed, the primary disk device 21 notifies the operating system 10 of an access completion interrupt.

【0030】オペレーティングシステム10では、この
割込発生を検知し(S302)、ミラーディスク管理表
109に記録された正ディスク装置(正ディスクキュー
102)のアクセス要求ブロック数を1減じる(S50
1)。この場合、完了したアクセス要求ブロックは読出
要求であるから(S502)、ディスク用アクセス要求
ブロックのアクセス結果を判定し(S503)、正常終
了であればディスク用アクセス要求ブロックを解放し
(S504)、上位プログラム30にアクセス要求ブロ
ックを返却し(S505)、最初の処理(S301)に
戻る。
The operating system 10 detects the occurrence of this interrupt (S302), and decrements the access request block number of the primary disk device (primary disk queue 102) recorded in the mirror disk management table 109 by 1 (S50).
1). In this case, since the completed access request block is a read request (S502), the access result of the disk access request block is determined (S503), and if it is normally completed, the disk access request block is released (S504). The access request block is returned to the upper program 30 (S505), and the process returns to the first process (S301).

【0031】一方、S503においてディスク用アクセ
ス要求ブロックのアクセス結果が異常終了のときは正デ
ィスク装置21の以後の使用を停止し(S506)、ミ
ラーディスク管理表109における副ディスク装置22
のアクセス要求ブロック数を1増加させ、ディスク用ア
クセス要求ブロック107(106)を副ディスクキュ
ー103の最後に繋ぎ(S507)、S404の処理に
戻る。
On the other hand, when the access result of the disk access request block is abnormally terminated in S503, the subsequent use of the primary disk device 21 is stopped (S506), and the secondary disk device 22 in the mirror disk management table 109 is stopped.
The number of access request blocks is increased by 1, the disk access request block 107 (106) is connected to the end of the secondary disk queue 103 (S507), and the process returns to S404.

【0032】(データ書込要求処理)次にデータ書込要
求処理について説明する。上位プログラム30からミラ
ーディスクに対する書込要求のアクセス要求ブロックが
発行されると、オペレーティングシステム10では、S
401の前までは上述のデータ読出要求と同様の流れで
処理を行う。
(Data Write Request Process) Next, the data write request process will be described. When the access request block for the write request to the mirror disk is issued from the upper program 30, the operating system 10 sends S
Until 401, processing is performed in the same flow as the data read request described above.

【0033】この場合、処理待ちキュー101の先頭の
アクセス要求ブロックは読出要求ではないので(S40
1)、完了待キュー104にアクセス対象領域が重複す
る読出要求が存在するか否かを判定する(S406)。
存在するときは最初の処理(S301)に戻る。存在し
ないときは当該アクセス要求ブロック105のディスク
アクセス完了数に0を設定する(S407)。
In this case, the access request block at the head of the processing queue 101 is not a read request (S40).
1) It is determined whether there is a read request in which the access target areas overlap in the completion waiting queue 104 (S406).
If it exists, the process returns to the first process (S301). If it does not exist, 0 is set to the disk access completion number of the access request block 105 (S407).

【0034】そしてこのアクセス要求ブロックを完了待
ちキュー104の最後に繋ぎ、ディスク用アクセス要求
ブロックを2つ作成し(S408)、正ディスクキュー
102及び副ディスクキュー103にそれぞれディスク
用アクセス要求ブロック106、107を繋ぐ。このと
き、各ディスク用アクセス要求ブロック106,107
がそれぞれディスクキュー102,103の先頭ででな
ければ最初の処理(S301)に戻り(S410)、先
頭であれば各ディスク装置21,22にそれぞれアクセ
ス要求、即ち書込要求を発行する(S411)。これに
より各ディスク装置21,22の該当アクセス領域にデ
ータが書き込まれる。
Then, this access request block is connected to the end of the completion waiting queue 104 to create two disk access request blocks (S408), and the disk access request block 106 and the disk access request block 106 are respectively created in the primary disk queue 102 and the secondary disk queue 103. Connect 107. At this time, the disk access request blocks 106 and 107
Is not the head of the disk queues 102 and 103 respectively, the process returns to the first processing (S301) (S410), and if the head is the head, an access request, that is, a write request is issued to each of the disk devices 21 and 22 (S411). . As a result, data is written in the corresponding access area of each disk device 21, 22.

【0035】ここで、正ディスク装置21における書込
が完了すると、正ディスク装置21からアクセス完了の
割込がオペレーティングシステム10に通知される。オ
ペレーティングシステム10では、この割込を検知し
(S301)、図6に示すように、ミラーディスク管理
表109の正ディスク装置のアクセス要求ブロック数を
1減じる(S501)。そしてディスク用アクセス要求
ブロック106のアクセス結果を判定し(S508)、
異常終了であれば正ディスク装置21の以後の使用を停
止する(S513)。正常終了であればディスク用アク
セスブロック106を解放し(S509)、完了待ちキ
ュー104のアクセス要求ブロック108のディスクア
クセス完了数に1を加え(S510)、ディスクアクセ
ス完了数が2か否かを判定する(S511)。
When the writing in the primary disk device 21 is completed, the primary disk device 21 notifies the operating system 10 of an access completion interrupt. The operating system 10 detects this interrupt (S301), and as shown in FIG. 6, decrements the access request block count of the primary disk device of the mirror disk management table 109 by 1 (S501). Then, the access result of the disk access request block 106 is judged (S508),
If it is abnormally terminated, the subsequent use of the primary disk device 21 is stopped (S513). If it is normal end, the disk access block 106 is released (S509), 1 is added to the disk access completion number of the access request block 108 of the completion waiting queue 104 (S510), and it is determined whether the disk access completion number is 2 or not. Yes (S511).

【0036】ディスクアクセス完了数が2でないという
ことは、副ディスク装置22における書込要求処理(つ
まりそれ以前の読出要求処理)が終了していないことを
意味するので、S404の処理に戻り、副ディスク装置
22からのアクセス完了割込通知を待つ(S511)。
The fact that the disk access completion number is not 2 means that the write request processing (that is, the read request processing before that) in the secondary disk device 22 has not been completed, so the processing returns to the processing of S404, and It waits for an access completion interrupt notification from the disk device 22 (S511).

【0037】副ディスク装置22からのアクセス完了割
込が通知されると、S511の前までは正ディスク装置
からのアクセス完了の割込通知がなされた場合の処理と
同様の処理を行う。そしてディスクアクセス完了数が2
になったときは(S511)、上位プログラム30にア
クセス要求ブロックを返却する(S512)。
When the access completion interrupt is notified from the secondary disk device 22, the same process as the process when the access completion interrupt notification is issued from the primary disk device is performed before S511. And the number of disk access completion is 2
When it becomes (S511), the access request block is returned to the upper program 30 (S512).

【0038】以上の流れによる制御の結果、上位プログ
ラム30からのアクセス要求が読出要求の場合に占有す
るミラーディスク側のディスク装置は、常に負荷の小さ
い一方のディスク装置となり、また、書込要求のうち処
理終了待ち状態にある読出要求との間でアクセス対象領
域が重複する書込要求はその読出要求に対する処理が終
了するまで待たされるので、読出データの矛盾が回避さ
れる。また、その際の読出/書込要求処理に要する時間
は、図7(d)のとおりとなり、従来の各手法に較べて
短縮されていることがわかる。なお、本発明は、上記実
施例の流れに限定されるものではなく、その要旨を逸脱
しない範囲での手順変更が可能である。
As a result of the control according to the above flow, when the access request from the upper program 30 is a read request, the disk device on the mirror disk side that is occupied is always the one having a smaller load, and the write request Among them, the write request whose access target area overlaps with the read request waiting for the completion of processing is kept waiting until the processing for the read request is completed, so that the contradiction of the read data is avoided. Further, the time required for the read / write request processing at that time is as shown in FIG. 7D, and it can be seen that the time is shortened as compared with each conventional method. It should be noted that the present invention is not limited to the flow of the above-described embodiment, and the procedure can be changed without departing from the scope of the invention.

【0039】[0039]

【発明の効果】以上の説明から明らかなように、本発明
のミラーディスクアクセス制御方法によれば、上位プロ
グラムからのアクセス要求が読出要求のときに占有する
ミラーディスク側のディスク装置は、相対的に負荷の小
さいものが割り当てられるので、上位プログラムからの
ミラーディスクへのアクセス対象領域の偏りの有無に関
わり無く、ミラーディスクにおける負荷の偏りが防止さ
れる効果がある。
As is apparent from the above description, according to the mirror disk access control method of the present invention, the disk device on the mirror disk side occupied when the access request from the upper program is a read request is relatively Since the one having a small load is allocated to the mirror disk, there is an effect that the bias of the load on the mirror disk is prevented regardless of the presence or absence of the deviation of the access target area to the mirror disk from the upper program.

【0040】これにより上位プログラムからのミラーデ
ィスクアクセスのスループットが格段に向上するので、
従来の問題点を解消することができる。
As a result, the throughput of the mirror disk access from the upper program is significantly improved.
The conventional problems can be solved.

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

【図1】本発明のミラーディスクアクセス制御方法を実
現するための構成概要図。
FIG. 1 is a schematic configuration diagram for realizing a mirror disk access control method of the present invention.

【図2】本発明の一実施例に係るミラーディスクアクセ
ス制御方法の概念説明図。
FIG. 2 is a conceptual explanatory diagram of a mirror disk access control method according to an embodiment of the present invention.

【図3】本実施例で用いるアクセス要求ブロックの内容
説明図。
FIG. 3 is an explanatory diagram of contents of an access request block used in this embodiment.

【図4】本実施例による処理の流れを示すフローチャー
ト。
FIG. 4 is a flowchart showing the flow of processing according to this embodiment.

【図5】本実施例による処理の流れを示すフローチャー
ト(続き)。
FIG. 5 is a flowchart (continuation) showing the flow of processing according to the present embodiment.

【図6】本実施例による処理の流れを示すフローチャー
ト(続き)。
FIG. 6 is a flowchart (continuation) showing the flow of processing according to the present embodiment.

【図7】従来の各手法と本実施例の方法との処理時間比
較図。
FIG. 7 is a processing time comparison diagram of each conventional method and the method of the present embodiment.

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

10 オペレーティングシステム 101 処理待ちキュー 102 正ディスクキュー 103 副ディスクキュー 104 完了待ちキュー 105〜108 アクセス要求ブロック 109 ミラーディスク管理表 21,22 ミラーディスクを構成するディスク装置 10 Operating System 101 Processing Queue 102 Primary Disk Queue 103 Secondary Disk Queue 104 Completion Waiting Queue 105 to 108 Access Request Block 109 Mirror Disk Management Tables 21 and 22 Disk Devices Constituting Mirror Disk

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 上位プログラムからのアクセス要求に従
ってミラーディスクに対するデータの読出又は書込制御
を行うミラーディスクアクセス制御部を備え、該ミラー
ディスクアクセス制御部が、前記アクセス要求の読出又
は書込の種別を判定する手段と、アクセス対象領域を認
識する手段と、ミラーディスクを構成するディスク装置
毎の処理待ちアクセス要求数を検出する手段とを有する
オペレーティングシステムにおいて、前記上位プログラ
ムから送られるアクセス要求のうち、読出要求は、前記
処理待ちアクセス要求数が相対的に少ない一方のディス
ク装置に対して割り当てることを特徴とするミラーディ
スクアクセス制御方法。
1. A mirror disk access control unit for controlling reading or writing of data to a mirror disk according to an access request from a higher-level program, wherein the mirror disk access control unit is a type of reading or writing of the access request. Of the access requests sent from the higher-order program in the operating system having a means for determining the access target area, a means for recognizing the access target area, and a means for detecting the number of processing waiting access requests for each disk device forming the mirror disk. The mirror disk access control method, wherein the read request is assigned to one of the disk devices for which the number of access requests waiting to be processed is relatively small.
【請求項2】 請求項1記載のミラーディスクアクセス
制御方法において、前記処理待ちアクセス要求数を、当
該ディスク装置からの割り込み受信の度に減少させるこ
とを特徴とするミラーディスクアクセス制御方法。
2. The mirror disk access control method according to claim 1, wherein the number of access requests waiting to be processed is reduced each time an interrupt is received from the disk device.
【請求項3】 請求項1記載のミラーディスクアクセス
制御方法において、前記上位プログラムから送られるア
クセス要求が書込要求のときに、処理終了待ち状態にあ
る読出要求との間でアクセス対象領域が重複するか否か
を判定し、重複しない書込要求は両方のディスク装置に
対して割り当て、重複する書込要求はその処理終了待ち
状態の読出要求に対する処理が終了するまで待ち合わせ
ることを特徴とするミラーディスクアクセス制御方法。
3. The mirror disk access control method according to claim 1, wherein when an access request sent from the upper-level program is a write request, an access target area overlaps with a read request waiting for processing completion. Mirrors characterized by deciding whether or not to do so, assigning non-overlapping write requests to both disk devices, and waiting for duplicate write requests until the processing for the read request in the processing end waiting state is completed. Disk access control method.
JP6036189A 1994-03-07 1994-03-07 Method for controlling access to mirror disk Pending JPH07244562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6036189A JPH07244562A (en) 1994-03-07 1994-03-07 Method for controlling access to mirror disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6036189A JPH07244562A (en) 1994-03-07 1994-03-07 Method for controlling access to mirror disk

Publications (1)

Publication Number Publication Date
JPH07244562A true JPH07244562A (en) 1995-09-19

Family

ID=12462787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6036189A Pending JPH07244562A (en) 1994-03-07 1994-03-07 Method for controlling access to mirror disk

Country Status (1)

Country Link
JP (1) JPH07244562A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251896A (en) * 2005-03-08 2006-09-21 Nec Corp Disk management device and disk load information acquisition method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251896A (en) * 2005-03-08 2006-09-21 Nec Corp Disk management device and disk load information acquisition method

Similar Documents

Publication Publication Date Title
JP4252139B2 (en) Storage system
US20060230240A1 (en) Inter-processor communication method using a shared cache memory in a storage system
KR970002659A (en) Data processing systems, methods for controlling multiple transactions through bus-to-bus bridges and bridges
JPH0713905A (en) Storage device system and control method therefor
JPH10198607A (en) Data multiplexing system
US20070255897A1 (en) Apparatus, system, and method for facilitating physical disk request scheduling
US20020199038A1 (en) Input/output control apparatus, input/output control method and informatiion storage system
JPH07244562A (en) Method for controlling access to mirror disk
JPH04284529A (en) Optical disk access device
JP2005275537A (en) Copy control apparatus and method
JPH01140326A (en) Magnetic disk device
JP2007264751A (en) Data transfer controller
JPH07325779A (en) Input/output controller
JP2001222382A (en) Disk device
JPH07160655A (en) Memory access system
JPH03127157A (en) Load balance control system for storage device
JP2596192B2 (en) Load distribution control method for peripheral control device
JP2588946B2 (en) I / O path control method and I / O subsystem
JP2000003287A (en) Exclusive controller for shared resource, method therefor and recording medium for recording exclusive control program
JPH07121307A (en) Multiplexed disk device
JPH10293656A (en) Disk storage system and duplexing method applied to the storage system
JP2000089998A (en) Remote file controller
JPH07210446A (en) Priority discrimination device
JPH10171670A (en) Task switching device and medium recording task switching program
JPH0830399A (en) Data transmission system