JP2767831B2 - Access control method for shared devices - Google Patents

Access control method for shared devices

Info

Publication number
JP2767831B2
JP2767831B2 JP25063188A JP25063188A JP2767831B2 JP 2767831 B2 JP2767831 B2 JP 2767831B2 JP 25063188 A JP25063188 A JP 25063188A JP 25063188 A JP25063188 A JP 25063188A JP 2767831 B2 JP2767831 B2 JP 2767831B2
Authority
JP
Japan
Prior art keywords
cpu
area
shared memory
access
cpus
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
JP25063188A
Other languages
Japanese (ja)
Other versions
JPH0296868A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP25063188A priority Critical patent/JP2767831B2/en
Publication of JPH0296868A publication Critical patent/JPH0296868A/en
Application granted granted Critical
Publication of JP2767831B2 publication Critical patent/JP2767831B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、共有デバイスのアクセス管理方式に関し、
特にCPUダウン時、すなわち、CPU停止時または障害発生
時(以下、本明細書では「CPUダウン時」という)にお
けるスムーズなバックアップに好適な共有デバイスのア
クセス管理方式、および、共有メモリを通しての障害波
及の防止に好適な共有デバイスのアクセス管理方式に関
するものである。
The present invention relates to an access management method for a shared device,
In particular, when the CPU is down, that is, when the CPU is stopped or a failure occurs (hereinafter, referred to as “CPU down”), an access management method of a shared device suitable for smooth backup, and a failure propagation through the shared memory. The present invention relates to an access management method for a shared device that is suitable for prevention of the problem.

〔従来の技術〕[Conventional technology]

例えば、従来の共有メモリへのアクセス管理方式にお
いては、共有メモリのある領域へ1つのCPUがアクセス
する場合、まず、他のCPUのアクセスを防止するよう、
ロックをかけてから読出し・更新等の作業を行い、終了
後、当該CPUがそのロックを解除して初めて、他のCPUの
同領域へのアクセスが可能となるようにして、競合問題
を解決していた。
For example, in the conventional access management method for a shared memory, when one CPU accesses a certain area of the shared memory, first, access to another CPU is prevented.
Lock and read / update operations are performed, and after completion, the relevant CPU must be able to access the same area by other CPUs only after the lock is released to solve the contention problem. I was

なお、この種の方式に関連するものとしては、例え
ば、ブリッグス他:「コンピュータ・アーキテクチャ・
アンド・パラレル・プロセッシング(1984)」(Briggs
et al.:“Computer Architecture and Parallel Proce
ssing")の記載が参照できる。
Related to this type of method are, for example, Briggs et al .: “Computer Architecture Architecture”
And Parallel Processing (1984) "(Briggs
et al .: “Computer Architecture and Parallel Proce
ssing ").

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上記従来技術は、あるメモリ領域へアクセス中のCPU
が停止または障害発生した場合、当該CPUがかけたロッ
クのため、当該メモリ領域への他CPUによるアクセスが
不可能になってしまうという問題があった。また、上記
従来技術は、あるメモリ領域へアクセス中のCPUが暴走
し、当該領域のメモリ内容を破壊した場合、当該領域の
データを利用する他のCPUの処理が不可能になってしま
うという問題があった。
The above-mentioned prior art uses a CPU accessing a certain memory area.
If the CPU is stopped or a failure occurs, there is a problem that the memory area cannot be accessed by another CPU due to the lock applied by the CPU. In addition, the above conventional technique has a problem that when a CPU accessing a certain memory area runs away and destroys the memory contents of the area, processing of another CPU using data in the area becomes impossible. was there.

更に、同様の問題は、共有メモリへのアクセス管理に
限らず、共有デバイスへのアクセス管理全般に関して存
在するものである。
Further, a similar problem exists not only in access management to a shared memory but also in overall access management to a shared device.

本発明は上記事情に鑑みてなされたもので、その目的
とするところは、従来の技術による上述のような問題を
解消し、CPUによるロックを行うことなしに、競合問題
を解決可能とする共有デバイスのアクセス管理方式、お
よび、共有デバイスを通しての障害の波及を防止可能と
する共有デバイスのアクセス管理方式を提供することに
ある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-described problem of the related art and to solve a contention problem without locking by a CPU. It is an object of the present invention to provide a device access management method and a shared device access management method capable of preventing the propagation of a failure through the shared device.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の上記目的は、複数のCPUと複数のデバイスを
有し、該複数のデバイスのいずれもが二つ以上のCPUと
接続されて構成されるシステムにおいて、前記複数のデ
バイスを複数のグループに分割し、各グループを前記各
CPU毎の専用グループとして、該グループを占有するCPU
がダウンするか、または、該グループに属するデバイス
との接続に異常が生じた場合に限り、当該グループまた
は当該グループに属するデバイスへのアクセス権が、所
定の他のCPUに生じるようにしたことを特徴とする共有
デバイスのアクセス管理方式、および、前記共有デバイ
スが共有メモリである場合に、該共有メモリを複数のエ
リアに分割し、分割した共有メモリの各部分を前記各CP
U毎の専用領域として、該領域を専有するCPUがダウンし
た場合に限り、当該領域へのアクセス権を、所定の他の
CPUに生じるようにするとともに、前記複数のCPUの内部
メモリに前記共有メモリの複製を持たせて、メモリ書込
み時に前記専用領域と前記複製とに同一内容を書込み、
読出し時には前記専用領域内データと前記複製内データ
とを比較し、不一致がある場合は、前記共有メモリの内
容が破壊されたと判断し、前記複製に基づいて当該領域
を復旧することを特徴とする共有デバイスのアクセス管
理方式によって達成される。
An object of the present invention is to provide a system including a plurality of CPUs and a plurality of devices, each of the plurality of devices being connected to two or more CPUs, wherein the plurality of devices are grouped into a plurality of groups. Divide and group each
As a dedicated group for each CPU, CPUs that occupy the group
The access right to the group or a device belonging to the group is set to be given to another predetermined CPU only when the device goes down or an abnormality occurs in the connection with the device belonging to the group. An access management method for a shared device, wherein when the shared device is a shared memory, the shared memory is divided into a plurality of areas, and each part of the divided shared memory is assigned to each of the CPs.
As a dedicated area for each U, only when the CPU that occupies the area goes down, the access right to the area is changed to another predetermined area.
While causing the CPU, the internal memory of the plurality of CPUs to have a copy of the shared memory, write the same content to the dedicated area and the copy at the time of memory writing,
At the time of reading, the data in the dedicated area is compared with the data in the copy. If there is a mismatch, it is determined that the contents of the shared memory have been destroyed, and the area is restored based on the copy. Achieved by a shared device access management scheme.

〔作用〕[Action]

各CPUは、共有メモリ上の専用領域および他CPUがダウ
ンした際アクセス権を得られる領域(バックアップ領
域)を記憶しており、通常稼動時は、各CPUは、自分の
専用領域しかアクセスしないように構成されている。た
だし、他のCPUがダウンし、かつ、該CPUのダウンにより
新たにアクセス権を得られる領域が存在する場合に限
り、該領域へのアクセスを行うように動作する。なお、
ダウン状態から回復したCPUは、他の全CPUからの了解信
号(アクセス権放棄信号)を受けて初めて、共有メモリ
へのアクセスを行い、専用領域およびバックアップ領域
をコピーして処理を行う。
Each CPU stores a dedicated area on the shared memory and an area (backup area) that can be accessed when another CPU goes down. During normal operation, each CPU should access only its own dedicated area. Is configured. However, the operation is performed so as to access the area only when another CPU is down and there is an area in which a new access right can be obtained due to the down of the CPU. In addition,
Only after receiving the acknowledgment signal (access right relinquish signal) from all other CPUs, the CPU that has recovered from the down state accesses the shared memory and performs processing by copying the dedicated area and the backup area.

また、通常動作状態において、書込み時は両者に同一
内容を書込み、読出し時には内部メモリの内容のみを読
出すように動作する。このため、他CPUにより共有メモ
リが破壊されても、通常動作には支障が生ずることはな
い。
Also, in the normal operation state, the same operation is performed to write both data at the time of writing, and only the content of the internal memory is read at the time of reading. Therefore, even if the shared memory is destroyed by another CPU, there is no problem in normal operation.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例を示すシステム構成図であ
る。図において、1は共通バスで結ばれた4つのブロッ
クから成る共有メモリ(GM)、21〜28は該共有メモリ1
の各ブロックを理論的に2つに分割して得られた80つの
小ブロック(M1〜M8)を示す。これら小ブロックM1〜M8
には、それぞれ128台の端末についての個別対応データ
が納められている。また、31〜34はCPU(P1〜P4)を示
しており、これらのCPU31〜34は、4で示すリング型ネ
ットワークに接続されている。
FIG. 2 is a system configuration diagram showing one embodiment of the present invention. In the figure, 1 is a shared memory (GM) composed of four blocks connected by a common bus, and 21 to 28 are shared memories 1
80 blocks (M1 to M8) obtained by theoretically dividing each block into two. These small blocks M1 to M8
Contains personalized data for each of the 128 terminals. Reference numerals 31 to 34 denote CPUs (P1 to P4), and these CPUs 31 to 34 are connected to a ring network indicated by 4.

5(51〜51024)で示す1024台の端末もまた、上記リ
ング型ネットワーク4に接続されており、それぞれの端
末は、このネットワークを通して前記CPUと通信可能に
構成されている。
Also, 1024 terminals 5 (51 to 51024) are connected to the ring network 4, and each terminal is configured to be able to communicate with the CPU through this network.

動作について述べる前に、いくつか用語を設ける。ま
ず、各CPUがアクセス権を持つ共有メモリ1内の領域を
「担当領域」と呼ぶ。また、その領域内に個別対応デー
タを持つ端末を「担当端末」と呼ぶ。更に、各CPUの専
用領域,バックアップ領域を、第3図に示すように定義
する。
Before describing the operation, some terms are provided. First, an area in the shared memory 1 to which each CPU has an access right is referred to as a “assigned area”. A terminal having the individual correspondence data in the area is referred to as a “terminal in charge”. Further, a dedicated area and a backup area of each CPU are defined as shown in FIG.

上述のように構成されている本実施例の動作を以下、
第1図の動作フローに従って説明する。
The operation of the present embodiment configured as described above will be described below.
The operation will be described according to the operation flow of FIG.

最初に、通常時の動作について説明する。このとき、
各CPUの担当領域は専用領域に等しく、各端末は、それ
ぞれ、自分を担当端末に持つCPUを介して前記共有メモ
リ1内の個別データにアクセスし、業務を行う(ステッ
プ81〜83)。
First, a normal operation will be described. At this time,
The assigned area of each CPU is equal to the dedicated area, and each terminal accesses the individual data in the shared memory 1 via the CPU having the assigned terminal and performs a task (steps 81 to 83).

次に、CPUダウン時の動作を、CPU(P2)32がダウンし
た場合を例に説明する。各CPUはネットワーク4を介し
て、相互監視を行っているので、上記CPU(P2)32がダ
ウンしたことは他のCPUの知るところとなる(ステップ8
1)。そこで、各CPUは自らのバックアップ領域を調べて
(ステップ84)、その中に、ダウンしたCPUの担当領域
に含まれるものがあれば(ステップ85)それを自分の担
当領域に含める(ステップ86〜87)。上述の例では、CP
U(P1)31が小ブロックM3を、CPU(P3)33が小ブロック
M4を担当領域に加えることになる。以後、CPU(P2)32
を介して業務を行っていた端末は、CPU(P1)31またはC
PU(P3)33を介して業務を続行することになる。この場
合の状況を第4図に示した。なお、第4図において、記
号61〜610はアクセスの関連を示している。
Next, an operation when the CPU is down will be described by taking a case where the CPU (P2) 32 is down as an example. Since the CPUs monitor each other via the network 4, the fact that the CPU (P2) 32 has gone down is known to other CPUs (step 8).
1). Therefore, each CPU checks its own backup area (step 84), and if any is included in the responsible area of the downed CPU (step 85), it includes it in its own responsible area (steps 86 to 86). 87). In the example above, CP
U (P1) 31 is a small block M3, CPU (P3) 33 is a small block
M4 will be added to the area in charge. Thereafter, CPU (P2) 32
Terminals that have been working through, the CPU (P1) 31 or C
Business will be continued via PU (P3) 33. The situation in this case is shown in FIG. In FIG. 4, symbols 61 to 610 indicate the relation of access.

次に、上に示した例で、CPU(P2)32が回復したとき
の動作を述べる。先に示したと同様に、相互監視により
CPU(P2)32が回復したことを知ったCPU(P1)31または
CPU(P3)33は、それぞれ、小ブロックM3およびM4への
アクセスを止め、ステップ88〜90で、サービス再開が可
能である旨を示すメッセージ(回復了解信号)7を、CP
U(P2)32へ送る。これを受けて初めて、CPU(P2)32は
従来通りの端末へのサービスを再開する。この場合の状
況を第5図に示した。第5図において、記号61〜68はア
クセスの関連を示している。
Next, the operation when the CPU (P2) 32 recovers will be described in the above example. As mentioned earlier, mutual monitoring
CPU (P1) 31 that knew that CPU (P2) 32 had recovered or
The CPU (P3) 33 stops access to the small blocks M3 and M4, respectively, and outputs a message (recovery acknowledgment signal) 7 indicating that service can be resumed in steps 88 to 90, to the CP (P3) 33.
Send to U (P2) 32. Only then will the CPU (P2) 32 resume service to the terminal as before. The situation in this case is shown in FIG. In FIG. 5, symbols 61 to 68 indicate the access relation.

なお、ダウンしたCPU(P2)32が回復しないうちに、
更に別のCPUがダウンしたような場合には(ステップ9
1)、前述の、CPU(P2)32がダウンした場合と同様の処
理(ステップ84以降)が行われることになる。
Before the failed CPU (P2) 32 recovers,
If another CPU goes down (step 9
1) The same processing (step 84 and subsequent steps) as when the CPU (P2) 32 goes down as described above is performed.

上記実施例によれば、1CPUダウン時、または特定の2C
PU(例えば、CPU(P2とP4))ダウン時にも、全端末へ
のサービスが続行できるという効果がある。なお、共有
メモリを利用するため、バックアップ時においても、ア
クセスが低速化することはない。なお、実際には、次の
条件が満足されていることが必要である。
According to the above embodiment, when 1 CPU is down, or when 2C
Even when the PU (for example, the CPU (P2 and P4)) goes down, there is an effect that service to all terminals can be continued. Since the shared memory is used, the access does not slow down even during backup. Actually, it is necessary that the following conditions are satisfied.

(1)各CPUの扱う、データ同志の独立性が高いこと (2)1CPUの扱うデータを、他のCPUが利用してもサー
ビスに差支えないこと 次に、本発明の他の実施例を第6図に基づいて説明す
る。本実施例は、特許請求の範囲(請求項)4項に対応
するものである。
(1) The independence of data among each CPU handled by each CPU is high. (2) The data handled by one CPU can be used by other CPUs for service. Next, another embodiment of the present invention will be described. A description will be given based on FIG. The present embodiment corresponds to claim 4.

第6図において、記号1,21〜28,31〜34,4,51〜51024
は第2図に示したと同じ構成要素を示している。共有メ
モリ1の各小ブロック(M1〜M8)21〜28には、それぞれ
128台の端末についての個別対応データが納められてい
る。
In FIG. 6, symbols 1,21 to 28,31 to 34,4,51 to 51024
Indicates the same components as those shown in FIG. Each of the small blocks (M1 to M8) 21 to 28 of the shared memory 1 has
Contains personalized data for 128 devices.

第2図に示した構成との相異は、各CPU31〜34が、各
々の専用領域およびバックアップ領域のコピーを保持し
ている点であり、第6図中の41〜44がこれに当たる。な
お、これらを、各CPUのプライベートファイル(PF)と
呼び、そこに個別データを置いている端末を「可担当端
末」と呼ぶ。
The difference from the configuration shown in FIG. 2 is that each of the CPUs 31 to 34 holds a copy of each dedicated area and backup area, and 41 to 44 in FIG. 6 correspond to this. Note that these are called private files (PF) of each CPU, and a terminal in which individual data is placed is called a “possible terminal”.

以下、本実施例の動作を第7図〜第9図に示すフロー
チャートに従って説明する。
Hereinafter, the operation of this embodiment will be described with reference to the flowcharts shown in FIGS.

最初に、通常時の端末サービスについて説明する。こ
のとき、各CPUの担当領域は専用領域に等しい。各端末
からの処理要求は、端末番号,処理内容からなるメッセ
ージとして、全CPUに受信される。これに対する各CPUの
動作は、第8図のフローチャートに示す通りである。
First, a normal terminal service will be described. At this time, the assigned area of each CPU is equal to the dedicated area. A processing request from each terminal is received by all CPUs as a message including a terminal number and processing contents. The operation of each CPU in response to this is as shown in the flowchart of FIG.

可担当端末であって、担当端末でないものからの処理
要求ならば(ステップ201〜203)、PS更新処理のみを行
い、結果は返さない(ステップ207)。担当端末からで
あれば、共有メモリ(GM)1およびPSの双方にアクセス
して比較を行い、不一致があれば(ステップ204)、PF
の該当データを共有メモリへコピーしてから、所定の処
理を双方に行い(ステップ206)、終了後、当該端末へ
結果を報知する(ステップ210)。なお、第6図には、
共有メモリ1の小ブロック(M3)23にデータを持つ端末
51からの処理要求の流れが記号71で、同端末を担当に持
つCPUからの結果報知の流れが記号72で、それぞれ、表
わされている。
If it is a processing request from a terminal in charge and not a terminal in charge (steps 201 to 203), only the PS update processing is performed and no result is returned (step 207). If the terminal is in charge, access is made to both the shared memory (GM) 1 and the PS for comparison, and if there is a mismatch (step 204), the PF
After the corresponding data is copied to the shared memory, predetermined processing is performed on both sides (step 206), and after completion, the result is reported to the terminal (step 210). In FIG. 6,
Terminal with data in small block (M3) 23 of shared memory 1
The flow of the processing request from 51 is represented by reference numeral 71, and the flow of reporting the result from the CPU in charge of the terminal is represented by reference numeral 72.

次に、CPUダウン時の動作を、先の実施例と同様に、C
PU(P2)32がダウンした場合を例に説明する。各CPUは
ネットワーク4を介して、相互監視を行っているので、
上記CPU(P2)32がダウンしたことは他のCPUの知るとこ
ろとなる(ステップ101)。そこで、各CPUは自らのバッ
クアップ領域を調べ(ステップ84)、その中にダウンし
たCPUの担当領域に含まれるものがあれば(ステップ10
8)それを自分の担当領域に含める(ステップ109)。上
述の例では、CPU(P1)31が小ブロックM3を、CPU(P3)
33が小ブロックM4を担当領域に加えることになる。
Next, the operation at the time of CPU down is performed in the same manner as in the previous embodiment.
An example in which the PU (P2) 32 goes down will be described. Since each CPU monitors each other via the network 4,
The fact that the CPU (P2) 32 has gone down is known to other CPUs (step 101). Therefore, each CPU checks its own backup area (step 84), and if any of them is included in the area in charge of the downed CPU (step 10).
8) Include it in your area of responsibility (step 109). In the above example, the CPU (P1) 31 replaces the small block M3 with the CPU (P3)
33 adds the small block M4 to the assigned area.

以後、それまでCPU(P2)32から処理結果を受けてい
た端末は、CPU(P1)31またはCPU(P3)33からの処理結
果を受けることになる。この場合の状況を第10図に示し
た。なお、第6図に記号71,72で示した流れは、第10図
においては記号73,74で示すように変わる。
Thereafter, the terminal that has received the processing result from the CPU (P2) 32 until then receives the processing result from the CPU (P1) 31 or the CPU (P3) 33. The situation in this case is shown in FIG. The flow indicated by reference numerals 71 and 72 in FIG. 6 changes as indicated by reference numerals 73 and 74 in FIG.

なお、CPU(P2)32がダウン前に共有メモリ(GM)1
をソフト的に破壊していた場合は、CPU(P1)31またはC
PU(P3)33が端末要求を処理するが、この場合は、前述
の如く、共有メモリ(GM)1,PFのデータに不一致が生ず
ることにより検知され(ステップ204)、破壊されたデ
ータは、PFを基に復旧される(ステップ206)。
Before the CPU (P2) 32 goes down, the shared memory (GM) 1
CPU (P1) 31 or C
The PU (P3) 33 processes the terminal request. In this case, as described above, it is detected that a mismatch occurs in the data of the shared memory (GM) 1 and the PF (step 204), and the destroyed data is Recovery is performed based on the PF (step 206).

次に、上に示した例で、CPU(P2)32が回復したとき
の動作を述べる。前述の如く、相互監視によりCPU(P
2)32が回復したことを知った他CPUは、それぞれ、共有
メモリへのアクセスを抑止し(ステップ113)、ステッ
プ114で、ネットワークに共有メモリへのアクセスを抑
止したことを示すメッセージ(GMアクセス抑止メッセー
ジ)を流す。これを全他CPUから受けて初めて、CPU(P
2)32は共有メモリにアクセスし、PFを復旧させる(ス
テップ103)。なお、共有メモリアクセス抑止中のCPU
は、共有メモリアクセス抜きで、通常の端末サービスを
行う。この場合の動作フローを第9図に示した。
Next, the operation when the CPU (P2) 32 recovers will be described in the above example. As mentioned above, mutual monitoring allows the CPU (P
2) The other CPUs that have learned that the 32 has recovered have each inhibited access to the shared memory (step 113), and in step 114, received a message indicating that access to the shared memory has been inhibited by the network (GM access). Suppression message). Only after receiving this from all other CPUs does the CPU (P
2) 32 accesses the shared memory and restores the PF (step 103). In addition, CPUs that are not accessing shared memory
Performs normal terminal services without shared memory access. The operation flow in this case is shown in FIG.

CPU(P2)32は、通常の稼動状態に戻った旨を示すメ
ッセージ(PF回復メッセージ)をネットワークに流す
(ステップ105)。これを受信した他CPUは、それぞれ、
再び自分の担当領域へのアクセスを開始し、システムは
元に戻る。
The CPU (P2) 32 sends a message (PF recovery message) indicating that it has returned to the normal operation state to the network (step 105). The other CPUs that receive this,
Start accessing your area again and the system returns.

なお、第11図において、75〜77はアクセス抑止メッセ
ージ、78〜711は共有メモリからCPU(P2)32のPFへのデ
ータの流れ、また、712はPF回復メッセージを表わして
いる。
In FIG. 11, reference numerals 75 to 77 denote access suppression messages, reference numerals 78 to 711 denote data flows from the shared memory to the PF of the CPU (P2) 32, and reference numeral 712 denotes a PF recovery message.

本実施例によれば、1CPUダウン時、または特定の2CPU
(例えば、CPU(P2とPS))ダウン時にも、全端末への
サービスが続行できるという効果がある。なお、共有メ
モリを利用するため、回復したCPU内の個別対応ファイ
ルを高速に復旧できるという効果がある。
According to the present embodiment, when one CPU is down, or when a specific two CPUs
Even when the CPU (P2 and PS) goes down, the service to all terminals can be continued. In addition, since the shared memory is used, there is an effect that the individual corresponding file in the recovered CPU can be recovered at a high speed.

次に、前述の各実施例に示した如く、端末自身にネッ
トワーク通信機能を持たせてCPUと端末を同一のネット
ワークに接続する代りに、CPUと端末間の通信制御を行
うユニット(CCU)を用いる例を示す。この場合には、
上記CCUが共有デバイスとなる。
Next, as shown in each of the above-described embodiments, a unit (CCU) for performing communication control between the CPU and the terminal is provided instead of providing the terminal itself with a network communication function and connecting the CPU and the terminal to the same network. Here is an example of use. In this case,
The CCU is a shared device.

この場合のシステム構成図を、第12図に示す。図中、
記号1,31〜34,51〜51024は第2図に示したと同じ構成要
素を示しており、8a〜8hはCCU(通信制御ユニット)を
示している。なお、前述のブロック化された共有メモリ
およびネットワークは、第12図では示されていないが、
端末は、個別対応データを持つもの毎に、各ブロックに
グループ分けされ、同グループ毎に上記CCUに接続され
ているものとする。また、前述の実施例において定義し
た「担当領域」,「担当端末」等の用語に対応して、次
の用語を定義する。
FIG. 12 shows a system configuration diagram in this case. In the figure,
Symbols 1, 31 to 34, 51 to 51024 indicate the same components as those shown in FIG. 2, and 8a to 8h indicate CCUs (communication control units). Although the above-described block shared memory and network are not shown in FIG. 12,
It is assumed that the terminals are grouped into blocks for each of those having the individual correspondence data, and are connected to the CCU for each group. Further, the following terms are defined corresponding to the terms such as “charge area” and “charge terminal” defined in the above-described embodiment.

各CPUについて、回線に接続されているCCUを「可担当
CCU」、その処理要求に対して処理結果を返すCCUを「担
当CCU」と呼ぶ。また、「専用CCU」,「バックアップCC
U」を、第13図に示す如く定め、このテーブル(割当て
テーブル)全体を、各CPUが持つものとする。
For each CPU, the CCU connected to the line is
The CCU that returns a processing result in response to the processing request is referred to as a “charged CCU”. "Dedicated CCU", "Backup CC"
U ”is determined as shown in FIG. 13, and this table (allocation table) is assumed to be possessed by each CPU.

この場合の、正常時のシステムの動作は次の通りであ
る。各CPUの可担当CCUは、専用CCUのみであり、他CPUが
ダウンしたときの動作および回復したときの動作は、先
に示した共有メモリブロックに対する動作と同様であ
る。すなわち、CPUダウン時には、各CPUは上記割当テー
ブルを参照して、ダウンしたCPUの担当CCUが自CPUの可
担当CCUに含まれていれば、該CCUを担当CCUに含める。
The normal operation of the system in this case is as follows. The only CCU that can be assigned to each CPU is a dedicated CCU, and the operation when the other CPU goes down and the operation when it recovers are the same as the operations for the shared memory block described above. That is, at the time of CPU down, each CPU refers to the above-mentioned assignment table and, if the CCU in charge of the downed CPU is included in the available CCU of its own CPU, includes the CCU in the assigned CCU.

CCUの動作は、次の通りである。CCUが端末からの処理
要求を受付けると、まず、その信号を受付け番号と自CC
U番号とを付して、接続されている2CPUの双方に向けて
送信する。各々のCPUは、受信したデータが担当CCUから
のものであれば処理結果を該CCUへ返し、そうでなけれ
ば返さない。第12図において、端末51からの処理要求の
流れを記号713で、処理結果の流れを記号714で示す。
The operation of the CCU is as follows. When the CCU accepts a processing request from the terminal, it first receives the signal as the acceptance number and its own CC.
A U number is attached and transmitted to both of the two connected CPUs. Each CPU returns a processing result to the CCU if the received data is from the assigned CCU, and otherwise returns no processing result. In FIG. 12, the flow of a processing request from the terminal 51 is denoted by reference numeral 713, and the flow of a processing result is denoted by reference numeral 714.

次に、CPUとCCU間の回線に障害が生じたときの動作を
説明する。例として、CPU(P1)31,CCU8a間の回線に障
害が生じた場合を考える。この場合、CPU(P1)31は、
自CPU番号と回線障害の生じた相手CCU番号から成る障害
情報メッセージをブロードキャストする。これを受けた
他のCPUは、それぞれ、前述の割当テーブルを参照し、
当該CCUが、自CCUの可担当CCUに含まれていれば、該CCU
を担当CCUに含める。この例では、CCU8aへのサービス
は、以後、CPU(P4)34によって行われることになる。
この場合の処理結果の流れを、第14図に、記号715で示
した。
Next, the operation when a failure occurs in the line between the CPU and the CCU will be described. As an example, let us consider a case where a failure has occurred in the line between the CPU (P1) 31 and the CCU 8a. In this case, the CPU (P1) 31
It broadcasts a failure information message consisting of its own CPU number and the CCU number of the partner in which a line failure has occurred. The other CPUs receiving this respectively refer to the above-mentioned assignment table,
If the CCU is included in the available CCU of the own CCU, the CCU
Is included in the assigned CCU. In this example, the service to the CCU 8a is performed by the CPU (P4) 34 thereafter.
The flow of the processing result in this case is indicated by reference numeral 715 in FIG.

上記実施例によれば、先に示した実施例の如く端末自
身にネットワーク通信機能を持たせることなく、同様の
サービス連続性を保持でき、システム製造コストを低減
できるという効果がある。
According to the above-described embodiment, there is an effect that similar service continuity can be maintained without giving the terminal itself a network communication function as in the above-described embodiment, and the system manufacturing cost can be reduced.

なお、上記各実施例は、一例として示したものであ
り、本発明はこれらに制約されるものではないことは言
うまでもない。
It is to be noted that each of the above embodiments is shown as an example, and it is needless to say that the present invention is not limited to these embodiments.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、CPUによるロ
ックを行うことなしに、競合問題を解決可能とする共有
メモリのアクセス管理方式、および、共有メモリを通し
ての障害の波及を防止可能とする共有メモリのアクセス
管理方式を実現できるという顕著な効果を奏するもので
ある。
As described above, according to the present invention, a shared memory access management method capable of solving a contention problem without locking by a CPU and a shared memory capable of preventing the propagation of a failure through the shared memory This has a remarkable effect that a memory access management method can be realized.

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

第1図は本発明の一実施例を示す動作フローチャート、
第2図は実施例のシステム構成図、第3図は各CPUの専
用領域,バックアップ領域の定義例を示す図、第4図は
1CPUダウン時におけるアクセス権の移動を説明する図、
第5図はダウンしたCPU回復時におけるアクセス権の移
動を説明する図、第6図は本発明の他の実施例を示すシ
ステム構成図、第7図〜第9図は実施例の動作フローチ
ャート、第10図は1CPUダウン時における動作を説明する
図、第11図はダウンしたCPU回復時における動作を説明
する図、第12図は本発明の更に他の実施例を示すシステ
ム構成図、第13図は各CCUの専用領域,バックアップ領
域の定義例を示す図、第14図は1回線障害発生時におけ
る動作を説明する図である。 1:共有メモリ(GM)、21〜28:共有メモリ1の小ブロッ
ク(M1〜M8)、31〜34:CPU(P1〜P4)、4:リング型ネッ
トワーク、41〜44:PF、5(51〜51024):端末、7:回復
了解信号、71,73:端末からの処理要求の流れ、72および
74:CPUからの処理結果報知の流れ、75〜77:アクセス抑
止メッセージ、78〜711:データの流れ、712:回復メッセ
ージ、713:処理要求の流れ、714,715:処理結果の流れ、
8a〜8h:CCU。
FIG. 1 is an operation flowchart showing one embodiment of the present invention,
FIG. 2 is a system configuration diagram of the embodiment, FIG. 3 is a diagram showing a definition example of a dedicated area and a backup area of each CPU, and FIG.
Diagram explaining the transfer of access rights when 1 CPU goes down,
FIG. 5 is a diagram for explaining the transfer of the access right when the down CPU is recovered, FIG. 6 is a system configuration diagram showing another embodiment of the present invention, FIGS. 7 to 9 are operation flowcharts of the embodiment, FIG. 10 is a diagram for explaining the operation when one CPU is down, FIG. 11 is a diagram for explaining the operation when the down CPU is recovered, FIG. 12 is a system configuration diagram showing still another embodiment of the present invention, and FIG. FIG. 14 is a diagram showing a definition example of a dedicated area and a backup area of each CCU. FIG. 14 is a view for explaining an operation when a one-line failure occurs. 1: Shared memory (GM), 21 to 28: Small block of shared memory 1 (M1 to M8), 31 to 34: CPU (P1 to P4), 4: Ring network, 41 to 44: PF, 5 (51 To 51024): terminal, 7: recovery acknowledgment signal, 71, 73: processing request flow from the terminal, 72 and
74: flow of processing result notification from CPU, 75 to 77: access control message, 78 to 711: data flow, 712: recovery message, 713: processing request flow, 714, 715: processing result flow,
8a to 8h: CCU.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 河野 克己 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (72)発明者 鈴木 靖雄 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (72)発明者 織茂 昌之 神奈川県川崎市麻生区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (56)参考文献 特開 平1−251158(JP,A) 特開 昭60−101665(JP,A) 特開 昭61−260349(JP,A) 特開 昭55−76466(JP,A) 特開 昭62−264355(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 15/163──────────────────────────────────────────────────続 き Continued on the front page (72) Katsumi Kono, Inventor System Development Laboratory, Hitachi, Ltd. 1099, Ozenji, Aso-ku, Kawasaki, Kanagawa Prefecture (72) Inventor Yasuo Suzuki 1099, Ozenji, Aso-ku, Aso-ku, Kawasaki, Kanagawa, Inc. Hitachi, Ltd. System Development Laboratory (72) Inventor Masayuki Orimo 1099 Ozenji, Aso-ku, Kawasaki City, Kanagawa Prefecture Hitachi, Ltd. System Development Laboratory Co., Ltd. (56) References JP-A-1-251158 (JP, A) JP-A-60-101665 (JP, A) JP-A-61-260349 (JP, A) JP-A-55-76466 (JP, A) JP-A-62-264355 (JP, A) (58) Fields investigated (Int) .Cl. 6 , DB name) G06F 15/163

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のCPUと複数のデバイスを有し、該複
数のデバイスのいずれもが二つ以上のCPUと接続されて
構成されるシステムにおいて、前記複数のデバイスを複
数のグループに分割し、各グループを前記各CPU毎の専
用グループとして、該グループを占有するCPUがダウン
するか、または、該グループに属するデバイスとの接続
に異常が生じた場合に限り、当該グループまたは当該グ
ループに属するデバイスへのアクセス権が、所定の他の
CPUに生じるようにしたことを特徴とする共有デバイス
のアクセス管理方式。
In a system having a plurality of CPUs and a plurality of devices, each of which is connected to two or more CPUs, the plurality of devices are divided into a plurality of groups. Each group as a dedicated group for each CPU, belonging to the group or the group only when the CPU occupying the group goes down or an abnormality occurs in connection with a device belonging to the group. If access to the device is
An access control method for shared devices, which is generated in the CPU.
【請求項2】前記ダウン状態または接続異常状態から回
復したCPUの所定グループへのアクセスが、現在アクセ
ス権を有する他のCPUからのアクセス権放棄信号を受け
て初めて開始されることを特徴とする請求項1記載の共
有デバイスのアクセス管理方式。
2. An access to a predetermined group of CPUs recovered from the down state or abnormal connection state is started only upon receiving an access right relinquish signal from another CPU having the current access right. The access management method for a shared device according to claim 1.
【請求項3】前記デバイスがブロック分割された共有メ
モリであることを特徴とする、請求項1または2記載の
共有デバイスのアクセス管理方式。
3. The access management method for a shared device according to claim 1, wherein said device is a shared memory divided into blocks.
【請求項4】複数のCPUと複数のデバイスを有し、該複
数のデバイスのいずれもが二つ以上のCPUと接続されて
構成されるシステムにおいて、特に前記デバイスがブロ
ック分割された共有メモリである場合に、分割した共有
メモリの各部分を前記各CPU毎の専用領域とし、該領域
を専有するCPUがダウンした場合に限り、当該領域への
アクセス権を所定の他のCPUに生じるようにするととも
に、前記複数のCPUの内部メモリに前記共有メモリの複
製を持たせて、メモリ書込み時に前記専用領域と前記複
製とに同一内容を書込み、読出し時には前記専用領域内
データと前記複製内データとを比較し、不一致がある場
合には前記共有メモリの内容が破壊されたと判断し、前
記複製に基づいて当該領域を復旧することを特徴とする
共有デバイスのアクセス管理方式。
4. In a system having a plurality of CPUs and a plurality of devices, and each of the plurality of devices is connected to two or more CPUs, in particular, the device is a shared memory divided into blocks. In some cases, each part of the divided shared memory is set as a dedicated area for each CPU, and only when the CPU that occupies the area goes down, the right to access the area is given to another predetermined CPU. In addition, the internal memory of the plurality of CPUs is provided with a copy of the shared memory, and the same contents are written in the dedicated area and the copy at the time of memory writing, and the data in the dedicated area and the data in the copy are written at the time of reading. Comparing the contents of the shared memory with each other and, if there is a mismatch, determining that the content of the shared memory has been destroyed and restoring the area based on the copy. .
JP25063188A 1988-10-04 1988-10-04 Access control method for shared devices Expired - Fee Related JP2767831B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25063188A JP2767831B2 (en) 1988-10-04 1988-10-04 Access control method for shared devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25063188A JP2767831B2 (en) 1988-10-04 1988-10-04 Access control method for shared devices

Publications (2)

Publication Number Publication Date
JPH0296868A JPH0296868A (en) 1990-04-09
JP2767831B2 true JP2767831B2 (en) 1998-06-18

Family

ID=17210727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25063188A Expired - Fee Related JP2767831B2 (en) 1988-10-04 1988-10-04 Access control method for shared devices

Country Status (1)

Country Link
JP (1) JP2767831B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444668B2 (en) * 2003-05-29 2008-10-28 Freescale Semiconductor, Inc. Method and apparatus for determining access permission

Also Published As

Publication number Publication date
JPH0296868A (en) 1990-04-09

Similar Documents

Publication Publication Date Title
US5845061A (en) Redundant client server system
US6266785B1 (en) File system filter driver apparatus and method
JP3047275B2 (en) Backup switching control method
US5826021A (en) Disconnected write authorization in a client/server computing system
US7490205B2 (en) Method for providing a triad copy of storage data
US6622263B1 (en) Method and apparatus for achieving system-directed checkpointing without specialized hardware assistance
US5566297A (en) Non-disruptive recovery from file server failure in a highly available file system for clustered computing environments
US5784617A (en) Resource-capability-based method and system for handling service processor requests
US6230246B1 (en) Non-intrusive crash consistent copying in distributed storage systems without client cooperation
US6237108B1 (en) Multiprocessor system having redundant shared memory configuration
EP1001343B1 (en) Highly available asynchronous I/O for clustered computer systems
US7093163B2 (en) Processing takeover method in multiple computer system
WO2023185802A1 (en) Data processing method and apparatus
CA2241861C (en) A scheme to perform event rollup
JP2767831B2 (en) Access control method for shared devices
CN101448028A (en) Method for protecting continuous data, device and system thereof
CN112202601B (en) Application method of two physical node mongo clusters operated in duplicate set mode
JP2001109642A (en) Cluster system and data copying method therefor
JP3354045B2 (en) System backup method
Sens The performance of independent checkpointing in distributed systems
KR20000032797A (en) Apparatus and method for processing billing data when occurring abnormality of billing disk of electronic exchange system
JPH09293011A (en) File exclusive control processor and its fault restoring system
CN100334554C (en) A method of standby and controlling load in distributed data processing system
CN117555493B (en) Data processing method, system, device, storage medium and electronic equipment
CN116578446B (en) Virtual machine backup method, device and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees