JPH0612388A - Access system for decentralized file - Google Patents

Access system for decentralized file

Info

Publication number
JPH0612388A
JPH0612388A JP4167273A JP16727392A JPH0612388A JP H0612388 A JPH0612388 A JP H0612388A JP 4167273 A JP4167273 A JP 4167273A JP 16727392 A JP16727392 A JP 16727392A JP H0612388 A JPH0612388 A JP H0612388A
Authority
JP
Japan
Prior art keywords
file
computer
block
access
contents
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
JP4167273A
Other languages
Japanese (ja)
Inventor
Yasuhiro Asakura
康裕 朝倉
Kazuhisa Eguchi
和久 江口
Masayuki Orimo
昌之 織茂
Shigeki Hirasawa
茂樹 平澤
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 JP4167273A priority Critical patent/JPH0612388A/en
Publication of JPH0612388A publication Critical patent/JPH0612388A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

PURPOSE:To speed up processing by reducing the load on a line and decreasing the frequency of input to and output from an external storage device in the decentralized file system. CONSTITUTION:One block in a file of another computer on a network is inputted from a terminal device 16. If, however, the block is not existed in the memory 15 of an access request source computer 11, the contents of the block are sent from a computer where the desired file to be accessed is existed and the contents while sent back to the terminal device 16 are entered into the memory 15. When a request for input to the block is made thereafter, the contents of the memory 15 are only sent back to the terminal device 16 to complete the access processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、分散ファイルシステム
において、例えば、他のコンピュータへファイルをコピ
ーしたり、他のコンピュータのデータベースをアクセス
する時、回線の負荷を軽減し、更に、他のコンピュータ
システムのデータベースアクセス回数を少なくすること
によって、高速に処理することのできるアクセス処理方
式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed file system in which, for example, when a file is copied to another computer or when a database of another computer is accessed, the load on the line is reduced, and further, the other computer. The present invention relates to an access processing method capable of high-speed processing by reducing the number of database accesses of the system.

【0002】[0002]

【従来の技術】分散ファイルシステムにおいて、ネット
ワーク上の他のコンピュータのファイルをアクセスする
場合、従来の技術では一般に、ユーザプログラムからア
クセス要求がある度に、アクセス要求元コンピュータか
らファイルの存在するコンピュータにデータ送信要求を
行い、送られてきたデータをユーザプログラムに返して
いた。この方式では、アクセスが頻繁に行われると、回
線の負荷が増大し、ユーザから見たアクセス速度が低下
してしまうという不都合があった。そこで、特開平3−
263940号公報では、遠方のホストコンピュータの
ファイルに入力要求があった場合、中継機の外部記憶装
置上にそのファイルをコピーしておき、以降そのファイ
ルに対する入力は中継機の外部記憶装置にコピーしてあ
るファイルをアクセスするというものであった。
2. Description of the Related Art In a distributed file system, when a file of another computer on a network is accessed, in the conventional technique, generally, every time an access request is made by a user program, the access request source computer makes a change to a computer where the file exists. A data transmission request was made and the transmitted data was returned to the user program. In this method, if the access is frequent, the load on the line is increased, and the access speed seen from the user is reduced. Therefore, Japanese Patent Laid-Open No. 3-
In Japanese Patent No. 263940, when an input request is made to a file of a remote host computer, the file is copied to the external storage device of the relay machine, and thereafter, the input to the file is copied to the external storage device of the relay machine. It was to access a certain file.

【0003】[0003]

【発明が解決しようとする課題】上記特開平3−263
940号公報の技術では、初めの1ブロックの入力をす
る時に、中継機は従来通り1ブロックの内容を中継する
動作と、ファイルを外部記憶装置にコピーする動作が必
要である。このコピーは、ファイルが大きくなると回線
の負荷が増大し、外部記憶装置にコピーするため中継機
の負荷も増大する。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
In the technique of Japanese Patent Publication No. 940, when the input of the first one block is performed, the relay machine needs the operation of relaying the content of the one block and the operation of copying the file to the external storage device as in the conventional case. With this copy, the line load increases as the file size increases, and the load on the relay machine also increases because the file is copied to the external storage device.

【0004】このコピーに要する時間を削減し、より高
速にアクセスを行う手段を提供するのが本発明の目的で
ある。
It is an object of the present invention to reduce the time required for this copying and to provide a means for accessing at higher speed.

【0005】[0005]

【課題を解決するための手段】本発明の手段を図1によ
り説明する。図1は、本発明のブロック図である。11
はアクセス要求元コンピュータ、12はアクセスしたい
ファイルが存在するコンピュータ、13は伝送路(回
線)を表す。
The means of the present invention will be described with reference to FIG. FIG. 1 is a block diagram of the present invention. 11
Is an access request source computer, 12 is a computer in which a file to be accessed exists, and 13 is a transmission line.

【0006】本発明は、図1に示すファイル14のある
ブロックを端末装置から入力したい場合、アクセス要求
元コンピュータ11の記憶装置(メモリ)15にそのブ
ロックが存在しない時は、アクセスしたいファイルが存
在するコンピュータ12からそのブロックの内容を送信
してもらい、それを端末装置16に返すと同時に、メモ
リ15にその内容を載せておく。以降そのブロックに対
して入力要求があった場合は、そのメモリ15の内容を
端末装置16に返すだけでアクセス処理を終了する。ま
た、更新要求があった場合は、アクセス要求元コンピュ
ータ11から送信された情報によって、アクセスしたい
ファイル14が存在するコンピュータ12はファイル1
4のあるブロックを更新する。そして、そのブロックの
ファイル内の位置を表す番号をネットワーク上の全ての
コンピュータにブロードキャストをし、それを受信した
コンピュータは、その番号のブロックをメモリ15に載
せている場合、そのメモリ内容を無効とする。
According to the present invention, when a certain block of the file 14 shown in FIG. 1 is desired to be input from the terminal device and the block does not exist in the storage device (memory) 15 of the access request source computer 11, the file to be accessed exists. The computer 12 sends the contents of the block to the terminal device 16 and at the same time stores the contents in the memory 15. When an input request is made to the block thereafter, the access processing is ended simply by returning the contents of the memory 15 to the terminal device 16. If there is an update request, the computer 12 in which the file 14 desired to be accessed exists according to the information transmitted from the access request source computer 11.
Update the block with 4. Then, the number representing the position of the block in the file is broadcast to all the computers on the network, and the computer receiving the block invalidates the memory contents when the block of the number is placed in the memory 15. To do.

【0007】[0007]

【作用】上述したように、アクセス要求があった場合、
回線上に流れるデータは目的とするブロックの内容だけ
である。従って、ファイルの不要な部分のデータが回線
上に流れることがないので、回線の負荷が軽減する。ま
た、データを外部記憶装置にコピーせずメモリに載せて
おくだけなので、以降そのブロックに対する入力はメモ
リをアクセスするだけで実現できる。
As described above, when there is an access request,
The data that flows on the line is only the contents of the target block. Therefore, the data of the unnecessary portion of the file does not flow on the line, which reduces the load on the line. Further, since the data is not copied to the external storage device but is simply stored in the memory, the input to the block can be realized by simply accessing the memory.

【0008】さらに、更新要求があった場合は、ファイ
ルコピーをせずブロック番号を連絡するだけなので、回
線の負荷を大幅に軽減できる。
Further, when an update request is made, the file number is not copied and only the block number is reported, so the load on the line can be greatly reduced.

【0009】[0009]

【実施例】以下、本発明の実施例を説明する。図2はマ
ルチコンピュータシステムの一例を示すもので、複数の
コンピュータ21,22,23・・・が伝送路210を
介して接続され、相互にデータを蓄積するための外部記
憶装置24,25,26・・・には、ファイルA,ファ
イルB,ファイルC・・・が存在している。また、それ
ぞれのコンピュータに、ファイルのアクセス内容を一時
的に保存しておくための記憶装置27,28,29・・
・が存在する。
EXAMPLES Examples of the present invention will be described below. 2 shows an example of a multi-computer system, in which a plurality of computers 21, 22, 23, ... Are connected via a transmission line 210 and external storage devices 24, 25, 26 for mutually storing data. .. exist in files A, B, C ... Further, storage devices 27, 28, 29 for temporarily storing the access contents of the files in the respective computers.
・ There exists.

【0010】図3は、記憶装置27,28,29の内容
である。ファイル管理テーブルは、そのファイルが属し
ているコンピュータの番号であるOPS番号、そのファ
イルが格納されている装置番号、ファイル名称、ファイ
ルの内容が保持されているバッファの番地(アドレス)
からなる。ファイルの内容はブロック単位に分割して保
持してあり、ブロック管理テーブルはブロック番号と、
記憶装置内のブロックの内容が有効であるかを示すブロ
ックステータスからなる。当該ブロックの検索はブロッ
ク番号を用いたハッシュ法を用いて即時に行われる。
FIG. 3 shows the contents of the storage devices 27, 28 and 29. The file management table has an OPS number, which is the number of the computer to which the file belongs, a device number in which the file is stored, a file name, and an address (address) of a buffer holding the contents of the file.
Consists of. The contents of the file are divided and held in block units, and the block management table stores the block numbers and
It consists of a block status indicating whether the contents of the block in the storage device are valid. The search for the block is immediately performed by using the hash method using the block number.

【0011】異なるコンピュータのファイルをアクセス
する場合、伝送路210を通じてアクセス要求を行い、
ファイルの存在するコンピュータ側で外部記憶装置へア
クセスし、アクセス内容を伝送路210を通じて送り返
す。送られてきたアクセス内容は、ブロック番号から求
めたハッシュ値に対応する記憶装置27,28,29内
のバッファに格納される。格納された後で、バッファに
格納されているデータをアクセスする場合は自コンピュ
ータ内の記憶装置27,28,29から当該データを転
送してくるだけでデータを得ることができる。この際、
他コンピュータのファイルをアクセスするにもかかわら
ず、伝送路210を通じたデータの送受信は一切行われ
ない。また、外部記憶装置に対するアクセスも必要とし
ない。
When accessing files of different computers, an access request is made through the transmission line 210,
The computer in which the file exists accesses the external storage device, and the access contents are sent back through the transmission path 210. The sent access contents are stored in the buffers in the storage devices 27, 28 and 29 corresponding to the hash value obtained from the block number. When the data stored in the buffer is accessed after being stored, the data can be obtained by simply transferring the data from the storage devices 27, 28, 29 in the own computer. On this occasion,
No data is transmitted or received through the transmission path 210 even though the file of another computer is accessed. Also, no access to the external storage device is required.

【0012】自コンピュータ内の記憶装置に蓄えられた
アクセス内容を利用できるのはファイルの入力アクセス
に限られる。これは、出力アクセスの場合は他コンピュ
ータの外部記憶装置に存在するアクセス対象ファイルの
内容を更新する必要があるためである。また、ファイル
を更新した場合には、記憶装置に蓄えられている当該ブ
ロックの内容は更新前データであるため、伝送路210
を通じて全てのコンピュータに当該ブロックステータス
をブロックの内容が無効であることを示す値に変更する
ことを依頼(ブロードキャスト)する。依頼するために
は、OPS番号、ファイル名称、無効にするブロック番
号が必要であり、伝送路210を通じて連絡される。た
だし、出力アクセスを行ったコンピュータではアクセス
完了時に更新後データを記憶装置に格納するため、この
ブロックの内容は無効とならない。
The access contents stored in the storage device of the own computer can be used only for the file input access. This is because in the case of output access, it is necessary to update the contents of the access target file existing in the external storage device of another computer. Further, when the file is updated, the content of the block stored in the storage device is the pre-update data, so that the transmission path 210
Requests (broadcasts) all computers to change the block status to a value indicating that the contents of the block are invalid. In order to make a request, an OPS number, a file name, and a block number to be invalidated are necessary, and they are notified via the transmission line 210. However, since the computer that has performed the output access stores the updated data in the storage device when the access is completed, the contents of this block are not invalidated.

【0013】以上のような処理方式により、一度アクセ
スした他コンピュータのファイルのブロックは2度目以
降は入力する際に、伝送路を通じた送受信や外部記憶装
置へのアクセスを必要としない。この機能を利用した業
務としては、同一ブロックの異なるレコードを頻繁にア
クセスすることが必要であるブロッキング数の多いファ
イルを扱う場合、ファイルに新たにデータを一括作成し
た後にそのデータを検索するような場合、ファイル中の
同一データを一日に何度もアクセスする必要がある場
合、等が特にアクセスの高速化の効果を発揮するものと
して考えられる。
According to the above processing method, when a block of a file of another computer that has been accessed once is input for the second time and thereafter, transmission / reception via a transmission line and access to an external storage device are not required. As a business that uses this function, when handling a file with a large number of blockings that requires frequent access to different records in the same block, you may create new data in the file and then search for that data. In this case, when it is necessary to access the same data in the file many times a day, it is considered that the speed-up of access is particularly effective.

【0014】[0014]

【発明の効果】以上述べたように、本発明においては、
アクセスの高速化のために中継機にファイルをコピーす
る、等の回線に負荷をかけるような特別な処理を行うこ
となく、通常どうりにアクセスしながら、高速化の効果
をもたらすことができる。
As described above, according to the present invention,
It is possible to bring about an effect of speeding up while normally accessing without any special processing such as copying a file to a repeater for speeding up of access and putting a load on the line.

【0015】また、データ更新時に記憶装置に保存した
ブロックを無効とする処理は、送信データ量が少ないた
め、回線に負荷を与えず、既存の自律分散機能のブロー
ドキャストを使用できるため、オーバヘッドが少ない処
理となっている。
Further, the processing for invalidating the block stored in the storage device at the time of updating the data does not impose a load on the line because the amount of transmitted data is small, and the existing autonomous distributed function broadcast can be used, so that the overhead is small. It has been processed.

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

【図1】本発明のブロック図である。FIG. 1 is a block diagram of the present invention.

【図2】本発明の実施例を示す図である。FIG. 2 is a diagram showing an example of the present invention.

【図3】本発明の記憶装置の管理テーブルを示す図であ
る。
FIG. 3 is a diagram showing a management table of a storage device of the present invention.

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

11…アクセス要求元コンピュータ、 12…アクセスしたいファイルが存在するコンピュー
タ、 13…伝送路、 14…ファイル、 15…記憶装置、 16…端末装置、 21,22,23…コンピュータ、 24,25,26…外部記憶装置、 27,28,29…記憶装置、 210…伝送路、 31…ファイル管理テーブル、 32…OPS番号、 33…装置番号、 34…ファイル名称、 35…バッファアドレス、 36…ブロック管理テーブル、 37…ブロック番号、 38…ブロックステータス、 39…ロックの内容。
11 ... Access request source computer, 12 ... Computer in which file to be accessed exists, 13 ... Transmission line, 14 ... File, 15 ... Storage device, 16 ... Terminal device, 21, 22, 23 ... Computer, 24, 25, 26 ... External storage device, 27, 28, 29 ... Storage device, 210 ... Transmission line, 31 ... File management table, 32 ... OPS number, 33 ... Device number, 34 ... File name, 35 ... Buffer address, 36 ... Block management table, 37 ... Block number, 38 ... Block status, 39 ... Lock contents.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 平澤 茂樹 神奈川県川崎市麻生区王禅寺1099番地株式 会社日立製作所システム開発研究所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shigeki Hirasawa 1099 Ozenji, Aso-ku, Kawasaki-shi, Kanagawa Stock Company Hitachi Systems Development Laboratory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数のコンピュータで構成され、あるコン
ピュータの方から他のコンピュータのファイルをアクセ
スする分散ファイルシステムにおいて、アクセス依頼元
コンピュータのメモリ上に、他のコンピュータのファイ
ルをアクセスした際にアクセスした内容を記録しておく
ことにより、次にそのファイルの同一部分をアクセスし
たい時に、他のコンピュータまでアクセスすることな
く、自コンピュータのメモリを参照することによってア
クセスを終了することを特徴とする分散ファイルのアク
セス方式。
1. A distributed file system comprising a plurality of computers, wherein one computer accesses a file of another computer, and when a file of another computer is accessed on a memory of an access request source computer. The distribution is characterized in that when the user wants to access the same portion of the file next time, he / she can access the same part of the file by referring to the memory of the own computer without accessing the other computer. File access method.
【請求項2】分散ファイルが更新された場合に、更新さ
れたことを、ネットワーク上の全てのコンピュータに連
絡し、それを受信したコンピュータのメモリ上に更新さ
れた部分の内容が記録されているときは、その内容を無
効とすることによって、ネットワーク上のコンピュータ
からも同時に同一ファイルを更新できることを特徴とす
る分散ファイルのアクセス方式。
2. When the distributed file is updated, all the computers on the network are notified of the update, and the contents of the updated part are recorded in the memory of the computer that receives the update. In this case, by invalidating the contents, the distributed file access method is characterized in that the same file can be updated at the same time from a computer on the network.
JP4167273A 1992-06-25 1992-06-25 Access system for decentralized file Pending JPH0612388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4167273A JPH0612388A (en) 1992-06-25 1992-06-25 Access system for decentralized file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4167273A JPH0612388A (en) 1992-06-25 1992-06-25 Access system for decentralized file

Publications (1)

Publication Number Publication Date
JPH0612388A true JPH0612388A (en) 1994-01-21

Family

ID=15846690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4167273A Pending JPH0612388A (en) 1992-06-25 1992-06-25 Access system for decentralized file

Country Status (1)

Country Link
JP (1) JPH0612388A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1021134A (en) * 1996-07-04 1998-01-23 Sharp Corp Gate way device, client computer and distributed file system connecting them
US6343316B1 (en) 1998-02-13 2002-01-29 Nec Corporation Cooperative work support system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1021134A (en) * 1996-07-04 1998-01-23 Sharp Corp Gate way device, client computer and distributed file system connecting them
US6343316B1 (en) 1998-02-13 2002-01-29 Nec Corporation Cooperative work support system

Similar Documents

Publication Publication Date Title
US5724578A (en) File managing system for managing files shared with a plurality of users
CN1531303B (en) Caching system and method at user terminal without protocol concerned
US5511196A (en) Method and system in a data processing system for the enhancement of relationships between reference objects in an object oriented environment and a data object outside an object oriented environment
US20020083030A1 (en) Performing event notification in a database having a distributed web cluster
US6711559B1 (en) Distributed processing system, apparatus for operating shared file system and computer readable medium
US20010027457A1 (en) Method and apparatus for storing changes to file attributes without having to store an additional copy of the file contents
US8046421B2 (en) High performance storage access environment
US20190347167A1 (en) Primary Node-Standby Node Data Transmission Method, Control Node, and Database System
JP3290801B2 (en) Resource location detection method
JPH08241186A (en) Unit and method for buffer memory management
JPH07239808A (en) Distributed data managing system
JPH0612388A (en) Access system for decentralized file
JP3122606B2 (en) Message reception control method
GB2222708A (en) Data processing system
JPH0652119A (en) Replication file referencing system
JPH0844670A (en) File managing method, computer system using the same and operating method for computer system
JPS60260253A (en) Electronic mail control system
CN114328364B (en) Data transmission method, device and equipment in full text search engine and storage medium
JPH06259303A (en) Decentralized file system
JP2787107B2 (en) Buffer control system and device
JPH11238047A (en) Distributed common memory system and recording medium which records program and which machine can read
JP2517851B2 (en) Parallel priority control method
JPH086838A (en) Distribusion system
JP2994327B2 (en) Data relay device
JPS62160545A (en) System for managing unused area of direct access storage device