JPS6113352A - Method for exclusively controlling shared file - Google Patents

Method for exclusively controlling shared file

Info

Publication number
JPS6113352A
JPS6113352A JP59133747A JP13374784A JPS6113352A JP S6113352 A JPS6113352 A JP S6113352A JP 59133747 A JP59133747 A JP 59133747A JP 13374784 A JP13374784 A JP 13374784A JP S6113352 A JPS6113352 A JP S6113352A
Authority
JP
Japan
Prior art keywords
file
occupancy
occupied
register
request
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
JP59133747A
Other languages
Japanese (ja)
Inventor
Masahiro Fukuda
昌弘 福田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59133747A priority Critical patent/JPS6113352A/en
Publication of JPS6113352A publication Critical patent/JPS6113352A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To cope with long-time occupancy of a shared file when the shared file is already occupied so as to use the file efficiently, by counting the occupancy requesting number from others and, when the count number reaches a prescribed value, giving interrupting information to the occupying source. CONSTITUTION:A file 1 is controlled and exclusively managed by a file controlling section 2 composed mainly of a processor 3 and connected with host systems A-C which are the common users of the file 1 through a channel 4. The file control section 2 is provided with a counter which counts the occupancy requesting number accepted from other host systems while the shared file 1 is occupied and, when the count value of the counter reaches a prescribed value, performs an interruption to the occupying host system and informs the host system that the count value of the counter reaches the prescribed value.

Description

【発明の詳細な説明】 〈産業上の分野〉 本発明はデータ処理システムに係り特にマルチシステム
で共通の大容量ファイルを共用する場合におけるファイ
ルの排他管理制御に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Field> The present invention relates to data processing systems, and particularly to exclusive management control of files when a common large-capacity file is shared by multiple systems.

〈従来技術と背景〉 通常の大型のデータ処理システムではこうしたマルチシ
ステム構成で複数の異るシステムが同じハードを割込占
有しつつ複数のデータ処理を併行して進める構成、また
共通の大容量ファイルを共用する構成で稼動する例は多
く、こうした場合特定の装置内部の特定の機能あるいは
機能部分は一定時間は特定のシステムから要求される処
理で占有されるので重ねて受付けてぶつからない様各部
分等の占有状態を管理するための排他制御が必要とされ
実用されている。
<Prior art and background> Normal large-scale data processing systems have a multi-system configuration in which multiple different systems occupy the same hardware while processing multiple data in parallel, and a common large-capacity file. There are many cases in which the system is operated in a shared configuration, and in such cases, a specific function or functional part within a specific device is occupied for a certain period of time by processing requested by a specific system, so each part is divided to avoid conflicts due to repeated requests. Exclusive control is required and put into practical use to manage the occupancy status of such devices.

しかじ通當の排他制御では排他制御部は管理対象である
特定の機能、あるいは機能部分の占有状態を登録するレ
ジスタを支配下の対象の管理単位分だけもちある特定シ
ステムから支配下の特定の対象を占有したいと云う占有
要求コマンドを受けると、該対象が非占有の場合には該
要求を受付け、登録して占有を許可するが既に他システ
ムが占有している場合には許可しないと云う応答を当該
システムに戻すことにより待たせる制御を行い既占有シ
ステムから解除コマンドを受付けるか、異常監視システ
ムからタイムアウトの判定をされるまで占有を維持する
形式の制御が行われて来た。
In the conventional exclusive control, the exclusive control unit has registers for registering the occupancy status of a specific function or functional part to be managed, as many as the management units of the controlled object, and transfers information from a specific system to a specific controlled object. When receiving an occupancy request command indicating that a target is to be occupied, if the target is unoccupied, the request is accepted, registered, and possession is permitted, but if it is already occupied by another system, permission is not granted. Control has been carried out in which the response is returned to the system in question, causing the system to wait, and the occupation is maintained until a release command is received from the currently occupied system or a timeout is determined by the abnormality monitoring system.

く問題点〉 しかしこうした形式の制御の場合、不用意なシステムユ
ーザがいたり、あるシステムが内部で異常を起したり、
して処理がループした場合やハングした場合いつまでた
っても占有がリセットされ不特定のホストシステムが排
他制御で管理されている共用のハード、例えば大容量フ
ァイルの特定ボリューム等を占有したままとなり、他ホ
ストシステムからは使用不能になるため全体としてのシ
ステム効率が低下することである。しかも現在の制御方
法では時間監視はするがかなり長時間占有を必要とする
実行プログラム(ジョブと通称す)も想定しなければな
らないた・めタイムアウトは安全を見てかなり長(設定
しなければならず、この間異常の判定がおくれるし、リ
セットすれば状態が失われ、異常の早期検出も原因とt
A占有システムの特定も容易ではなく処理が後手に回り
やすいと云う欠点があった。
Problems: However, with this type of control, there may be cases where there is a careless system user, a certain system malfunctions internally, or
If the process loops or hangs, the occupancy will be reset and an unspecified host system will continue to occupy the shared hardware that is managed under exclusive control, such as a specific volume of a large file, and other The problem is that the host system becomes unusable, which reduces the overall system efficiency. Moreover, with current control methods, although time is monitored, it is necessary to assume that execution programs (commonly known as jobs) require occupancy for quite a long time.For safety reasons, the timeout must be set to a fairly long time. During this time, the abnormality determination is delayed, and the status is lost when reset, and early detection of the abnormality is also the cause.
It is not easy to identify the A-occupying system, and the process tends to be delayed.

〈解決手段〉 本発明の主旨は上記にかんがみ共用の大容量ファイル(
以下単にファイルと通称す)等の排他制御で管理される
対象を排他制御するファイル制御装置の排他制御管理部
に、支配下のファイル中の管理対象たるボリューム等の
管理単位毎に従来通り現占有システムを登録する現占有
レジスタを設ける外に、占有要求コマンドを一時受付け
る受付レジスタと、占有要求コマンドの到来回数に対応
して当該ボリュムが既占有であることを條件に歩進する
占有中要求数のカウンタとを管理単位分設けるとともに
、上記カウンタの値を監視しあらかじめ設定された指定
値と比較して一致を監視する手段と、一致を條件に現在
既占有中のホストシステムに対し割込みをかけてカウン
タが指定値に達したと云う意味の制御情報を送付する手
段と、これらの手順制御手段を付加することである。
<Solution Means> In view of the above, the main purpose of the present invention is to provide a shared large-capacity file (
The exclusive control management unit of the file control device that exclusively controls the targets managed under exclusive control, such as files (hereinafter simply referred to as files), is assigned the current occupancy as usual for each management unit such as the volume that is the management target in the file under control. In addition to providing a current occupancy register for registering the system, there is also a reception register that temporarily accepts occupancy request commands, and an occupancy request count that increments based on the number of times occupancy request commands arrive, provided that the volume is already occupied. In addition to providing a counter for each management unit, there is also a means for monitoring the value of the above counter and comparing it with a preset designated value to see if it matches, and an interrupt to the currently occupied host system on condition of a match. The method is to add means for sending control information indicating that the counter has reached a specified value, and means for controlling these procedures.

〈作用〉 こうした手段を従来の排他制御に付加することにより手
順制御手段はある特定のホストシステムからある特定の
ボリュームあての占有要求コマンドを受付レジスタに受
けると、受付けた要求元のシステムコードと現占有レジ
スタのシステムコードと比較し、■既占有のシステムが
なければそのまま登録しく占有を許可し)要求元に対し
許可応答を戻す。またカウンタをリセットする。
<Operation> By adding such means to the conventional exclusive control, when the procedure control means receives an occupancy request command for a certain volume from a certain host system in the reception register, the system code of the received request source and the current Compare it with the system code in the occupancy register, and (if there is no already occupied system, register it as is and allow occupancy)) Return a permission response to the request source. Also resets the counter.

■また現占有レジスタが既登録であってもシステムコー
ドが一致する場合は要求元に許可応答は戻すが現占有レ
ジスタの状態とカウンタの値は変えない。■そして現占
有レジスタが既登録であり、システムコードが不一致の
場合は要求元システムに対し不許可の応答を戻すととも
にカウンタの値を1だけ歩進させる。なを当然現占有レ
ジスタの内容は変えない。と云う応答制御を行い現占有
レジスタの状態に対応した占有管理を続ける一方、占有
要求コマンド到来毎でも他の條件周期でも良いが、上記
カウンタの値を監視して設定された指定値と比較してお
り、指定値と一致するか、あるいは指定値を越えた場合
にはこの状態を検出した場合の対応処置としてファイル
制御装置側で指定値に°到達したカウンタに対応する現
占有レジスタに登録されている占有中のホストシステム
に対し割込をかけて指定値に到達したことを内容として
含む制御情報を送付すると云う手順制御を行うことによ
り本発明は実現される。
■Also, even if the currently occupied register is already registered, if the system codes match, a permission response is returned to the request source, but the state of the currently occupied register and the counter value are not changed. (2) If the current occupied register is already registered and the system codes do not match, a non-permission response is returned to the requesting system and the counter value is incremented by one. Of course, the contents of the current occupied register will not be changed. While continuing to manage the occupancy according to the state of the current occupancy register by performing response control such as If the counter matches the specified value or exceeds the specified value, the counter is registered in the current occupied register corresponding to the counter that has reached the specified value on the file control device side as a countermeasure when this condition is detected. The present invention is realized by performing procedural control such as interrupting an occupied host system and sending control information containing the fact that a specified value has been reached.

なを少し補正すると、上記制御情報を受取ったホストシ
ステム側は少くとも現状である占有中のボリュームを他
のホストシステムでも占有要求していることを知りこれ
により当該ホストシステムは自システムを必要あればチ
ェックして異常を早期発見することも、また必要あれば
他のホストシステムに問い合せるか、あるいはファイル
制御装置側で占有要求の受付レジスタに受付けた要求元
をサイクリックに指定数程度ロギングしておき上記制御
情報に併せて反送してもらうと云った他の占有要求元ホ
ストシステムを割り出す手段と手順を適用することによ
り占有要求元を知り、ジョブ続行の可否をオペレータに
問い合せる等の処置を介して、可能であれば占有を解除
して他のホストシステムのジョブを先行させると云った
対応処置をすみやかに行うことが出来るわけである。
To make a slight correction, the host system that received the above control information will know that at least another host system is also requesting occupancy for the currently occupied volume. If necessary, you can check this to detect abnormalities early, or if necessary, you can query other host systems, or you can cyclically log a specified number of request sources accepted in the exclusive request reception register on the file control device side. By applying the means and procedure for identifying other host systems that have requested exclusive use, such as having them sent back along with the above control information, the source of the exclusive use request can be learned, and measures such as asking the operator whether or not to continue the job can be taken. If possible, countermeasures such as releasing the occupation and allowing the job of another host system to take precedence can be taken quickly.

〈実施例〉 第1図は本発明の一実施例の説明図であり排他制御にお
いて新たに付加された手順の要部を示す図でありシステ
ム構成とメモリ10内のデータ領域の説明図である。
<Embodiment> FIG. 1 is an explanatory diagram of one embodiment of the present invention, and is a diagram showing the main part of a newly added procedure in exclusive control, and is an explanatory diagram of the system configuration and data area in the memory 10. .

図に示す如く共用されるファイル1は制御用のプロセッ
サ3を主体とするファイル制御部2により制御と排他管
理されており共用光であるホストシステムA、B、Cと
はチャネル4を介して接続しており、ファイル1の中部
は桟、  IY l−−一等のボリュームを構成単位と
しておりボリューム単位で占有管理されるものとする。
As shown in the figure, a shared file 1 is controlled and exclusively managed by a file control unit 2 mainly consisting of a control processor 3, and is connected to host systems A, B, and C, which are shared optical devices, via a channel 4. It is assumed that the middle part of file 1 is a crosspiece, and the IY l--first volume is used as a constituent unit, and exclusive management is performed on a volume-by-volume basis.

そしてそのためにファイル制御部2の側には排他制御の
ための管理機能がありこの機能実現手段として、上記占
有管理される対象である各ボリュームIX 〜IGLに
対応して占有登録を行う現占有レジスタ6、 、 6Y
 〜6α、と当該ボリュームに対し、占有要求コマンド
があったときに対応処理のため一時受付ける受付レジス
タ7X 〜71 と、占有中に他のホストシステムから
受付けた占有要求数をカウントするカウンタ8× 〜8
aがボリューム対応に、また指定数をセントするレジス
タ9がファイル制御部2のメモリ10の領域に設定され
ており制御プログラムは制御メモリ11に格納されてい
るものとする。こうした構成下でプロセッサ3は現占有
レジスタ6× 〜6αtit III/の状態にもとす
いて各ボリュームを排他使用されるとともに占有要求が
あった時には、現占有レジスタが受付レジスタから現占
有レジスタに登録受付し要求元のホストシステムに対し
チャネル4経出で許可する。なを占有要求コマンドに付
加されて要求元のホストシステムの識別コードと占有を
希望する対象を指定するコードは少くともデータとして
含んでいることを前提としている。
For this purpose, the file control unit 2 has a management function for exclusive control, and as a means of realizing this function, a current occupancy register is used to register occupancy for each volume IX to IGL that is subject to occupancy management. 6, , 6Y
~6α, a reception register 7X ~71 that temporarily accepts for processing when an occupancy request command is received for the volume, and a counter 8X ~71 that counts the number of occupancy requests received from other host systems during occupancy. 8
It is assumed that a corresponds to the volume, a register 9 for storing a specified number of cents is set in an area of the memory 10 of the file control section 2, and a control program is stored in the control memory 11. Under such a configuration, the processor 3 uses each volume exclusively in the state of the current occupancy register 6× to 6αtit III/, and when there is an occupancy request, the current occupancy register is registered from the reception register to the current occupancy register. The request is accepted and granted to the requesting host system via channel 4. It is assumed that the identification code of the requesting host system and the code specifying the target to be occupied, which are added to the occupancy request command, are included as data at least.

次に受付レジスタに要求を受けても現占有レジスタが既
占有の場合は現占有レジスタの登録しているシステムコ
ードと受付レジスタが受付けた要求のシステムコードを
比較して同一ならば許可応答は戻すが管理側は現状を維
持し、不一致ならば不許可応答を戻すとともにカウンタ
を1だけ歩進させ、カウンタの値を指定値レジスタの値
と比較し指定値に達していた場合登録され現在占有して
いる現占有レジスタのシステムコードを参照して当該ホ
ストシステムに対して割込みを行いカウンタの値が指定
値をこえた旨を報告する。なをこのとき必要あれば付加
情報として受付レジスタの要求を元ホストシステムのコ
ードも併せて戻しても良い。
Next, if the reception register receives a request but the current occupation register is already occupied, compare the system code registered in the current occupation register with the system code of the request accepted by the reception register, and if they are the same, return a permission response. However, the management side maintains the current status, and if there is a mismatch, returns a non-permission response and increments the counter by 1, compares the counter value with the value in the specified value register, and if it reaches the specified value, it is registered and currently occupied. It refers to the system code of the currently occupied register, interrupts the host system, and reports that the counter value has exceeded the specified value. At this time, if necessary, the request for the reception register may be returned together with the code of the original host system as additional information.

〈効果〉 こうした制御を行うことにより占有していたホストシス
テム側では他のホストシステムと競合していることの外
に1.かなり長い間占有していたかも知れない可能性も
考え対応する処置を取り得るので異常の早期発見や、シ
ステム全体の効率的運用に役立てることが出来るし、全
体システムの運用を管理するサービスプロセッサにおい
てこうした競合情報をロギングすることによりシステム
運用形態を見なをし負荷分担を均一化するための有力な
参考資料が得られると云った効果を有するものである。
<Effects> By performing such control, the occupied host system is competing with other host systems, as well as 1. Since it is possible to consider the possibility that the device may have been occupied for a considerable period of time and take corresponding measures, this can be useful for early detection of abnormalities and efficient operation of the entire system. By logging such competition information, it is possible to obtain useful reference materials for checking the system operation mode and equalizing load sharing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図、第2図、第3図は本発明の一実施例の説明図を
示し第1図は発明の機能手順を説明するためのフローチ
ャート、第2図はシステム構成。 第3図はデータ領域構成の説明図である。 図中1はファイル、5は分配チャネルを示し、2はファ
イル制御装置、3はプロセッサ、4はチャネル、10は
主メモリ、11は制御メモリ、A。 B、  C,はホストシステムを示す。また主メモリ内
構成の68〜旺は、現占有レジスタ、7、〜7Q、は受
付レジスタ、8×〜8αはカウンタを示し夫々サフィッ
クス対応でアイル1内のボリュームIX 〜1αに対応
する。またサフィックスなしを総称とする。また9はレ
ジスタを示す。 (妻ま′1cJ) 算1図
1, 2, and 3 are explanatory diagrams of an embodiment of the present invention. FIG. 1 is a flowchart for explaining the functional procedure of the invention, and FIG. 2 is a system configuration. FIG. 3 is an explanatory diagram of the data area configuration. In the figure, 1 is a file, 5 is a distribution channel, 2 is a file control device, 3 is a processor, 4 is a channel, 10 is a main memory, and 11 is a control memory. B, C, indicate host systems. Further, in the main memory configuration, 68 to 0 are current occupied registers, 7 and 7Q are reception registers, and 8x to 8α are counters, and each corresponds to a suffix and corresponds to volumes IX to 1α in the isle 1. It is also a generic term without a suffix. Further, 9 indicates a register. (Tsuma'1cJ) Arithmetic 1 diagram

Claims (1)

【特許請求の範囲】[Claims] 複数のホストシステムに共用されるファイルと、該ファ
イルの制御装置を有するマルチ構成のデータ処理システ
ムにおける共用ファイルの排他制御において、排他管理
のため管理単位に区分けされた上記ファイル内の各ボリ
ューム毎に現在占有中ホストシステムを登録する現占有
レジスタと、占有要求を受付ける受付レジスタと対応応
答手順実行手段を有する外に各ボリューム対応に占有中
要求カウンタを、また少くとも一つの指定値レジスタと
、上記占有中要求カウンタの値の監視手順を有し、ある
現占有レジスタが登録中に他のホストシステムからの占
有要求を受付けた場合に不許可の応答を要求元に戻す外
に、上記占有中要求カウンタを歩進させ、該占有中要求
カウンタの値が指定値以上に達した場合現占有元に対し
割込を行い情報通知を行うことを特徴とする共用ファイ
ルの排他制御方法。
In exclusive control of a shared file in a multi-configuration data processing system that has a file shared by multiple host systems and a control device for the file, each volume within the above file is divided into management units for exclusive management. In addition to having a current occupancy register for registering the currently occupied host system, an acceptance register for accepting occupancy requests, and means for executing corresponding response procedures, an occupancy request counter corresponding to each volume, and at least one designated value register; It has a procedure for monitoring the value of the occupied request counter, and when a certain current occupied register receives an exclusive request from another host system during registration, in addition to returning a disallowed response to the source of the request, the above-mentioned occupied request 1. A method for exclusive control of a shared file, characterized in that a counter is incremented, and when the value of the occupied request counter reaches a specified value or more, an interrupt is made to the current occupier and information notification is performed.
JP59133747A 1984-06-28 1984-06-28 Method for exclusively controlling shared file Pending JPS6113352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59133747A JPS6113352A (en) 1984-06-28 1984-06-28 Method for exclusively controlling shared file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59133747A JPS6113352A (en) 1984-06-28 1984-06-28 Method for exclusively controlling shared file

Publications (1)

Publication Number Publication Date
JPS6113352A true JPS6113352A (en) 1986-01-21

Family

ID=15111982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59133747A Pending JPS6113352A (en) 1984-06-28 1984-06-28 Method for exclusively controlling shared file

Country Status (1)

Country Link
JP (1) JPS6113352A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02226347A (en) * 1989-01-05 1990-09-07 Internatl Business Mach Corp <Ibm> Parallel control
JPH06314227A (en) * 1993-04-30 1994-11-08 Internatl Business Mach Corp <Ibm> Rocking mechanism for version object

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02226347A (en) * 1989-01-05 1990-09-07 Internatl Business Mach Corp <Ibm> Parallel control
JPH06314227A (en) * 1993-04-30 1994-11-08 Internatl Business Mach Corp <Ibm> Rocking mechanism for version object

Similar Documents

Publication Publication Date Title
JP3392320B2 (en) Bus recovery apparatus and method for multi-master bus system
US6738839B2 (en) Method and system for allocating logical paths between a host and a controller in a virtual data storage system
US20030037091A1 (en) Task scheduling device
US8140727B2 (en) Bus arbitration apparatus and method
JPH0293836A (en) Distributed data base controller
JPS6113352A (en) Method for exclusively controlling shared file
JP4906503B2 (en) Method for providing distributed storage configuration control within a storage cluster
JP2002318700A (en) Providing/control method for operation management information of virtual computer system and virtual computer system
JPH0635758A (en) Program monitor controller
EP0372682A2 (en) System characterization method
KR102335687B1 (en) Schedule Server System for Remote Control and Clusting Configuration
JPH03164964A (en) Exclusive control processor for information processor
JPH01133144A (en) Common resource control system
JP2000089971A (en) Method and device for controlling interruption order
JPS60252966A (en) File access possible time advance notice processing system
JPH01305461A (en) Right of using bus control system
JP2002091903A (en) Bus system
JPH0660017A (en) Collision circuit
JPS59135557A (en) Information processor
CN117725574A (en) Data center security management method and system
JP2000201161A (en) Arbitration control circuit
JP2004013555A (en) Peripheral processor load distribution system
JPH1091590A (en) Request execution control method for computer system
JPH01140266A (en) Data processing system
JPS62232064A (en) Deadlock prevention system for distributed data base system