JP3206453B2 - Shared file update control method - Google Patents

Shared file update control method

Info

Publication number
JP3206453B2
JP3206453B2 JP26680296A JP26680296A JP3206453B2 JP 3206453 B2 JP3206453 B2 JP 3206453B2 JP 26680296 A JP26680296 A JP 26680296A JP 26680296 A JP26680296 A JP 26680296A JP 3206453 B2 JP3206453 B2 JP 3206453B2
Authority
JP
Japan
Prior art keywords
shared file
file
generation number
shared
host computer
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 - Fee Related
Application number
JP26680296A
Other languages
Japanese (ja)
Other versions
JPH1091510A (en
Inventor
篤志 盛岡
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP26680296A priority Critical patent/JP3206453B2/en
Publication of JPH1091510A publication Critical patent/JPH1091510A/en
Application granted granted Critical
Publication of JP3206453B2 publication Critical patent/JP3206453B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、疎結合コンピュー
タシステムにおいて複数のホストコンピュータに共有さ
れる共有ファイルの更新制御を行う共有ファイル更新制
御方式に関し、特にファイル排他制御処理装置を使用し
て共有ファイルの世代番号を管理することによって共有
ファイルの更新制御を行う共有ファイル更新制御方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shared file update control method for controlling update of a shared file shared by a plurality of host computers in a loosely coupled computer system, and more particularly to a shared file update control system using a file exclusive control processing device. The present invention relates to a shared file update control method for controlling update of a shared file by managing generation numbers of the files.

【0002】[0002]

【従来の技術】従来の疎結合コンピュータシステムの共
有ファイルの更新制御においては、あるホストコンピュ
ータが共有ファイル上のデータを使用する際に、自己の
ローカルバッファ上に既にその共有ファイルを読込み済
みであっても、他のホストコンピュータによって元の共
有ファイルが既に更新されている可能性があるため、そ
のホストコンピュータは必ずその共有ファイルを自己の
ローカルバッファに改めて読み込んでいた。したがっ
て、コンピュータシステム全体として、処理が冗長にな
るという問題点があった。
2. Description of the Related Art In conventional update control of a shared file in a loosely-coupled computer system, when a host computer uses data on the shared file, the host computer has already read the shared file into its own local buffer. However, since the original shared file may have already been updated by another host computer, the host computer always read the shared file into its own local buffer again. Therefore, there is a problem that the processing becomes redundant in the entire computer system.

【0003】この問題点を解決するために、特開平5−
73394号公報に記載された発明(共有ファイル更新
制御方式)は、あるホストコンピュータにおいて既にロ
ーカルバッファに読込み済みの共有ファイルが他のホス
トコンピュータによって更新されていないかどうかを検
証するため、全ホストコンピュータが参照可能な共有メ
モリ上に更新フラグ(共有ファイル更新フラグ)を持
ち、次の〜に示すような排他制御を行っていた。 各ホストコンピュータは、共有ファイルを使用する
際に、当該更新フラグを参照して当該共有ファイルの更
新の有無を確認する。 当該共有ファイルが更新されていなければ、当該ホ
ストコンピュータは自己のローカルバッファへの再度の
当該共有ファイルの読込みを行わない。 当該共有ファイルが更新されていれば、当該ホスト
コンピュータは自己のローカルバッファに当該共有ファ
イルの再度の読込みを行う。
To solve this problem, Japanese Patent Laid-Open No.
The invention (shared file update control method) described in Japanese Patent No. 73394 discloses a method for verifying whether or not a shared file already read into a local buffer in a certain host computer has been updated by another host computer. Has an update flag (shared file update flag) on a shared memory that can be referred to, and performs exclusive control as shown in (1) to (5) below. When using the shared file, each host computer refers to the update flag and checks whether the shared file has been updated. If the shared file has not been updated, the host computer does not read the shared file into its local buffer again. If the shared file has been updated, the host computer reads the shared file again into its own local buffer.

【0004】なお、当該発明では、共有ファイルの更新
が行われる際には、当該更新フラグをセットするという
操作を、ホストコンピュータ自身が行っていた。
[0004] In the present invention, when a shared file is updated, the host computer itself performs an operation of setting the update flag.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の共有フ
ァイル更新制御方式では、ホストコンピュータが直接共
有メモリ上の更新フラグの参照・操作を行うため、これ
らの処理の分だけホストコンピュータの負荷が大きくな
るという問題点があった。特に、共有メモリ上の更新フ
ラグを操作するときに複数のホストコンピュータが同時
にアクセスするケースでは、共有メモリ上で競合が発生
し、共有メモリのアクセスに時間がかかる。このように
ホストコンピュータの負荷が大きくなると、共有メモリ
へのアクセスがネックとなり、ホストコンピュータ自体
の性能が制限される(コンピュータシステム全体として
の性能低下が生じる)という欠点があった。
In the above-described conventional shared file update control method, the host computer directly refers to and operates the update flag on the shared memory, so that the load on the host computer is increased by the amount of these processes. There was a problem of becoming. In particular, in the case where a plurality of host computers simultaneously access the update flag on the shared memory, contention occurs on the shared memory, and it takes time to access the shared memory. When the load on the host computer increases, access to the shared memory becomes a bottleneck and the performance of the host computer itself is limited (the performance of the entire computer system is reduced).

【0006】本発明は、上述したホストコンピュータ自
身による共有メモリ上の更新フラグの操作を不要とする
ことにより、ホストコンピュータの負荷を軽減し、複数
のホストコンピュータを有する疎結合コンピュータシス
テム全体としての性能向上や処理の高速化を図ることを
目的とする。
The present invention eliminates the need for the host computer itself to operate the update flag on the shared memory, thereby reducing the load on the host computer and reducing the performance of the loosely-coupled computer system having a plurality of host computers. The purpose is to improve and speed up the processing.

【0007】[0007]

【課題を解決するための手段】本発明の共有ファイル更
新制御方式は、複数のホストコンピュータにより共有さ
れる共有ファイルに対するアクセスの排他制御がファイ
ル排他制御処理装置によって行われる疎結合コンピュー
タシステムにおいて、前記ファイル排他制御処理装置に
自己が存在するホストコンピュータのローカルバッファ
内の共有ファイルの世代番号を当該共有ファイルのロッ
ク指示とともに通知する各ホストコンピュータ内のロッ
ク指示通知手段と、前記ファイル排他制御処理装置から
共有ファイルのロック成功通知とともに通知された当該
共有ファイルの世代番号と自己が存在するホストコンピ
ュータのローカルバッファ内の当該共有ファイルの世代
番号とを比較し、両者が不一致の場合には外部記憶装置
から当該共有ファイルを自己が存在するホストコンピュ
ータのローカルバッファに読み込む各ホストコンピュー
タ内の世代番号判定手段と、共有ファイルを更新した後
に当該共有ファイルのアンロック指示を通知する際に、
自己が存在するホストコンピュータのローカルバッファ
内の当該共有ファイルの世代番号をカウントアップした
後に、前記ファイル排他制御処理装置にアンロック指示
とともに当該共有ファイルが更新されたことを示す情報
を通知する各ホストコンピュータ内のアンロック指示通
知手段と、当該疎結合コンピュータシステムにおける共
有ファイルの世代番号を管理し、いずれかのホストコン
ピュータからの共有ファイルのロック指示に対するロッ
ク成功通知時に自己が管理する当該共有ファイルの世代
番号を当該ホストコンピュータに通知し、いずれかのホ
ストコンピュータからの共有ファイルのアンロック指示
に当該共有ファイルが更新されたことを示す情報が付加
されている場合に自己が管理する当該共有ファイルの世
代番号をカウントアップする前記ファイル排他制御処理
装置とを有する。
Shared file update control method of the present invention, in order to solve the problem] is the loosely coupled computer systems exclusive control of access to the shared files shared by a plurality of host computers is carried out by the file exclusive control processing unit, the File exclusion control processor
The local buffer of the host computer on which it resides
The generation number of the shared file in the
Lock instructions in each host
From the file exclusive control processing device.
The relevant lock file was notified with the lock success notification of the shared file.
The generation number of the shared file and the host
Generation of the shared file in the local buffer of the computer
The numbers are compared with each other.
From the host computer where it is located.
Each host computer that reads into the
After updating the shared file with the generation number judgment means in the data
When notifying the shared file unlock instruction to
The local buffer of the host computer on which it resides
The generation number of the relevant shared file in
Later, the file exclusive control processing unit is instructed to unlock.
And information indicating that the shared file has been updated
Unlock instruction notification in each host computer
And means for managing the generation number of the shared file in the loosely-coupled computer system and the generation number of the shared file managed by itself at the time of a lock success notification in response to a shared file lock instruction from any of the host computers. When the information indicating that the shared file has been updated is added to the unlock instruction of the shared file from any of the host computers, the generation number of the shared file managed by itself is counted up. And a file exclusion control processing device.

【0008】[0008]

【発明の実施の形態】次に、本発明の実施の形態につい
て、図面を参照して詳細に説明する。
Next, an embodiment of the present invention will be described in detail with reference to the drawings.

【0009】[0009]

【実施例】図1は、本発明の一実施例に係る共有ファイ
ル更新制御方式が適用される疎結合コンピュータシステ
ムのシステム構成を示すブロック図である。この疎結合
コンピュータシステムは、それぞれローカルバッファ2
1〜24を有する複数のホストコンピュータ11〜14
(ホストコンピュータの数が4台に限定されるものでな
いことはいうまでもない)と、ファイル排他制御処理装
置30と、共有ファイル40等を格納する外部記憶装置
とを含んで構成されている。ファイル排他制御処理装置
30は、複数のホストコンピュータ11〜14とそれぞ
れ専用のインタフェースで接続されている。また各ホス
トコンピュータ11〜14は、それぞれ、共有ファイル
40が存在する外部記憶装置と接続されている。
FIG. 1 is a block diagram showing a system configuration of a loosely-coupled computer system to which a shared file update control method according to an embodiment of the present invention is applied. This loosely coupled computer system has a local buffer 2
Plurality of host computers 11 to 14 having 1 to 24
(It goes without saying that the number of host computers is not limited to four.) The configuration includes the file exclusion control processing device 30 and an external storage device that stores the shared file 40 and the like. The file exclusion control processing device 30 is connected to a plurality of host computers 11 to 14 by dedicated interfaces. Each of the host computers 11 to 14 is connected to an external storage device in which the shared file 40 exists.

【0010】図2は、ファイル排他制御処理装置30の
構成を示すブロック図である。ファイル排他制御処理装
置30は、共有ファイル40を含む共有ファイル群の各
々の世代番号(図1に示す疎結合コンピュータシステム
における世代番号)を管理する制御テーブル31と、ホ
ストコンピュータ11〜14と接続されている上位イン
タフェース部32と、上位インタフェース部32および
世代番号格納処理部36に接続されている世代番号通知
処理部33と、ホストコンピュータ11〜14からの指
示により通常の排他制御処理(排他制御実行処理および
排他制御解除処理)を行う排他制御処理部34と、それ
ぞれ排他制御処理部34から情報を受け取り動作して制
御テーブル31の制御を行う世代番号カウントアップ処
理部35および世代番号格納処理部36とを含んで構成
されている。
FIG. 2 is a block diagram showing the configuration of the file exclusion control processor 30. The file exclusion control processor 30 is connected to the control table 31 that manages each generation number (generation number in the loosely-coupled computer system shown in FIG. 1) of the shared file group including the shared file 40, and the host computers 11 to 14. Upper-level interface unit 32, a generation number notification processing unit 33 connected to the higher-level interface unit 32 and the generation number storage processing unit 36, and a normal exclusion control process (exclusive control execution) based on instructions from the host computers 11 to 14. Processing and exclusive control release processing), a generation number count-up processing unit 35 and a generation number storage processing unit 36 that receive information from the exclusive control processing unit 34 and operate to control the control table 31 respectively. It is comprised including.

【0011】図3は、ホストコンピュータ11〜14の
構成を示す図である(ここでは、ホストコンピュータ1
1で代表して図示している)。ホストコンピュータ11
は、ローカルバッファ21と、ファイル排他制御処理装
置30に自己のローカルバッファ21内の共有ファイル
(例えば、共有ファイル40)の世代番号を当該共有フ
ァイルのロック指示とともに通知するロック指示通知手
段111と、ファイル排他制御処理装置30から通知さ
れた共有ファイル(例えば、共有ファイル40)の世代
番号と自己のローカルバッファ21内の当該共有ファイ
ルの世代番号とを比較して両者が不一致の場合には改め
て外部記憶装置から当該共有ファイルをローカルバッフ
ァ21に読み込む世代番号判定手段112と、共有ファ
イル(例えば、共有ファイル40)を更新した場合に当
該共有ファイルのアンロック指示とともにその旨(当該
共有ファイルの更新があったこと)をファイル排他制御
処理装置30に通知するアンロック指示通知手段113
とを含んで構成されている。
FIG. 3 is a diagram showing the configuration of the host computers 11 to 14 (here, the host computers 1 to 14).
1 as a representative). Host computer 11
A lock instruction notifying unit 111 that notifies the local buffer 21 and the file exclusion control processing device 30 of the generation number of the shared file (for example, the shared file 40) in its own local buffer 21 together with a lock instruction for the shared file. The generation number of the shared file (for example, the shared file 40) notified from the file exclusion control processing device 30 is compared with the generation number of the shared file in the local buffer 21 of the own device. The generation number determining means 112 for reading the shared file from the storage device into the local buffer 21 and, when the shared file (for example, the shared file 40) is updated, an instruction to unlock the shared file and the fact (the update of the shared file is Passed) to the file exclusion control processor 30. Unlock instruction notification means 113
It is comprised including.

【0012】図4は、本実施例の共有ファイル更新制御
方式におけるロック指示時の処理を示す流れ図である。
この処理は、世代番号付きロック指示通知ステップ40
1と、排他制御実行処理ステップ402と、世代番号付
きロック指示転送ステップ403と、制御テーブル内該
当共有ファイル世代番号有無判定ステップ404と、世
代番号制御テーブル格納ステップ405と、世代番号通
知ステップ406と、世代番号一致判定ステップ407
と、該当共有ファイル読込みステップ408とからな
る。
FIG. 4 is a flow chart showing a process at the time of a lock instruction in the shared file update control method of this embodiment.
This processing is performed by the generation number-added lock instruction notification step 40.
1, an exclusive control execution processing step 402, a lock instruction transfer step with a generation number step 403, a corresponding shared file generation number presence / absence determination step 404 in the control table, a generation number control table storage step 405, and a generation number notification step 406. , Generation number match determination step 407
And a corresponding shared file reading step 408.

【0013】図5は、本実施例の共有ファイル更新制御
方式におけるアンロック指示時の処理を示す流れ図であ
る。この処理は、該当共有ファイル更新有無判定ステッ
プ501と、世代番号カウントアップステップ502
と、更新情報付きアンロック指示通知ステップ503
と、排他制御解除処理ステップ504と、更新情報判定
ステップ505と、更新情報付きアンロック指示転送ス
テップ506と、制御テーブル内世代番号カウントアッ
プステップ507とからなる。
FIG. 5 is a flowchart showing a process at the time of an unlock instruction in the shared file update control method of the present embodiment. This processing includes a step 501 for determining whether the relevant shared file is updated and a step 502 for counting up the generation number.
And an unlock instruction notification step 503 with update information
, Exclusive control release processing step 504, update information determination step 505, unlock information-added unlock instruction transfer step 506, and generation number in control table count up step 507.

【0014】次に、このように構成された本実施例の共
有ファイル更新制御方式の動作について説明する。
Next, the operation of the thus configured shared file update control system of this embodiment will be described.

【0015】通常、ホストコンピュータ11〜14の各
々(ここでは、ホストコンピュータ11で説明する)
は、外部記憶装置内の任意の共有ファイル(共有ファイ
ル40とする)を参照・更新する場合に、ファイル排他
制御処理装置30に対して該当する共有ファイル40の
ロック指示を行い、ファイル排他制御処理装置30から
使用許可が与えられた時点で、共有ファイル40の読込
みを行う。
Normally, each of the host computers 11 to 14 (here, the host computer 11 will be described)
When referring to or updating an arbitrary shared file (referred to as a shared file 40) in an external storage device, the lock instruction of the corresponding shared file 40 is issued to the file exclusive control processing device 30, and the file exclusive control process is performed. When the use permission is given from the device 30, the shared file 40 is read.

【0016】このロック指示時に、他のホストコンピュ
ータ(ここでは、ホストコンピュータ12とする)が共
有ファイル40を既に使用中でロックしていた場合に
は、待ちが発生する。そして、共有ファイル40を使用
中のホストコンピュータ12がロックを解除した時点
で、ファイル排他制御処理装置30は、待ち状態となっ
ているホストコンピュータ11に対してロック成功通知
(使用許可通知)を行う。ホストコンピュータ11は、
このロック成功通知を受け取ると、共有ファイル40の
読込みを行う。
At the time of this lock instruction, if another host computer (here, host computer 12) has already locked the shared file 40 in use, a wait occurs. Then, when the host computer 12 that is using the shared file 40 releases the lock, the file exclusion control processing device 30 sends a lock success notification (use permission notification) to the host computer 11 in the waiting state. . The host computer 11
When the lock success notification is received, the shared file 40 is read.

【0017】ファイル排他制御処理装置30において、
これらの排他制御処理を上位インタフェース部32を介
して行うのが、排他制御処理部34である。
In the file exclusive control processing device 30,
It is the exclusive control processing unit 34 that performs these exclusive control processes via the upper interface unit 32.

【0018】以上のような共有ファイル40の排他制御
が行われる過程で、本実施例、ひいては本発明の共有フ
ァイル更新制御方式は、以下に示すような動作を行う。
In the process of performing the above-described exclusive control of the shared file 40, the shared file update control method of the present embodiment and the present invention performs the following operations.

【0019】第1に、あるホストコンピュータ(ホスト
コンピュータ11とする)が共有ファイル40のロック
指示を行う際の動作について説明する(図4参照)。
First, the operation when a certain host computer (referred to as host computer 11) issues a lock instruction for the shared file 40 will be described (see FIG. 4).

【0020】ホストコンピュータ11による共有ファイ
ル40のロック指示時には、ホストコンピュータ11内
のロック指示通知手段111は、ローカルバッファ21
(ホストコンピュータ11内のローカルバッファ)にあ
る共有ファイル40の世代番号をファイル排他制御処理
装置30に通知する(ステップ401)。ここで、ロー
カルバッファ21内に共有ファイル40のデータがない
場合には、その旨を示す世代番号の値(ここでは、
“1”とする)を通知する。
When the host computer 11 instructs the locking of the shared file 40, the lock instruction notifying means 111 in the host computer 11 sends the local buffer 21
The generation number of the shared file 40 in the (local buffer in the host computer 11) is notified to the file exclusive control processing device 30 (step 401). Here, if there is no data of the shared file 40 in the local buffer 21, the generation number value (in this case,
"1").

【0021】ファイル排他制御処理装置30内の排他制
御処理部34は、上位インタフェース部32を介して上
記の世代番号が付されたロック指示(世代番号付きロッ
ク指示)を受け取ると、ロック指示に基づく処理(排他
制御実行処理)を通常通りに行い(ステップ402)、
それとともに世代番号格納処理部36に当該世代番号付
きロック指示を転送する(ステップ403)。
When the exclusive control processing unit 34 in the file exclusive control processing device 30 receives the lock instruction with the above-mentioned generation number (a lock instruction with a generation number) via the upper interface unit 32, it based on the lock instruction. The processing (exclusive control execution processing) is performed as usual (step 402),
At the same time, the lock instruction with the generation number is transferred to the generation number storage processing unit 36 (step 403).

【0022】この世代番号付きロック指示を受けた世代
番号格納処理部36は、制御テーブル31に共有ファイ
ル40の世代番号がセットされているか否かを判定する
(ステップ404)。
The generation number storage processing unit 36 that has received the lock instruction with the generation number determines whether or not the generation number of the shared file 40 is set in the control table 31 (step 404).

【0023】世代番号格納処理部36は、ステップ40
4で「制御テーブル31に共有ファイル40の世代番号
がセットされていない」と判定した場合には、当該世代
番号付きロック指示における世代番号を制御テーブル3
1に格納し(ステップ405)、当該世代番号を世代番
号通知処理部33に渡す。
The generation number storage processing unit 36 determines in step 40
If it is determined that the generation number of the shared file 40 is not set in the control table 31 in 4, the generation number in the lock instruction with the generation number is set in the control table 3.
1 (step 405), and passes the generation number to the generation number notification processing unit 33.

【0024】世代番号通知処理部33は、当該世代番号
付きロック指示に対するロック成功通知とともに、ホス
トコンピュータ11に当該世代番号を通知する(ステッ
プ406)。
The generation number notification processing unit 33 notifies the host computer 11 of the generation number together with a lock success notification for the lock instruction with the generation number (step 406).

【0025】一方、世代番号格納処理部36は、ステッ
プ404で「制御テーブル31に既に共有ファイル40
の世代番号がセットされている」と判定した場合には、
制御テーブル31内の当該世代番号を世代番号通知処理
部33に渡す。
On the other hand, the generation number storage processing unit 36 determines in step 404 that “the shared file 40
Is set, the generation number is set. "
The generation number in the control table 31 is passed to the generation number notification processing unit 33.

【0026】世代番号通知処理部33は、当該世代番号
付きロック指示に対するロック成功通知とともに、制御
テーブル31にあった当該世代番号をホストコンピュー
タ11に通知する(ステップ406)。
The generation number notification processor 33 notifies the host computer 11 of the generation number in the control table 31 together with a lock success notification for the lock instruction with the generation number (step 406).

【0027】ホストコンピュータ11内の世代番号判定
手段112は、ファイル排他制御処理装置30からロッ
ク成功通知とともに通知された共有ファイル40の世代
番号(コンピュータシステム全体としての世代番号)と
ローカルバッファ21内の共有ファイル40の世代番号
とを比較して、両者が一致するか否かを判定する(ステ
ップ407)。
The generation number determining means 112 in the host computer 11 determines the generation number (generation number of the entire computer system) of the shared file 40 notified together with the lock success notification from the file exclusion control processing unit 30 and the generation number in the local buffer 21. The generation number of the shared file 40 is compared with the generation number, and it is determined whether or not both match (step 407).

【0028】世代番号判定手段112は、ステップ40
7で「両方の世代番号が一致しない(ローカルバッファ
21に共有ファイル40のデータがない場合を含む)」
と判定した場合には、外部記憶装置から共有ファイル4
0をローカルバッファ21に読み込む(ステップ40
8)。
The generation number determining means 112 determines in step 40
7 "The generation numbers do not match (including the case where there is no data in the shared file 40 in the local buffer 21)"
If it is determined that the shared file 4
0 is read into the local buffer 21 (step 40).
8).

【0029】一方、世代番号判定手段112は、ステッ
プ407で「両方の世代番号が一致する」と判定した場
合には、改めて外部記憶装置から共有ファイル40を読
み込むことはせず、そのままローカルバッファ21内の
共有ファイル40のデータを使用するように制御する。
On the other hand, when the generation number determination means 112 determines in step 407 that "both generation numbers match", the local file 21 is not read from the external storage device again, but is read again. Is controlled so as to use the data of the shared file 40 in the server.

【0030】第2に、あるホストコンピュータ(ホスト
コンピュータ11とする)が共有ファイル40のアンロ
ック指示(ロック解除指示)を行う際の動作について説
明する(図5参照)。
Second, the operation when a certain host computer (referred to as host computer 11) issues an instruction to unlock (unlock) the shared file 40 (see FIG. 5).

【0031】ホストコンピュータ11内のアンロック指
示通知手段113は、共有ファイル40のアンロック指
示を通知する際に、ロックの解除の対象となる共有ファ
イル40が更新されたか否かを判定する(ステップ50
1)。
When notifying the unlock instruction of the shared file 40, the unlock instruction notifying means 113 in the host computer 11 determines whether or not the shared file 40 to be unlocked has been updated (step S1). 50
1).

【0032】アンロック指示通知手段113は、ステッ
プ501で「共有ファイル40が更新された」と判定し
た場合には、ローカルバッファ21内の共有ファイル4
0の世代番号をカウントアップし(ステップ502)、
共有ファイル40の更新があったことを示す情報を付加
したアンロック指示(更新情報付きアンロック指示)を
ファイル排他制御処理装置30に通知する(ステップ5
03)。
If the unlock instruction notifying unit 113 determines in step 501 that “the shared file 40 has been updated”,
The generation number of 0 is counted up (step 502),
An unlock instruction (an unlock instruction with update information) to which information indicating that the shared file 40 has been updated is added to the file exclusive control processing device 30 (step 5).
03).

【0033】一方、アンロック指示通知手段113は、
ステップ501で「共有ファイル40が更新されなかっ
た」と判定した場合には、共有ファイル40の更新がな
かったことを示す情報を付加したアンロック指示(更新
情報付きアンロック指示)をファイル排他制御処理装置
30に通知する(ステップ503)。
On the other hand, the unlock instruction notifying means 113
If it is determined in step 501 that “the shared file 40 has not been updated”, an unlock instruction (an unlock instruction with update information) to which information indicating that the shared file 40 has not been updated is added to the file exclusion control. It notifies the processing device 30 (step 503).

【0034】ファイル排他制御処理装置30内の排他制
御処理部34は、上位インタフェース部32を介して上
記の更新情報付きアンロック指示を受け取ると、アンロ
ック指示に基づく処理(排他制御解除処理)を通常通り
に行い(ステップ504)、それとともに当該更新情報
付きアンロック指示の更新情報に基づいて共有ファイル
40がホストコンピュータ11によって更新されたか否
かを判定する(ステップ505)。
When the exclusive control processing unit 34 in the file exclusive control processing unit 30 receives the unlock instruction with update information via the upper interface unit 32, the exclusive control processing unit 34 performs processing based on the unlock instruction (exclusive control release processing). This is performed as usual (step 504), and it is determined whether the shared file 40 has been updated by the host computer 11 based on the update information of the unlock instruction with the update information (step 505).

【0035】排他制御処理部34は、ステップ505で
「共有ファイル40がホストコンピュータ11によって
更新された」と判定した場合には、世代番号カウントア
ップ処理部35に当該更新情報付きアンロック指示を転
送する(ステップ506)。
When the exclusive control processing unit 34 determines in step 505 that “the shared file 40 has been updated by the host computer 11”, the exclusive control processing unit 34 transfers the unlock instruction with update information to the generation number count-up processing unit 35. (Step 506).

【0036】カウントアップ処理部35は、当該更新情
報付きアンロック指示に基づき、制御テーブル31内の
共有ファイル40の世代番号をカウントアップして再格
納する(ステップ507)。
The count-up processing unit 35 counts up the generation number of the shared file 40 in the control table 31 based on the unlock instruction with update information, and stores it again (step 507).

【0037】一方、排他制御処理部34は、ステップ5
05で「共有ファイル40がホストコンピュータ11に
よって更新されなかった」と判定した場合には、今回の
排他制御に関する処理を終了させる(制御テーブル31
内の共有ファイル40の世代番号は更新されない)。
On the other hand, the exclusive control processing unit 34
If it is determined in 05 that “the shared file 40 has not been updated by the host computer 11”, the process related to the exclusive control of this time is ended (the control table 31.
The generation number of the shared file 40 is not updated.)

【0038】[0038]

【発明の効果】以上説明したように、本発明によると、
各ホストコンピュータの負荷軽減による複数のホストコ
ンピュータを有する疎結合コンピュータシステムの性能
向上を達成できるという効果が生じる。
As described above, according to the present invention,
There is an effect that the performance of a loosely coupled computer system having a plurality of host computers can be improved by reducing the load on each host computer.

【0039】このような効果が生じる理由は、本発明の
共有ファイル更新制御方式では、ファイル排他制御処理
装置が共有ファイルの世代番号の管理を行うので、従来
技術のようにホストコンピュータが共有メモリを使用し
た共有ファイルの更新制御を行う必要がなくなるからで
ある。
The reason why such an effect occurs is that, in the shared file update control method of the present invention, the file exclusion control processing device manages the generation number of the shared file. This is because there is no need to control the update of the used shared file.

【0040】すなわち、本発明においては、ホストコン
ピュータは、ファイル排他制御処理装置から通知された
共有ファイルの世代番号から、該当する共有ファイルの
データが他のホストコンピュータにより更新されたか否
かを検証することが可能となる。したがって、ホストコ
ンピュータ自身が共有メモリ内の更新フラグの操作等に
より共有ファイルの更新制御を行う必要がなくなる。
That is, in the present invention, the host computer verifies from the generation number of the shared file notified from the file exclusion control processing device whether or not the data of the corresponding shared file has been updated by another host computer. It becomes possible. Therefore, it is not necessary for the host computer itself to control the update of the shared file by operating the update flag in the shared memory.

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

【図1】本発明の共有ファイル更新制御方式に係る一実
施例が適用される疎結合コンピュータシステムのシステ
ム構成を示すブロック図である。
FIG. 1 is a block diagram showing a system configuration of a loosely-coupled computer system to which an embodiment according to a shared file update control method of the present invention is applied.

【図2】図1中のファイル排他制御処理装置の構成を示
すブロック図である。
FIG. 2 is a block diagram showing a configuration of a file exclusion control processing device in FIG.

【図3】図1中のホストコンピュータの構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing a configuration of a host computer in FIG.

【図4】図1に示す共有ファイル更新制御方式における
ロック指示時の処理を示す流れ図である。
FIG. 4 is a flowchart showing processing at the time of a lock instruction in the shared file update control method shown in FIG. 1;

【図5】図1に示す共有ファイル更新制御方式における
アンロック指示時の処理を示す流れ図である。
FIG. 5 is a flowchart showing processing at the time of an unlock instruction in the shared file update control method shown in FIG. 1;

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

11〜14 ホストコンピュータ 21〜24 ローカルバッファ 30 ファイル排他制御処理装置 31 制御テーブル 32 上位インタフェース部 33 世代番号通知処理部 34 排他制御処理部 35 世代番号カウントアップ処理部 36 世代番号格納処理部 40 共有ファイル 111 ロック指示通知手段 112 世代番号判定手段 113 アンロック指示通知手段 11-14 Host computer 21-24 Local buffer 30 File exclusion control processor 31 Control table 32 Upper interface unit 33 Generation number notification processing unit 34 Exclusive control processing unit 35 Generation number count-up processing unit 36 Generation number storage processing unit 40 Shared file 111 Lock instruction notifying means 112 Generation number determining means 113 Unlock instruction notifying means

フロントページの続き (56)参考文献 特開 平5−143433(JP,A) Eliezer Levy 外 著、 天海 良治 訳,”分散ファイルシステ ム:その概念と実例”,bit別冊 a cm computing surve ys ’90コンピュータ・サイエンス (1992年7月号別冊),共立出版,平成 4年7月10日,p.141−191 (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 G06F 12/08 G06F 13/00 G06F 15/16 Continuation of the front page (56) References JP-A-5-143433 (JP, A) Eliezer Levy et al., Translated by Yoshiharu Amami, "Distributed File System: Concepts and Examples", bit separate volume a cm computing surveys '90 Computer Science (separate volume of July 1992), Kyoritsu Shuppan, July 10, 1992, p. 141-191 (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12/00 G06F 12/08 G06F 13/00 G06F 15/16

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のホストコンピュータにより共有さ
れる共有ファイルに対するアクセスの排他制御がファイ
ル排他制御処理装置によって行われる疎結合コンピュー
タシステムにおいて、前記ファイル排他制御処理装置に自己が存在するホスト
コンピュータのローカルバッファ内の共有ファイルの世
代番号を当該共有ファイルのロック指示とともに通知す
る各ホストコンピュータ内のロック指示通知手段と、 前記ファイル排他制御処理装置から共有ファイルのロッ
ク成功通知とともに通知された当該共有ファイルの世代
番号と自己が存在するホストコンピュータのローカルバ
ッファ内の当該共有ファイルの世代番号とを比較し、両
者が不一致の場合には外部記憶装置から当該共有ファイ
ルを自己が存在するホストコンピュータのローカルバッ
ファに読み込む各ホストコンピュータ内の世代番号判定
手段と、共有ファイルを更新した後に当該共有ファイル
のアンロック指示を通知する際に、自己が存在するホス
トコンピュータのローカルバッファ内の当該共有ファイ
ルの世代番号をカウントアップした後に、前記ファイル
排他制御処理装置にアンロック指示とともに当該共有フ
ァイルが更新されたことを示す情報を通知する各ホスト
コンピュータ内のアンロック指示通知手段と、 当該疎結合コンピュータシステムにおける共有ファイル
の世代番号を管理し、いずれかのホストコンピュータか
らの共有ファイルのロック指示に対するロック成功通知
時に自己が管理する当該共有ファイルの世代番号を当該
ホストコンピュータに通知し、いずれかのホストコンピ
ュータからの共有ファイルのアンロック指示に当該共有
ファイルが更新されたことを示す情報が付加されている
場合に自己が管理する当該共有ファイルの世代番号をカ
ウントアップする前記ファイル排他制御処理装置とを有
することを特徴とする共有ファイル更新制御方式。
1. A system shared by a plurality of host computers.
Exclusive control of access to shared files
Loosely coupled computer performed by exclusive control processor
Data system,The host in which the file exclusion control processing device exists.
Share files in a local buffer on the computer
Notification with the lock instruction of the shared file.
Lock instruction notifying means in each host computer, Locking of shared files from the file exclusion control processor
Generation of the relevant shared file notified with the success notification
Number and the local number of the host computer where the
Compare the generation number of the shared file in the
If the users do not match, the shared file is
File in the local computer of the host
Determination of generation number in each host computer
Means and the shared file after updating the shared file
When notifying the unlock instruction of
The shared file in the local buffer of the
After counting up the generation number of the file,
The exclusive file is sent to the exclusive control processor together with the unlock instruction.
Each host that sends information indicating that the file has been updated
Unlock instruction notification means in the computer,  Shared files in the loosely-coupled computer system
Manages the generation number of each host computer
Lock success notification for the shared file lock instruction
Sometimes the generation number of the shared file managed by the
Notify the host computer and select one of the host
The shared file unlock instruction from the computer.
Information indicating that the file has been updated is added
In this case, the generation number of the shared file
With the file exclusive control processing device
A shared file update control method.
【請求項2】 疎結合コンピュータシステムにおける共
有ファイルの世代番号を管理する制御テーブルと、 ホストコンピュータから共有ファイルのロック指示を受
けた場合に当該共有ファイルの世代番号が前記制御テー
ブルに格納されていない場合に当該ロック指示に付加さ
れた当該共有ファイルの世代番号を前記制御テーブルに
格納する世代番号格納処理部と、 ホストコンピュータへの共有ファイルのロック成功通知
時に前記制御テーブルに格納された当該共有ファイルの
世代番号を当該ホストコンピュータに通知する世代番号
通知処理部と、 ホストコンピュータから共有ファイルが更新されたこと
を示す情報が付加された当該共有ファイルのアンロック
指示を受けた場合に前記制御テーブルに格納された当該
共有ファイルの世代番号をカウントアップする世代番号
カウントアップ処理部と、 を備えるファイル排他制御処理装置を有することを特徴
とする請求項1記載の共有ファイル更新制御方式。
2. A control table for managing a generation number of a shared file in a loosely-coupled computer system, and the generation number of the shared file is not stored in the control table when an instruction to lock the shared file is received from a host computer. A generation number storage processing unit that stores the generation number of the shared file added to the lock instruction in the control table, and the shared file stored in the control table when a successful lock of the shared file is notified to the host computer. A generation number notification processing unit for notifying the generation number of the shared file to the host computer, and receiving an unlock instruction for the shared file added with information indicating that the shared file has been updated from the host computer, to the control table. Record the generation number of the stored shared file. 2. The shared file update control method according to claim 1, further comprising: a file exclusion control processing device comprising: a generation number count-up processing unit that counts up.
JP26680296A 1996-09-17 1996-09-17 Shared file update control method Expired - Fee Related JP3206453B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26680296A JP3206453B2 (en) 1996-09-17 1996-09-17 Shared file update control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26680296A JP3206453B2 (en) 1996-09-17 1996-09-17 Shared file update control method

Publications (2)

Publication Number Publication Date
JPH1091510A JPH1091510A (en) 1998-04-10
JP3206453B2 true JP3206453B2 (en) 2001-09-10

Family

ID=17435890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26680296A Expired - Fee Related JP3206453B2 (en) 1996-09-17 1996-09-17 Shared file update control method

Country Status (1)

Country Link
JP (1) JP3206453B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6199808B2 (en) * 2014-06-06 2017-09-20 株式会社東芝 Database apparatus and data access method
JP6318065B2 (en) * 2014-09-26 2018-04-25 株式会社野村総合研究所 Database lock control system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Eliezer Levy 外 著、天海 良治 訳,"分散ファイルシステム:その概念と実例",bit別冊 acm computing surveys ’90コンピュータ・サイエンス(1992年7月号別冊),共立出版,平成4年7月10日,p.141−191

Also Published As

Publication number Publication date
JPH1091510A (en) 1998-04-10

Similar Documents

Publication Publication Date Title
JP3781212B2 (en) sub-system
JP2703479B2 (en) Data processing method and system having security function of time zero backup session
US6973551B1 (en) Data storage system having atomic memory operation
JP3180362B2 (en) Information processing device
US6101588A (en) Device level busy arrangement for mass storage subsystem including a plurality of devices
JPH11272427A (en) Method for saving data and outside storage device
US7873613B2 (en) Providing storage control in a network of storage controllers
US6076126A (en) Software locking mechanism for locking shared resources in a data processing system
JP2002007182A (en) Shared file control system for external storage device
US6381681B1 (en) System and method for shared memory protection in a multiprocessor computer
US20010014932A1 (en) Multi-processor system
JP3206453B2 (en) Shared file update control method
GB2189061A (en) Management of system configuration data
US7836170B2 (en) Suspension and reinstatement of reference handles
WO2000034871A1 (en) Computer, recorded medium on which address validity checking program is recorded, and address validity checking method
US20140101391A1 (en) Conditional write processing for a cache structure of a coupling facility
US7219256B2 (en) Method and apparatus for controlling data storage within a data storage system
JP3037241B2 (en) Lock control device
JPH11237959A (en) Multiple writing storage device
JP3364751B2 (en) Data transfer system
JP2933011B2 (en) Exclusive file control system
JP3778405B2 (en) Disk subsystem
JPH05241861A (en) Free memory management system for operating system
JPH09282291A (en) System and method for canceling lock flag of common storage device
JP3317898B2 (en) Bus failure handling method and bus failure handling method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070706

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080706

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090706

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100706

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110706

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110706

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120706

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees