JPH01171015A - Input/output load dispersion system - Google Patents
Input/output load dispersion systemInfo
- Publication number
- JPH01171015A JPH01171015A JP62331487A JP33148787A JPH01171015A JP H01171015 A JPH01171015 A JP H01171015A JP 62331487 A JP62331487 A JP 62331487A JP 33148787 A JP33148787 A JP 33148787A JP H01171015 A JPH01171015 A JP H01171015A
- Authority
- JP
- Japan
- Prior art keywords
- input
- output
- file
- reading
- executed
- 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
- 239000006185 dispersion Substances 0.000 title 1
- 238000000034 method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、二重化されたファイルの入出力負荷分散方式
に利用する。特に、二重化ファイルからの読出時の読出
媒体の決定方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to an input/output load distribution method for duplicated files. In particular, it relates to a method for determining a reading medium when reading from a duplexed file.
本発明は二重化ファイルの入出力方式において、二重化
ファイルから読出すときに、正ファイルから読出すか副
ファイルから読出すかをファイルの存在する媒体の入出
力負荷に基づいて決定することにより、
二重化ファイルの入出力負荷を平均化しスループットを
向上するものである。The present invention provides an input/output method for a duplexed file by determining whether to read from a primary file or a subfile when reading from a duplexed file based on the input/output load of the medium on which the file exists. It averages the input/output load and improves throughput.
従来、二重化ファイルからの読出方式は、必ず正のファ
イルから行われ、正ファイルが障害などで入出力不可能
な場合に限って副ファイルからの読出を行うようになっ
ていた。Conventionally, reading from a duplexed file was always performed from the primary file, and reading from the secondary file was performed only when the primary file was unable to be input/output due to a failure or the like.
しかし、このような従来の二重化ファイルからの読出方
式では、通常の場合に必ず正のファイルから読出が行わ
れるために、二重化ファイルの正のファイルが多い媒体
に対する入出力が集中する欠点があった。However, in this conventional method for reading from duplexed files, since reading is always performed from the positive file in normal cases, there is a drawback that input/output is concentrated on the medium where there are many positive files in the duplexed file. .
本発明は上記の欠点を解決するもので、二重化ファイル
の入出り負荷を平均化できる入出力負荷分散方式を提供
することを目的とする。The present invention solves the above-mentioned drawbacks, and aims to provide an input/output load distribution method that can average the input/output load of a duplicated file.
本発明は、正ファイルが記録される二重化ファイルを含
む第一の記憶媒体と、副ファイルが記録される二重化フ
ァイルを含む第二の記憶媒体と、上記二つの正副ファイ
ルに同時に書込む手段および一方のファイルから読出す
手段を含む入出力手段とを含む二重化ファイルの入出力
負荷分散方式において、上記入出力手段の上記二つの記
憶媒体に対するそれぞれの実行待入出力要求を計数する
実行待入出力要求カウント手段と、二重化ファイルのオ
ープン時にこの実行待入出力要求カウント手段の計数結
果に従って実行待入出力要求数の少ない記憶媒体を選択
する読出媒体選択手段と、この読出媒体選択手段の選択
結果に従って上記入出力手段を制御する入出力制御手段
とを備えたことを特徴とする。The present invention provides a first storage medium including a duplicated file in which a primary file is recorded, a second storage medium including a duplicated file in which a secondary file is recorded, a means for simultaneously writing to the two primary and secondary files, and one of the primary and secondary files. In a duplex file input/output load distribution method including an input/output means including a means for reading from a file, an input/output request waiting to be executed counts each input/output request waiting to be executed to the two storage media of the input/output means. a counting means, a reading medium selecting means for selecting a storage medium with a small number of waiting-to-be-executed input/output requests according to the counting result of the waiting-to-be-executed input-output request counting means when a duplexed file is opened; The present invention is characterized by comprising input/output control means for controlling the input/output means.
実行待入出力要求カウント手段で二つの記憶媒体に対す
るそれぞれの実行待入出力要求数を計数する。読出媒体
選択手段で二重化ファイルのオープン時に実行待入出力
要求カウント手段の計数結果に従って実行待入出力要求
数の少ない記憶媒体を選択する。入出力制御手段で読出
媒体選択手段の選択結果に従って入出力手段を制御する
。以上の動作により二重化ファイルの入出力負荷を平均
化できる。これにより、待ち合わせ処理や処理時間の遅
延が少なくなり、スループットが向上する。A waiting-to-be-executed input/output request counting means counts the number of pending-to-be-executed input/output requests for each of the two storage media. The reading medium selection means selects a storage medium with a small number of waiting-to-be-executed input-output requests according to the count result of the waiting-to-be-executed input-output request counting means when the duplexed file is opened. The input/output control means controls the input/output means according to the selection result of the reading medium selection means. By the above operation, the input/output load of the duplicated file can be averaged. This reduces delays in waiting processing and processing time, and improves throughput.
本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例入出力負荷分散装置のブロック構成
図である。第1図において、入出力負荷分散装置は、二
重化ファイルの書込および読出を実行するプログラム手
段1と、プログラム手段1の二重化ファイルのオープン
要求を受けて起動信号を出力するファイルオープン手段
2と、正ファイルが作成される二重化ファイル9を含む
大容量記憶媒体7と、副ファイルが作成される二重化フ
ァイル10を含む大容量記憶媒体8と、大容量記憶媒体
7.8に正ファイルおよび副ファイルを同時に書込む手
段および正ファイルまたは副ファイルから読出す手段を
含む入出力手段6とを備える。Embodiments of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of an input/output load balancing device according to an embodiment of the present invention. In FIG. 1, the input/output load distribution device includes a program means 1 for writing and reading a duplex file, a file open means 2 for outputting a start signal in response to a request to open the duplex file from the program means 1; A large-capacity storage medium 7 containing a duplexed file 9 where a primary file is created, a large-capacity storage medium 8 containing a duplexed file 10 where a secondary file is created, and a primary file and a secondary file on the large-capacity storage medium 7.8. It is provided with input/output means 6 including means for simultaneously writing and means for reading from a primary file or a subfile.
ここで本発明の特徴とするところは、入出力手段6が大
容量記憶媒体に対するそれぞれの実行待入出力要求数を
計数する実行待入出力要求カウント手段5と、ファイル
オープン手段2の起動信号および実行待入出力要求カウ
ント手段5の計数値に従って実行待入出力要求数の少な
い記憶媒体を選択する読出媒体選択手段3と、プログラ
ム手段1からの読出要求および読出媒体選択手段3の選
択結果に従って入出力手段6を制御し入出力手段6を経
由して大容量記憶媒体7.8から読出してプログラム1
に与える入出力制御手段4とを備えたことにある。Here, the characteristics of the present invention are that the input/output means 6 includes a pending input/output request counting means 5 for counting the number of pending input/output requests for each large-capacity storage medium, and an activation signal for the file open means 2; A reading medium selection means 3 selects a storage medium with a small number of waiting input/output requests according to the count value of the waiting input/output request counting means 5; The output means 6 is controlled and the program 1 is read from the mass storage medium 7.8 via the input/output means 6.
This is because it is equipped with an input/output control means 4 that provides input/output control means.
このような構成の入出力負荷分散装置の動作について説
明する。第2図は本発明の入出力負荷分散装置の読出時
の動作を示すフローチャートを示す。第1図および第2
図において、実行待入出力要求カウント手段5は、二重
化ファイル9および二重化ファイル10の存在する大容
量記憶媒体7.8に対する実行待入出力要求数を計数し
保持している(■〉。The operation of the input/output load distribution device having such a configuration will be explained. FIG. 2 shows a flowchart showing the read operation of the input/output load balancing device of the present invention. Figures 1 and 2
In the figure, the waiting-to-be-executed input/output request counting means 5 counts and holds the number of pending-to-be-executed input/output requests for the large-capacity storage medium 7.8 on which the duplexed file 9 and the duplexed file 10 exist (■>).
プログラム手段1からの二重化ファイルのオープン要求
を受けるとファイルオープン手段2は、読出媒体選択手
段3を起動する(■)。Upon receiving a duplex file open request from the program means 1, the file open means 2 activates the read medium selection means 3 (■).
読出媒体選択手段3は、実行待入出力要求カウント手段
5から大容量記憶媒体7.8の実行待入出力要求数を得
て、実行待入出力要求の少ない媒体を読出媒体として選
択する(■)。The read medium selection means 3 obtains the number of pending I/O requests of the mass storage medium 7.8 from the pending I/O request counting means 5, and selects the medium with fewer pending I/O requests as the read medium (■ ).
プログラム手段1の二重化ファイルからの読込要求を受
けると入出力制御手段4は、読出媒体選択手段により選
択された媒体からの読出しを入出力手段6に対して指示
する。入出力手段6は、入出力制御手段4から選択され
た大容量記憶媒体から読出してプログラム手段1に出力
する(■)。Upon receiving a read request from the duplexed file from the program means 1, the input/output control means 4 instructs the input/output means 6 to read from the medium selected by the read medium selection means. The input/output means 6 reads from the large capacity storage medium selected by the input/output control means 4 and outputs it to the program means 1 (■).
以上説明したように、本発明は、二重化ファイルの入出
力負荷を平均化できスループットが向上する優れた効果
がある。As described above, the present invention has the excellent effect of averaging the input/output load of duplicated files and improving throughput.
第1図は本発明一実施例入出力負荷分散装置のブロック
構成図。
第2図は本発明の入出力負荷分散装置の読出時の動作を
示すフローチャート。
1・・・プログラム手段、2・・・ファイルオープン手
段、3・・・読出媒体選択手段、4・・・入出力制御手
段、5・・・実行待入出力要求カウント手段、6・・・
入出力手段、7.8・・・大容量記憶媒体、9.10・
・・二重化ファイル。FIG. 1 is a block diagram of an input/output load balancing device according to an embodiment of the present invention. FIG. 2 is a flowchart showing the read operation of the input/output load balancing device of the present invention. DESCRIPTION OF SYMBOLS 1... Program means, 2... File open means, 3... Reading medium selection means, 4... Input/output control means, 5... Execution waiting input/output request counting means, 6...
Input/output means, 7.8... Mass storage medium, 9.10.
・Duplicate file.
Claims (1)
一の記憶媒体と、 副ファイルが記録される二重化ファイルを含む第二の記
憶媒体と、 上記二つの正副ファイルに同時に書込む手段および一方
のファイルから読出す手段を含む入出力手段と を含む二重化ファイルの入出力負荷分散方式において、 上記入出力手段の上記二つの記憶媒体に対するそれぞれ
の実行待入出力要求を計数する実行待入出力要求カウン
ト手段と、 二重化ファイルのオープン時にこの実行待入出力要求カ
ウント手段の計数結果に従って実行待入出力要求数の少
ない記憶媒体を選択する読出媒体選択手段と、 この読出媒体選択手段の選択結果に従って上記入出力手
段を制御する入出力制御手段と を備えたことを特徴とする入出力負荷分散方式。(1) A first storage medium including a duplex file in which the primary file is recorded, a second storage medium including the duplex file in which the sub file is recorded, a means for simultaneously writing to the two primary and secondary files, and one of the primary and secondary files. In an input/output load distribution method for a duplex file that includes an input/output means including a means for reading from a file, an execution-waiting input/output request count that counts each execution-waiting input/output request to the two storage media of the input/output means. a reading medium selecting means for selecting a storage medium with a small number of waiting-to-be-executed input/output requests according to the count result of the waiting-to-be-executed input-output request counting means when a duplexed file is opened; An input/output load distribution method comprising: input/output control means for controlling output means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62331487A JPH01171015A (en) | 1987-12-25 | 1987-12-25 | Input/output load dispersion system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62331487A JPH01171015A (en) | 1987-12-25 | 1987-12-25 | Input/output load dispersion system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01171015A true JPH01171015A (en) | 1989-07-06 |
Family
ID=18244191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62331487A Pending JPH01171015A (en) | 1987-12-25 | 1987-12-25 | Input/output load dispersion system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01171015A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5542064A (en) * | 1991-11-21 | 1996-07-30 | Hitachi, Ltd. | Data read/write method by suitably selecting storage units in which multiple copies of identical data are stored and apparatus therefor |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5730066A (en) * | 1980-07-30 | 1982-02-18 | Fuji Facom Corp | Access control system for duplicated file |
-
1987
- 1987-12-25 JP JP62331487A patent/JPH01171015A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5730066A (en) * | 1980-07-30 | 1982-02-18 | Fuji Facom Corp | Access control system for duplicated file |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5542064A (en) * | 1991-11-21 | 1996-07-30 | Hitachi, Ltd. | Data read/write method by suitably selecting storage units in which multiple copies of identical data are stored and apparatus therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS62177621A (en) | Disk device | |
JPH01171015A (en) | Input/output load dispersion system | |
US6016396A (en) | Parallel code conversion processing method and parallel code conversion processing system | |
JPS6356873A (en) | Read system in duplicated file | |
JPH05134934A (en) | Storage controller | |
JP2596192B2 (en) | Load distribution control method for peripheral control device | |
JPH0744435A (en) | I/o load distribution control system at duplicating file equipment | |
JPS60218149A (en) | Dma mode control device | |
JPH02103655A (en) | Request buffer control system | |
JPS6048774B2 (en) | Data file management method | |
JPH01185878A (en) | Autochanger control system | |
JP4106938B2 (en) | Data transfer control device | |
JP2718462B2 (en) | Virtual I / O method with completion wait I / O priority | |
JPS6091884A (en) | Controlling method for motor acceleration or deceleration | |
JPH04268652A (en) | Filing device | |
JPH05233159A (en) | Duplex auxiliary storage system | |
JPH04346123A (en) | Data transfer device | |
JPH0448319A (en) | Data transfer system | |
JPH02130623A (en) | Filing device | |
JPS63180146A (en) | Multiplex buffering control system for work file | |
JPS58146922A (en) | Input and output controller | |
JPH0218653A (en) | Reoutput system for received data | |
JPS61127025A (en) | Optical disk controller | |
JPS60239821A (en) | File control system | |
JPS63217444A (en) | Multiple port memory |