JPS6128128B2 - - Google Patents
Info
- Publication number
- JPS6128128B2 JPS6128128B2 JP55104609A JP10460980A JPS6128128B2 JP S6128128 B2 JPS6128128 B2 JP S6128128B2 JP 55104609 A JP55104609 A JP 55104609A JP 10460980 A JP10460980 A JP 10460980A JP S6128128 B2 JPS6128128 B2 JP S6128128B2
- Authority
- JP
- Japan
- Prior art keywords
- magnetic disk
- read
- file
- disk device
- external storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 238000000034 method Methods 0.000 claims description 6
- 230000009977 dual effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 5
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Description
【発明の詳細な説明】
本発明は同一のフアイルが2個設けられる二重
化フアイル・システムにおいて、読込み/書込み
の待時間を短縮できるようにした二重化フアイル
のアクセス制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a duplex file access control system that makes it possible to reduce read/write waiting time in a duplex file system in which two identical files are provided.
第1図には二重化フアイル・システムの機器構
成を示すものであつて、1は中央処理装置、2−
Aと2−Bはデータ・チヤネル、3−Aと3−B
は磁気デイスク装置をそれぞれ示している。第2
図に示すように磁気デイスク装置3−Aにはフア
イルA,B,Cが作られ、磁気デイスク装置3−
BにもフアイルA,B,Cが作られている。従来
の二重化フアイルのアクセス制御方式において
は、磁気デイスク装置3−A又は3−Bのいずれ
か一方の磁気デイスク装置、例えば磁気デイスク
装置3−Aが主系とされ、他の磁気デイスク装
置、例えば3−Bが従系とされている。中央処理
装置1が、データを読出す場合には主系である磁
気デイスク装置3−Aから読出され、中央処理装
置がデータを書込む場合には主系磁気デイスク装
置3−Aおよび従系磁気デイスク装置3−Bの両
方に書込まれる。この種の従来の二重化フアイル
の制御方式では、読込要求が複数個存在した場合
には、それらは全て主フアイルに待ち行列を作る
ため、行列が長くなつてしまい待ち時間が大きい
という欠点を有している。 Fig. 1 shows the equipment configuration of the duplex file system, where 1 is the central processing unit, 2 -
A and 2-B are data channels, 3-A and 3-B
indicate magnetic disk devices, respectively. Second
As shown in the figure, files A, B, and C are created in the magnetic disk device 3-A, and files A, B, and C are created in the magnetic disk device 3-A.
Files A, B, and C are also created in B. In the conventional duplex file access control system, one of the magnetic disk devices 3-A and 3-B, for example, the magnetic disk device 3-A, is the main system, and the other magnetic disk devices, for example, 3-B is considered to be the subordinate system. When the central processing unit 1 reads data, it is read from the main magnetic disk device 3-A, and when the central processing unit writes data, it is read from the main magnetic disk device 3-A and the slave magnetic disk device 3-A. It is written to both disk devices 3-B. This type of conventional duplex file control method has the disadvantage that when there are multiple read requests, all of them are queued in the main file, resulting in a long queue and long waiting time. ing.
本発明は、上記の欠点を除去するものであつ
て、同一のフアイルが2個設けられる二重化フア
イル・システムにおいて待ち時間を短縮できるよ
うにした二重化フアイルのアクセス制御方式を提
供することを目的としている。そしてそのため、
本発明の二重化フアイルのアクセス制御方式は、
同一のフアイルが格納されている2個の外部記憶
装置を有する二重化フアイル・システムにおい
て、リード要求が発生したとき空きの外部記憶装
置が存在するか否かを調べ、存在する場合には、
空きの外部記憶装置より所要のデータを読出し、
ライト要求が発生したときには空きの外部記憶装
置が存在するか否かを調べ、存在する場合には、
ライト処理に必要なデータを空きの外部記憶装置
より読出して主メモリにロードし、しかる後に両
方の外部記憶装置に対するライト処理を行うこと
を特徴とするものである。以下、本発明を図面を
参照しつつ説明する。 SUMMARY OF THE INVENTION The present invention aims to eliminate the above-mentioned drawbacks, and to provide a duplex file access control method that can reduce waiting time in a duplex file system in which two identical files are provided. . And for that reason,
The duplex file access control method of the present invention is as follows:
In a dual file system that has two external storage devices storing the same file, when a read request occurs, it is checked whether or not there is a free external storage device, and if there is,
Read the required data from a free external storage device,
When a write request occurs, it is checked whether there is a free external storage device, and if there is,
The present invention is characterized in that data required for write processing is read from a free external storage device and loaded into the main memory, and then write processing is performed on both external storage devices. Hereinafter, the present invention will be explained with reference to the drawings.
第3図は待ち行列管理のキユー(Que)を示す
ものであつて、4はリード・キユー、5はライ
ト・キユーをそれぞれ示している。リード・キユ
ー4にはランダムに発生するリード要求A,B,
Cがつながれ、ライト・キユー5にはランダムに
発生するライト要求A,B,Cがつながれる。 FIG. 3 shows queues for queue management, where 4 indicates a read queue and 5 indicates a write queue. The read queue 4 has randomly generated read requests A, B,
Write requests A, B, and C that occur randomly are connected to the write queue 5.
第4図および第5図はリード時の待時間の短縮
を説明する図である。いま、リード要求A,B,
C,Dが順次に発生したとすると仮定する。フア
イルAをアクセスするリード要求Aが受付けられ
ると、磁気デイスク装置3−AのフアイルAがア
クセスされる。リード要求Aの実行中にフアイル
1をアクセスするリード要求Bが発生したとする
と、磁気デイスク装置3−Bのフアイル3−Bが
アクセスされる。フアイルBをアクセスするリー
ド要求が発生し、このとき磁気デイスク装置3−
Aが空きであり、磁気デイスク装置3−Bがビジ
イであつたとすると、磁気デイスク装置3−Aの
フアイルBがアクセスされる。フアイルBをアク
セスするリード要求Cが発生し、このとき磁気デ
イスク装置3−Aがビジイであり、磁気デイスク
装置3−Bが空きであるとすると、磁気デイスク
装置3−BのフアイルBがアクセスされる。 FIGS. 4 and 5 are diagrams illustrating reduction in waiting time during reading. Now, read requests A, B,
Assume that C and D occur sequentially. When read request A to access file A is accepted, file A of magnetic disk device 3-A is accessed. If read request B accessing file 1 occurs while read request A is being executed, file 3-B of magnetic disk device 3-B is accessed. A read request to access file B occurs, and at this time, the magnetic disk drive 3-
If file A is empty and magnetic disk device 3-B is busy, file B of magnetic disk device 3-A is accessed. If a read request C to access file B occurs, and at this time the magnetic disk device 3-A is busy and the magnetic disk device 3-B is empty, file B of the magnetic disk device 3-B is accessed. Ru.
第6図はリード処理を示すフローチヤートであ
る。リード要求が発生すると、リード要求がリー
ド・キユーにつながれる。次に、主メモリ上のデ
イスク管理テーブル6,7を参照し、磁気デイス
ク装置3−A,3−Bのビジイ・チエツクを行
い、そして磁気デイスク装置3−A,3−Bのど
ちらが使用可能であるかを判定する。 FIG. 6 is a flowchart showing read processing. When a read request occurs, the read request is connected to the read queue. Next, referring to the disk management tables 6 and 7 on the main memory, a busy check is performed on the magnetic disk drives 3-A and 3-B, and which of the magnetic disk drives 3-A and 3-B is available for use is determined. Determine if there is.
磁気デイスク装置3−Aが使用可のときには、
磁気デイスク装置3−Aのビジイ・フラグをオン
とし、該当するリード要求をリード・キユー4か
ら外す。磁気デイスク装置の該当するフアイルか
らデータを読出し、データの読出しが完了する
と、磁気デイスク装置3−Aのビジイ・フラグを
オフとする。磁気デイスク装置3−Bが使用可の
装置とあると判断されたときにも同様な処理が行
われる。 When the magnetic disk device 3-A is usable,
The busy flag of the magnetic disk device 3-A is turned on, and the corresponding read request is removed from the read queue 4. Data is read from the corresponding file of the magnetic disk device, and when the data reading is completed, the busy flag of the magnetic disk device 3-A is turned off. Similar processing is performed when it is determined that the magnetic disk device 3-B is a usable device.
次にライト時の待ち時間の短縮について説明す
る。ライト時には両方のフアイルにデータを書込
むので、そのときは二重化された磁気デイスク装
置3−A,3−Bの両方がビジイとなるが、フア
イルにデータをライトする場合には、フアイル上
のデータを主メモリ上に読込み、更新したデータ
をフアイルにライトしている。フアイルのデータ
を主メモリ上に読込むときには、空きの磁気デイ
スク装置を見付け、この磁気デイスク装置よりデ
ータをリードして主メモリへロードすることが可
能となる。また、磁気デイスク装置3−Aのフア
イルおよび3−Bのフアイルにデータを書込むと
き、ヘツドの初期位置の相違によつていずれか一
方の磁気デイスク装置が他方より早くライト処理
を完了する場合があるが、このような場合には待
ちのリード要求にその磁気デイスク装置を渡す。 Next, the reduction of the waiting time during writing will be explained. At the time of writing, data is written to both files, so both of the duplicated magnetic disk devices 3-A and 3-B are busy at that time, but when writing data to a file, the data on the file is is read into main memory and the updated data is written to a file. When reading file data onto the main memory, it is possible to find an empty magnetic disk device, read the data from this magnetic disk device, and load it into the main memory. Furthermore, when writing data to the file of magnetic disk drive 3-A and the file of magnetic disk drive 3-B, one of the magnetic disk drives may complete the write process earlier than the other due to the difference in the initial position of the heads. However, in such a case, the magnetic disk device is passed to the waiting read request.
第7図はライト処理を説明するフローチヤート
である。ライト要求が発生すると、このライト要
求がライト・キユー5につながれる。 FIG. 7 is a flowchart illustrating write processing. When a write request occurs, this write request is connected to the write queue 5.
ライト要求をキユー5につながつた後、主メモ
リ上のデイスク管理テーブル6,7を参照し、磁
気デイスク装置3−A,3−Bのビジイ・チエツ
クを行い、そして磁気デイスク装置3−A,3−
Bのどちらが使用可能であるかを判定する。磁気
デイスク装置3−Aが使用可能である場合には、
磁気デイスク装置3−Aのデータを読出し、磁気
デイスク装置3−Bが使用可の場合には磁気デイ
スク装置3−Bのデータを読出する。必要なデー
タを主メモリ上にロードした後、他方の磁気デイ
スク装置がビジイであるか否かをチエツクする。
他方の磁気デイスク装置がビジイでない場合は、
直ちに、他方の磁気デイスク装置がビジイの場合
にはそのビジイ解除を待つて、両方の磁気デイス
ク装置3−A,3−Bにデータをライトする。ラ
イトが完了した後、磁気デイスク装置3−Aのビ
ジイ・フラグおよび磁気デイスク装置3−Bのビ
ジイ・フラグをオフにし、しかる後に該当するラ
イト要求をキユー5から外す。 After connecting the write request to the queue 5, the disk management tables 6 and 7 on the main memory are referred to, and a busy check of the magnetic disk devices 3-A and 3-B is performed. −
Determine which of B is usable. If the magnetic disk device 3-A is usable,
The data of the magnetic disk device 3-A is read, and if the magnetic disk device 3-B is usable, the data of the magnetic disk device 3-B is read. After loading the necessary data onto the main memory, it is checked whether the other magnetic disk device is busy.
If the other magnetic disk device is not busy,
Immediately, if the other magnetic disk device is busy, it waits for it to be released from the busy state, and then writes data to both magnetic disk devices 3-A and 3-B. After the write is completed, the busy flag of the magnetic disk device 3-A and the busy flag of the magnetic disk device 3-B are turned off, and then the corresponding write request is removed from the queue 5.
以上の説明から明らかなように、本発明によれ
ば、二重化フアイル・システムにおいて、フアイ
ル・アクセスの待時間を従来方式に比し大幅に短
縮することが可能となる。 As is clear from the above description, according to the present invention, in a duplex file system, the waiting time for file access can be significantly reduced compared to the conventional system.
第1図は二重化フアイル・システムの機器構成
を示す図、第2図は二重化フアイル・システムの
磁気デイスク装置に格納されているフアイルを示
す図、第3図は待ち行列管理のキユーを示す図、
第4図および第5図はリード時の待ち時間の短縮
を説明する図、第6図はリード処理を示すフロー
チヤート、第7図はライト処理を示すフローチヤ
ートである。
1……中央処理装置、2−Aと2−B……デー
タ・チヤネル、3−Aと3−B……磁気デイスク
装置、4……リード・キユー、5……ライト・キ
ユー、6と7……デイスク管理テーブル。
FIG. 1 is a diagram showing the equipment configuration of a duplex file system, FIG. 2 is a diagram showing files stored in a magnetic disk device of the duplex file system, and FIG. 3 is a diagram showing a queue for queue management.
FIGS. 4 and 5 are diagrams for explaining reduction of waiting time during reading, FIG. 6 is a flowchart showing read processing, and FIG. 7 is a flowchart showing write processing. 1...Central processing unit, 2-A and 2-B...Data channel, 3-A and 3-B...Magnetic disk device, 4...Read queue, 5...Write queue, 6 and 7 ...Disk management table.
Claims (1)
記憶装置を有する二重化フアイル・システムにお
いて、リード要求が発生したとき空きの外部記憶
装置が存在するか否かを調べ、存在する場合に
は、空きの外部記憶装置より所要のデータを読出
し、ライト要求が発生したときには空きの外部記
憶装置が存在するか否かを調べ、存在する場合に
は、ライト処理に必要なデータを空きの外部記憶
装置より読出して主メモリにロードし、しかる後
に両方の外部記憶装置に対するライト処理を行う
ことを特徴とする二重化フアイルのアクセス制御
方式。1 In a dual file system that has two external storage devices storing the same file, when a read request occurs, it is checked whether there is a free external storage device, and if there is, it is When a write request occurs, it is checked whether or not there is a free external storage device, and if there is, the data required for the write process is read from the free external storage device. A duplex file access control method characterized by reading and loading into main memory, and then performing write processing to both external storage devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10460980A JPS5730066A (en) | 1980-07-30 | 1980-07-30 | Access control system for duplicated file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10460980A JPS5730066A (en) | 1980-07-30 | 1980-07-30 | Access control system for duplicated file |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5730066A JPS5730066A (en) | 1982-02-18 |
JPS6128128B2 true JPS6128128B2 (en) | 1986-06-28 |
Family
ID=14385163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10460980A Granted JPS5730066A (en) | 1980-07-30 | 1980-07-30 | Access control system for duplicated file |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5730066A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63129231U (en) * | 1987-02-18 | 1988-08-24 | ||
JPH02292641A (en) * | 1989-05-02 | 1990-12-04 | Hitachi Ltd | Method for controlling data base |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63140351A (en) * | 1986-12-02 | 1988-06-11 | Nec Corp | Multiplex managing system for library file |
JPH01171015A (en) * | 1987-12-25 | 1989-07-06 | Nec Corp | Input/output load dispersion system |
EP0775585B1 (en) * | 1995-11-21 | 2000-03-22 | Seiko Epson Corporation | Printer having a cutter and protective device for use in a printer |
-
1980
- 1980-07-30 JP JP10460980A patent/JPS5730066A/en active Granted
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63129231U (en) * | 1987-02-18 | 1988-08-24 | ||
JPH02292641A (en) * | 1989-05-02 | 1990-12-04 | Hitachi Ltd | Method for controlling data base |
Also Published As
Publication number | Publication date |
---|---|
JPS5730066A (en) | 1982-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5535381A (en) | Apparatus and method for copying and restoring disk files | |
TW200305857A (en) | Concurrent read and write access to simulated sequential data of a removable random access data storage medium | |
JP2846838B2 (en) | How to copy data in a storage library | |
JPS6128128B2 (en) | ||
JP2523715B2 (en) | Magnetic disk drive | |
KR900002189A (en) | Method and apparatus for improving data reliability in computer system | |
JPH05274760A (en) | Magnetic cartridge tape device of library type | |
JP2861342B2 (en) | Optical disk media transfer method | |
JPS6053326B2 (en) | Double data recording method for input/output control equipment | |
JPS63291266A (en) | Multi-disk type optical disk device | |
JPS6366773A (en) | Magnetic head mechanism for magnetic disk device | |
JPS6387690A (en) | Optical disk medium setting controller | |
JPS58125128A (en) | Computer system | |
JPH10320134A (en) | Optical disk library device | |
JP3319607B2 (en) | Playback device | |
JP2003345524A5 (en) | ||
JPS5991565A (en) | Dual disc device | |
JPS5987572A (en) | Controlling system of disk storage device | |
JPH0444134A (en) | Method and device for control of storage | |
JPS60122422A (en) | File control system | |
JP3443801B2 (en) | Library device | |
JPH09102186A (en) | Aggregate disk device | |
JPH05189154A (en) | Disk filing device for sequential operation | |
JPS63251965A (en) | Disk managing system | |
JPS63234316A (en) | Exclusive control system for table storage |