JPH10326217A - Remote file inputting and outputting method - Google Patents

Remote file inputting and outputting method

Info

Publication number
JPH10326217A
JPH10326217A JP9136434A JP13643497A JPH10326217A JP H10326217 A JPH10326217 A JP H10326217A JP 9136434 A JP9136434 A JP 9136434A JP 13643497 A JP13643497 A JP 13643497A JP H10326217 A JPH10326217 A JP H10326217A
Authority
JP
Japan
Prior art keywords
input
output
remote file
size
buffer size
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.)
Granted
Application number
JP9136434A
Other languages
Japanese (ja)
Other versions
JP3785741B2 (en
Inventor
Aki Watanabe
亜紀 渡辺
Masaaki Shimizu
正明 清水
Toyohiko Kagimasa
豊彦 鍵政
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 JP13643497A priority Critical patent/JP3785741B2/en
Publication of JPH10326217A publication Critical patent/JPH10326217A/en
Application granted granted Critical
Publication of JP3785741B2 publication Critical patent/JP3785741B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain an efficient inputting and outputting method by finding a transfer unit according to the size of data requested to be inputted and outputted, adjusting the transfer unit according to the success rate of data transfer, and also adjusting the constitution of transmit and receive date storage areas according to the distribution of transfer units of remote file input/output requests. SOLUTION: Each time a request to input or output a remote file is made, a transfer unit is determined according to the size of the data requested to be inputted or outputted and adjusted according to the success rate of data transfer, and the constitution of transmit and receive data storage areas is adjusted according to the distribution of remote file input/output requests that a client computer is processing. In this system, a transmit data storage area 131 and a receive data storage area 132 are controlled on a client 100 according to a transmit and receive data storage area control table 180. On a server 200, on the other hand, a transmit data storage area 231 and a receive data storage area 232 are controlled with a transmit and receive data storage area control table 280.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、計算機システム間
においてリモートファイルを入出力する方法に係わる。
The present invention relates to a method for inputting and outputting a remote file between computer systems.

【0002】[0002]

【従来の技術】パーソナルコンピュータ,ワークステー
ションやメインフレーム等の様々な規模の計算機システ
ムがネットワークにより接続された分散コンピューティ
ング環境が構築されている。このような分散コンピュー
ティング環境では、通常、様々な情報が分散ファイルシ
ステムにより共有されている。特に、米国 サン マイ
クロシステムズ(Sun Microsystems)社が開発した分散
ファイルシステムの仕様(倉骨彰訳/砂原秀樹監訳「N
FS & NIS」アスキー出版局,pp.183−21
8(1992)(原著:Managing NFS and NIS 、原著
者:Hal Stern、原発行所:O'Reilly & Associates,In
c.)は業界標準として分散ファイルシステムに使用され
ている。
2. Description of the Related Art Distributed computing environments in which computer systems of various scales such as personal computers, workstations, and mainframes are connected by a network have been constructed. In such a distributed computing environment, various information is usually shared by a distributed file system. In particular, the specification of a distributed file system developed by Sun Microsystems (USA)
FS & NIS ”ASCII Publishing Bureau, pp. 183-21
8 (1992) (Original: Managing NFS and NIS, Original author: Hal Stern, Original publisher: O'Reilly & Associates, In
c.) is used for distributed file systems as an industry standard.

【0003】この分散ファイルシステムにおいて、クラ
イアント計算機からサーバ計算機への入出力要求はバッ
ファサイズと呼ばれる単位で読み出し/書き込み処理さ
れる。このバッファサイズはネットワークの物理的なパ
ケットの転送単位、及び、計算機システムのディスクの
入出力単位とは独立である。1985年にリリースされ
たバージョン2ではバッファサイズの上限は8キロバイ
トであった。信頼性の高いネットワークを利用できるよ
うになり、また、動画像データといった数メガバイト程
度の大きなデータを転送したりするようになったため
に、1993年にリリースされたバージョン3ではこの
上限値が除去され、個々の実装により任意の値をバッフ
ァサイズとして設定できるようになった。
In this distributed file system, input / output requests from a client computer to a server computer are read / written in units called buffer sizes. This buffer size is independent of the physical packet transfer unit of the network and the disk input / output unit of the computer system. Version 2, released in 1985, had a buffer size limit of 8 kilobytes. With the availability of highly reliable networks and the transfer of large data of several megabytes, such as moving image data, this upper limit was removed in version 3 released in 1993. It is now possible to set an arbitrary value as the buffer size depending on the individual implementation.

【0004】バージョン2においてバッファサイズは、
ネットワークやクライアント計算機やサーバ計算機の性
能に基づいて、入出力処理が行われる時点ではなく、計
算機管理者がファイルシステムをマウントする際に設定
され、一旦設定されたバッファサイズはそのファイルシ
ステムがマウントされている間は一定であった。バージ
ョン3においては、計算機管理者がファイルシステムに
対してバッファサイズの最大値および好ましいと考える
値を設定し、クライアントが入出力を行う際にそれを知
ることができるようになっている。しかし、これらの値
はファイルシステムの静的な情報として保持されている
のであり、動的に変更されることはない。
In version 2, the buffer size is
Based on the performance of the network, client computer, and server computer, it is set when the file system is mounted by the computer administrator, not at the time when input / output processing is performed, and the buffer size once set is used when the file system is mounted. During that time it was constant. In version 3, the computer administrator sets the maximum value of the buffer size and a value considered preferable for the file system, and can know the values when the client performs input / output. However, these values are stored as static information of the file system and are not dynamically changed.

【0005】[0005]

【発明が解決しようとする課題】ファイルシステムの中
には、画像データのような数メガバイトのサイズをもつ
大きなファイルからプログラムのような数キロバイトの
比較的小さなファイルなど大小様々な大きさのファイル
が混在する。そのため、ファイルシステムをマウントす
る際にバッファサイズを決定してしまったり、ファイル
システムの好ましいバッファサイズを静的に決定してし
まうと、バッファサイズを大きく設定した場合には小さ
なサイズの入出力要求にとっては大きすぎるために、バ
ッファサイズを小さく設定した場合には大きなサイズの
入出力要求にとって小さすぎるために、いずれも入出力
要求の処理性能が低下してしまうという問題があった。
In a file system, files of various sizes, such as a large file having a size of several megabytes such as image data and a relatively small file having a size of several kilobytes such as a program, are included. Mix. Therefore, if the buffer size is determined when mounting the file system, or if the preferred buffer size of the file system is statically determined, if the buffer size is set to a large value, it will Is too large, and if the buffer size is set to be small, it is too small for a large-sized input / output request.

【0006】例えば、バッファサイズが大きく設定され
ている場合に小さなデータのリモート入出力要求が生じ
ると、その入出力要求の処理は、バッファサイズのデー
タの入出力要求が蓄積されるまで、もしくは、この待ち
がタイムアウトするまで遅らせなければならない。ま
た、例えば、バッファサイズが小さく設定されている場
合に大きなデータのリモート入出力要求が生じると、そ
の入出力要求を処理するために小さなサイズの入出力要
求をいくつも出さなければならなくなってしまう。
For example, if a remote input / output request for small data occurs when the buffer size is set to be large, the processing of the input / output request is performed until the input / output request for data of the buffer size is accumulated, or This wait must be delayed until it times out. Also, for example, when a remote I / O request for large data occurs when the buffer size is set to be small, a number of small-sized I / O requests must be issued to process the I / O request. .

【0007】本発明の目的は、大きなデータ,小さなデ
ータの入出力が混在している場合においても効率的なリ
モートファイル入出力方法を提供することである。
An object of the present invention is to provide an efficient remote file input / output method even when input / output of large data and small data is mixed.

【0008】[0008]

【課題を解決するための手段】上記の目的達成のため
に、本発明のリモートファイル入出力方法では、クライ
アント計算機が新たなリモートファイル入出力要求を出
す際に、上記リモートファイル入出力要求が要求するデ
ータの大きさがある値以上である場合には、各々のリモ
ートファイル入力要求(リモートファイル出力要求)が
受信データ格納領域(送信データ格納領域)に一度に書
き込むことができるデータのサイズ(これを以後、入力
バッファサイズ(出力バッファサイズ)と呼ぶ)を、上
記リモートファイル入出力要求が入出力を要求するデー
タの大きさに基づいて設定する。
In order to achieve the above object, according to the remote file input / output method of the present invention, when a client computer issues a new remote file input / output request, the remote file input / output request is issued. If the size of the data to be transmitted is larger than a certain value, each remote file input request (remote file output request) can be written to the reception data storage area (transmission data storage area) at a time. Is hereinafter referred to as an input buffer size (output buffer size)) based on the size of the data requested to be input / output by the remote file input / output request.

【0009】上記送受信データ格納領域は、ある一定の
大きさの連続領域(メッセージバッファ)のリスト複数
種類から構成されている。その複数種類のメッセージバ
ッファリストには、計算機のメモリ管理の特性に基づい
て決定された大きさのメッセージバッファ(デフォルト
メッセージバッファ)のリストと、デフォルトメッセー
ジバッファの大きさの倍数であり、かつ、使用可能なネ
ットワークの最大データ転送サイズ以下であるという条
件を満たした大きさのメッセージバッファのリストが含
まれている。
The transmission / reception data storage area includes a plurality of types of lists of continuous areas (message buffers) having a certain size. The plurality of types of message buffer lists include a list of message buffers (default message buffers) of a size determined based on the memory management characteristics of the computer, and a multiple of the size of the default message buffer. It contains a list of message buffers that are large enough that they are less than or equal to the maximum possible data transfer size of the network.

【0010】上記リモートファイル入出力要求の入出力
バッファサイズは、入出力を要求するデータサイズがあ
らかじめ決められた値以下である場合には、デフォルト
メッセージバッファサイズに設定され、入出力を要求す
るデータサイズがあらかじめ決められた値より大きい場
合には、入出力を要求するデータサイズ以下であるメッ
セージバッファサイズの中の最大値に設定される。各リ
モートファイル入出力要求を処理する際には、上記リモ
ートファイル入出力要求の入出力バッファサイズと等し
いサイズのメッセージバッファのリストが使用される。
The input / output buffer size of the remote file input / output request is set to the default message buffer size when the data size of the input / output request is smaller than a predetermined value, and If the size is larger than a predetermined value, it is set to the maximum value among the message buffer sizes that are smaller than the data size required for input / output. When processing each remote file input / output request, a list of message buffers having the same size as the input / output buffer size of the remote file input / output request is used.

【0011】上記クライアント計算機は上記入力バッフ
ァサイズ(出力バッファサイズ)のデータの受信(送
信)にある基準以上失敗した場合に上記入力バッファサ
イズ(出力バッファサイズ)をより小さいメッセージバ
ッファサイズに設定し、上記入力バッファサイズ(出力
バッファサイズ)のデータの受信(送信)にある基準以
上成功した場合には上記入力バッファサイズ(出力バッ
ファサイズ)をより大きいメッセージバッファサイズに
設定する。
The client computer sets the input buffer size (output buffer size) to a smaller message buffer size when reception (transmission) of the data of the input buffer size (output buffer size) fails more than a certain standard. If the reception (transmission) of the data of the input buffer size (output buffer size) succeeds by a certain level or more, the input buffer size (output buffer size) is set to a larger message buffer size.

【0012】あるメッセージバッファサイズのリストの
使用率がある基準以下であり、かつ、他のメッセージバ
ッファサイズのリストの使用率がある基準以上である場
合には適当なサイズのメッセージバッファリストを新た
に作成する。
If the usage rate of a certain message buffer size list is lower than a certain reference and the usage rate of another message buffer size list is higher than a certain reference, a message buffer list of an appropriate size is newly added. create.

【0013】[0013]

【発明の実施の形態】次に、本発明によるリモートファ
イルの入出力方法の一実施例を図面を用いて詳細に説明
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of a remote file input / output method according to the present invention will be described in detail with reference to the drawings.

【0014】〔1〕構成の概略 図1は本発明によるリモートファイル入出力方法を実施
するクライアントサーバシステムの構成例を示してい
る。100はクライアント計算機(以下では簡単化のた
めにクライアントと呼ぶ)、200はサーバ計算機(以
下では簡単化のためにサーバと呼ぶ)、300はネット
ワーク、310はディスクを示している。クライアント
とサーバはネットワークにより接続されている。
[1] Outline of Configuration FIG. 1 shows an example of the configuration of a client server system that implements a remote file input / output method according to the present invention. 100 denotes a client computer (hereinafter, referred to as a client for simplicity), 200 denotes a server computer (hereinafter, referred to as a server for simplicity), 300 denotes a network, and 310 denotes a disk. The client and server are connected by a network.

【0015】クライアント100上では、OS110の
制御下において、ユーザプログラム120,クライアン
トリモートファイル入出力処理プログラム130,入出
力バッファ設定プログラム140,入出力バッファ更新
プログラム150,送受信データ格納領域調整プログラ
ム160が稼働しており、送信データ格納領域131と
受信データ格納領域132は送受信データ格納領域管理
表180により管理されている。
On the client 100, under the control of the OS 110, a user program 120, a client remote file input / output processing program 130, an input / output buffer setting program 140, an input / output buffer update program 150, and a transmission / reception data storage area adjustment program 160 operate. The transmission data storage area 131 and the reception data storage area 132 are managed by a transmission / reception data storage area management table 180.

【0016】サーバ200上では、OS210の制御下
において、リモートファイル入力処理プログラム23
0,送受信データ格納領域調整プログラム260が稼働
しており、送信データ格納領域231と受信データ格納
領域232は送受信データ格納領域管理表280により
管理されている。
On the server 200, under the control of the OS 210, the remote file input processing program 23
0, the transmission / reception data storage area adjustment program 260 is running, and the transmission data storage area 231 and the reception data storage area 232 are managed by the transmission / reception data storage area management table 280.

【0017】クライアント100がサーバ200へリモ
ートファイル出力(書き込み)要求を出すと、出力デー
タは送信データ格納領域132に書き込まれ、ネットワ
ーク300を介してサーバ200の受信データ格納領域
231に移動する。クライアント100がサーバ200
にリモートファイル入力(読み出し)要求を出すと、入
力データはサーバ200の送信データ格納領域232に
書き込まれ、データはネットワーク300を介して受信
データ格納領域131に移動する。
When the client 100 issues a remote file output (write) request to the server 200, the output data is written to the transmission data storage area 132 and moves to the reception data storage area 231 of the server 200 via the network 300. Client 100 is server 200
When a remote file input (read) request is issued to the server 200, the input data is written to the transmission data storage area 232 of the server 200, and the data moves to the reception data storage area 131 via the network 300.

【0018】〔2〕リモートファイル出力方法の実施例 次に具体的な例を挙げてリモートファイル出力方法の処
理の流れを示す。図2は、クライアント100上におい
てユーザプログラムがリモートファイル出力を要求した
例における、本発明のリモートファイル出力方法の主要
部分のタイムチャートを示している。タイムチャートは
クライアントリモートファイル入出力処理プログラム1
30(出力),サーバリモートフイル入出力処理プログラ
ム230(入力)の動作を示す。
[2] Embodiment of Remote File Output Method Next, the flow of the remote file output method will be described with reference to a specific example. FIG. 2 shows a time chart of a main part of the remote file output method of the present invention in an example in which a user program requests remote file output on the client 100. Time chart is client remote file I / O processing program 1
30 (output) and the operation of the server remote file input / output processing program 230 (input).

【0019】(1)リモートファイル出力要求400 クライアント100においてユーザプログラム120が
リモートファイル出力要求400を起こすと、クライア
ントリモートファイル入出力処理プログラム130が実
行される。
(1) Remote File Output Request 400 When the user program 120 makes a remote file output request 400 in the client 100, the client remote file input / output processing program 130 is executed.

【0020】図3はクライアントリモートファイル入出
力処理プログラム130(出力)の処理の流れを示す。
入出力バッファ設定プログラム140を実行し(ステッ
プ500)、リモートファイル出力要求400の出力バ
ッファサイズを設定する。図4は入出力バッファ設定プ
ログラム140の処理の流れを示している。
FIG. 3 shows a processing flow of the client remote file input / output processing program 130 (output).
The input / output buffer setting program 140 is executed (step 500), and the output buffer size of the remote file output request 400 is set. FIG. 4 shows the flow of processing of the input / output buffer setting program 140.

【0021】出力データサイズがある基準より小さいか
否かを調べ(ステップ600)、小さければ出力バッフ
ァサイズをデフォルトメッセージバッファサイズに設定
する(ステップ610)。出力データサイズがある基準
以上である場合には、送受信データ格納領域管理表18
0を参照し、出力データサイズ以上のメッセージバッフ
ァがある場合にはその最小のメッセージバッファサイズ
を、ない場合には最大のメッセージバッファサイズを出
力バッファサイズとして入出力バッファ管理表170に
設定する(ステップ620)。送受信データ格納領域管
理表180の出力バッファサイズの大きさのメッセージ
バッファのリストを使用するリモートファイル出力要求
の数を一つ増やす(ステップ621)。
It is checked whether or not the output data size is smaller than a certain reference (step 600). If it is smaller, the output buffer size is set to the default message buffer size (step 610). If the output data size is equal to or larger than a certain standard, the transmission / reception data storage area management table 18
0, if there is a message buffer larger than the output data size, the minimum message buffer size is set as the output buffer size in the input / output buffer management table 170 as the output buffer size otherwise (step 620). The number of remote file output requests that use the message buffer list of the output buffer size in the transmission / reception data storage area management table 180 is increased by one (step 621).

【0022】(2)データ送信401 クライアントリモートファイル入出力処理プログラム1
30は未出力データが存在するか否かを調べ(ステップ
501)、未出力データが存在しない場合にはクライア
ントリモートファイル入出力処理プログラム130を終
了する。未出力データが存在する場合には、リモートフ
ァイル出力要求400の出力バッファサイズを参照し
(ステップ502)、出力バッファサイズのデータを出
力バッファサイズの大きさのメッセージバッファに書き
込み(ステップ503)、書き込んだデータをリモート
ファイル出力要求先のサーバ200に送信し(ステップ
504)、送受信データ格納領域管理表180の出力バ
ッファサイズのメッセージバッファリストに関して、メ
ッセージバッファ使用率,メッセージバッファリスト使
用率を更新する(ステップ505)。そして、送受信デ
ータ格納領域調整プログラム160を実行し(ステップ
506)、サーバ200から出力バッファ転送成功/失
敗通知を受信することを待つ(ステップ507)。
(2) Data transmission 401 Client remote file input / output processing program 1
30 checks whether or not unoutput data exists (step 501). If no unoutput data exists, the client remote file input / output processing program 130 ends. If there is unoutput data, the output buffer size of the remote file output request 400 is referred to (step 502), and the data of the output buffer size is written to the message buffer of the output buffer size (step 503) and written. The data is transmitted to the remote file output request destination server 200 (step 504), and the message buffer usage rate and the message buffer list usage rate are updated for the message buffer list of the output buffer size in the transmission / reception data storage area management table 180 (step 504). Step 505). Then, the transmission / reception data storage area adjustment program 160 is executed (step 506), and the process waits until an output buffer transfer success / failure notification is received from the server 200 (step 507).

【0023】図5は送受信データ格納領域管理表180
の例である。図5はクライアント100のリモートファ
イル出力要求の80%が60キロバイトのメッセージバ
ッファを使用しており、1回のデータ送信において60
キロバイトのメッセージバッファの平均して8キロバイ
トしか使用していないことを示している。
FIG. 5 is a transmission / reception data storage area management table 180.
This is an example. FIG. 5 shows that 80% of the remote file output requests of the client 100 use a message buffer of 60 kilobytes, and 60% in one data transmission.
This shows that the kilobyte message buffer uses only 8 kilobytes on average.

【0024】図6は送受信データ格納領域調整プログラ
ム160の処理の流れを示している。使用率がある基準
以上であるメッセージバッファリストがあるか調べる
(ステップ700)。ある場合にはそのメッセージバッ
ファリストのメッセージバッファ使用率に基づき新しい
メッセージバッファリストを作成する(ステップ71
0)。使用率がある基準より小さく、かつ、使用してい
るリモートファイル出力要求がないメッセージバッファ
リストがあるか調べる(ステップ701)。ある場合に
はそのメッセージバッファリストを削除する(ステップ
720)。
FIG. 6 shows the flow of processing of the transmission / reception data storage area adjustment program 160. It is checked whether there is a message buffer list whose usage rate is higher than a certain reference (step 700). If there is, a new message buffer list is created based on the message buffer usage rate of the message buffer list (step 71).
0). It is checked whether there is a message buffer list in which the usage rate is smaller than a certain reference and there is no remote file output request being used (step 701). If there is, the message buffer list is deleted (step 720).

【0025】(3)データ受信402、データ転送成功
/失敗通知送信403 サーバ200は書き込みデータを受信すると、サーバリ
モートファイル入出力処理プログラム230を実行す
る。
(3) Data reception 402, data transfer success / failure notification transmission 403 Upon receiving the write data, the server 200 executes the server remote file input / output processing program 230.

【0026】図7はサーバリモートファイル入出力処理
プログラム(入力)を示している。送受信データ格納領
域管理表280を参照し、受信したデータのサイズ以上
のメッセージバッファがあるか調べる(ステップ80
0)。ない場合には転送失敗をクライアント100に通
知し(ステップ820)、サーバリモートファイル入出
力処理プログラム230を終了する。受信したデータの
サイズ以上のメッセージバッファがある場合には、その
中の最小のメッセージバッファにデータを読み出し(ス
テップ810)、送受信データ格納領域管理表280の
メッセージバッファ使用率とメッセージバッファリスト
使用率を更新する(ステップ811)。そして、送受信
データ格納領域調整プログラム160を実行し(ステッ
プ812)、クライアント100に転送成功を通知する
(ステップ813)。
FIG. 7 shows a server remote file input / output processing program (input). Referring to the transmission / reception data storage area management table 280, it is checked whether there is a message buffer larger than the size of the received data (step 80).
0). If not, the transfer failure is notified to the client 100 (step 820), and the server remote file input / output processing program 230 ends. If there is a message buffer larger than the size of the received data, the data is read out to the smallest one of the message buffers (step 810), and the message buffer usage rate and the message buffer list usage rate in the transmission / reception data storage area management table 280 are checked. Update (step 811). Then, the transmission / reception data storage area adjustment program 160 is executed (step 812), and the transfer success is notified to the client 100 (step 813).

【0027】(5)データ転送成功/失敗通知受信40
4 クライアント100がデータ転送成功/失敗通知を受信
すると、入出力バッファ管理表170のリモートファイ
ル出力要求400に関して転送成功率を更新し(ステッ
プ508)、入出力バッファ更新プログラム150を実
行する(ステップ509)。送信した出力バッファサイ
ズのデータすべてが受信されなかった場合には転送は失
敗したと見なす。入出力バッファ更新プログラム実行後
ステップ501に戻る。
(5) Data transfer success / failure notification reception 40
4 When the client 100 receives the data transfer success / failure notification, the transfer success rate is updated for the remote file output request 400 in the input / output buffer management table 170 (step 508), and the input / output buffer update program 150 is executed (step 509). ). If all of the transmitted data of the output buffer size has not been received, the transfer is considered to have failed. After executing the input / output buffer update program, the process returns to step 501.

【0028】図8は入出力バッファ管理表170の例で
ある。図8はリモートファイル入出力要求400の入出
力バッファサイズは4キロバイトであり、転送成功率は
95%であることを示している。
FIG. 8 shows an example of the input / output buffer management table 170. FIG. 8 shows that the input / output buffer size of the remote file input / output request 400 is 4 kilobytes and the transfer success rate is 95%.

【0029】図9は入出力バッファ更新プログラム15
0の処理の流れを示す。入出力バッファ更新プログラム
150は、入出力バッファの転送の成功率がある基準よ
り小さいか調べる(ステップ900)。小さい場合に
は、入出力データ格納領域管理表180を参照し、入出
力バッファサイズを現在よりも小さいメッセージバッフ
ァのサイズに設定する(ステップ901)。入出力バッ
ファの転送の成功率がある基準以上であるか調べる(ス
テップ902)。以上である場合には、入出力データ格
納領域管理表180を参照し、入出力バッファサイズを
現在よりも大きいメッセージバッファのサイズに設定す
る(ステップ903)。
FIG. 9 shows an input / output buffer update program 15.
0 shows the flow of processing. The input / output buffer update program 150 checks whether the transfer success rate of the input / output buffer is smaller than a certain standard (step 900). If the size is smaller, the I / O buffer size is set to a smaller message buffer size than the current one by referring to the I / O data storage area management table 180 (step 901). It is checked whether the success rate of the transfer of the input / output buffer is higher than a certain reference (step 902). If so, the input / output buffer size is set to the size of the message buffer larger than the current one by referring to the input / output data storage area management table 180 (step 903).

【0030】〔3〕リモートファイル入力方法の実施例 次に具体的な例を挙げてリモートファイル入力方法の処
理の流れを示す。図10はクライアント100上がリモ
ートファイル入力要求を出した例における、本発明のリ
モートファイル入力方法の主要部分のタイムチャートで
ある。タイムチャートはクライアントリモートファイル
入出力処理プログラム130(入力),サーバリモート
ファイル入力処理プログラム230(出力)の動作を示
す。
[3] Embodiment of Remote File Input Method Next, the flow of the remote file input method will be described with reference to a specific example. FIG. 10 is a time chart of a main part of the remote file input method of the present invention in the case where the client 100 issues a remote file input request. The time chart shows the operation of the client remote file input / output processing program 130 (input) and the server remote file input processing program 230 (output).

【0031】(1)リモートファイル入力要求1000 クライアント100のユーザプログラム120がリモー
トファイル入力要求1000を出すと、クライアントリ
モートファイル入出力処理プログラム130が実行され
る。
(1) Remote File Input Request 1000 When the user program 120 of the client 100 issues a remote file input request 1000, the client remote file input / output processing program 130 is executed.

【0032】図11はクライアントリモートファイル入
出力処理プログラム130(入力)の処理の流れを示
す。入出力バッファ調停プログラム140を実行し(ス
テップ1100)、リモートファイル入力要求1000
の入力バッファサイズを設定する。未入力データが存在
するか否かを調べ(ステップ1101)、未入力データ
が存在しない場合にはクライアントリモートファイル入
出力プログラム130を終了させる。未入力データが存
在する場合には、入出力バッファ管理表170のリモー
トファイル入力要求1000の入力バッファサイズを参
照し(ステップ1102)、リモートファイル入力要求
先のサーバ200に入力要求・入力バッファサイズを送
信する(ステップ1103)。
FIG. 11 shows the flow of processing of the client remote file input / output processing program 130 (input). The input / output buffer arbitration program 140 is executed (step 1100), and the remote file input request 1000 is executed.
Set the input buffer size of It is checked whether or not uninput data exists (step 1101). If there is no uninput data, the client remote file input / output program 130 is terminated. If there is uninput data, the input buffer size of the remote file input request 1000 is referred to in the input / output buffer management table 170 (step 1102), and the input request / input buffer size is transmitted to the remote file input request destination server 200. The data is transmitted (step 1103).

【0033】(3)リモートファイル入力要求・入力単
位受信1002 サーバリモートファイル入出力処理プログラム230は
クライアント100から送信されてきたリモートファイ
ル入力要求・入力バッファサイズを受信すると、サーバ
リモートファイル入出力処理プログラム230を実行す
る。
(3) Remote file input request / input unit reception 1002 When the server remote file input / output processing program 230 receives the remote file input request / input buffer size transmitted from the client 100, the server remote file input / output processing program 230 Execute 230.

【0034】図12はサーバリモートファイル入出力処
理プログラム230の処理の流れを示している。送受信
データ格納領域管理表280を参照し、受信した入力バ
ッファサイズ以下である最大のメッセージバッファを用
いてリモートファイル入力要求元のクライアント100
にデータを送信する(ステップ1200)。送受信デー
タ格納領域管理表280のメッセージバッファ使用率と
メッセージバッファリスト使用率を更新し(ステップ1
201)、送受信データ格納領域調整プログラム260
を実行する(ステップ1202)。
FIG. 12 shows the flow of processing of the server remote file input / output processing program 230. Referring to the transmission / reception data storage area management table 280, the client 100 that has issued the remote file input request uses the largest message buffer that is smaller than the received input buffer size.
(Step 1200). The message buffer usage rate and the message buffer list usage rate in the transmission / reception data storage area management table 280 are updated (step 1).
201), transmission / reception data storage area adjustment program 260
Is executed (step 1202).

【0035】(5)データ及びデータ転送成功/失敗通
知受信1004 クライアント100がデータ及びデータ転送成功/失敗
通知を受信すると、入力バッファサイズのメッセージバ
ッファに受信したデータを読み出し(ステップ110
5)、送受信データ格納領域管理表180のリモートフ
ァイル入力要求1000の入力バッファサイズのメッセ
ージバッファリストに関して、メッセージバッファ使用
率及びメッセージバッファリスト使用率を更新して(ス
テップ1105)、送受信データ格納領域調整プログラ
ム160を実行する(ステップ1106)。そして、入
出力バッファ管理表170のリモートファイル入力要求
1000の転送成功率を更新し(ステップ1107)、
入出力バッファ更新プログラム150を実行する(ステ
ップ1108)。受信したデータのサイズが入力バッフ
ァサイズよりも小さい場合には転送は失敗したと見な
す。入出力バッファ更新プログラム150を実行後ステ
ップ1102に戻る。
(5) Receipt of data and data transfer success / failure notification 1004 When the client 100 receives the data and data transfer success / failure notification, the received data is read into the message buffer of the input buffer size (step 110).
5) For the message buffer list of the input buffer size of the remote file input request 1000 in the transmission / reception data storage area management table 180, the message buffer usage rate and the message buffer list usage rate are updated (step 1105), and the transmission / reception data storage area adjustment is performed. The program 160 is executed (Step 1106). Then, the transfer success rate of the remote file input request 1000 in the input / output buffer management table 170 is updated (step 1107),
The input / output buffer update program 150 is executed (Step 1108). If the size of the received data is smaller than the input buffer size, the transfer is considered to have failed. After executing the input / output buffer update program 150, the process returns to step 1102.

【0036】[0036]

【発明の効果】本発明は、リモートファイルの入出力要
求が起きる毎に、入出力を要求するデータの大きさに基
づいて転送単位を決め、データ転送の成功率に基づいて
転送単位を調節し、クライアント計算機が処理している
リモートファイル入出力要求の転送単位の分布に応じて
送受信データ格納領域の構成を調節することにより効率
的なリモートファイル入出力が可能となる。
According to the present invention, each time a remote file input / output request occurs, the transfer unit is determined based on the size of the data requested to be input / output, and the transfer unit is adjusted based on the data transfer success rate. By adjusting the configuration of the transmission / reception data storage area in accordance with the distribution of the transfer unit of the remote file input / output request being processed by the client computer, efficient remote file input / output is possible.

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

【図1】本発明の一実施例のクライアントサーバシステ
ムの構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a client server system according to an embodiment of the present invention.

【図2】リモートファイル出力例のタイムチャート。FIG. 2 is a time chart of a remote file output example.

【図3】クライアントリモートファイル入出力処理プロ
グラム(出力)のフローチャート。
FIG. 3 is a flowchart of a client remote file input / output processing program (output).

【図4】入出力バッファ設定プログラムのフローチャー
ト。
FIG. 4 is a flowchart of an input / output buffer setting program.

【図5】送受信データ格納領域管理表の構造を示す説明
図。
FIG. 5 is an explanatory diagram showing the structure of a transmission / reception data storage area management table.

【図6】送受信データ格納領域調整プログラムのフロー
チャート。
FIG. 6 is a flowchart of a transmission / reception data storage area adjustment program.

【図7】サーバリモートファイル入出力処理プログラム
(入力)のフローチャート。
FIG. 7 is a flowchart of a server remote file input / output processing program (input).

【図8】入出力バッファ管理表の構造を示す説明図。FIG. 8 is an explanatory diagram showing the structure of an input / output buffer management table.

【図9】入出力バッファ更新プログラムのフローチャー
ト。
FIG. 9 is a flowchart of an input / output buffer update program.

【図10】リモートファイル入力例のタイムチャート。FIG. 10 is a time chart of a remote file input example.

【図11】クライアントリモートファイル入出力処理プ
ログラム(入力)のフローチャート。
FIG. 11 is a flowchart of a client remote file input / output processing program (input).

【図12】サーバリモートファイル入出力処理プログラ
ム(出力)のフローチャート。
FIG. 12 is a flowchart of a server remote file input / output processing program (output).

【符号の説明】 100…クライアント計算機、110…OS、120…
ユーザプログラム、130…クライアントリモートファ
イル入出力処理プログラム、131…送信データ格納領
域、132…受信データ格納領域、140…入出力バッ
ファ設定プログラム、150…入出力バッファ更新プロ
グラム、160…送受信データ格納領域調整プログラ
ム、170…入出力バッファ管理表、180…送受信デ
ータ格納領域管理表、200…サーバ計算機、210…
OS、230…リモートファイル入力処理プログラム、
231…送信データ格納領域、232…受信データ格納
領域、260…送受信データ格納領域調整プログラム、
280…送受信データ格納領域管理表、300…ネット
ワーク、310…ディスク。
[Description of References] 100: Client computer, 110: OS, 120:
User program, 130: client remote file input / output processing program, 131: transmission data storage area, 132: reception data storage area, 140: input / output buffer setting program, 150: input / output buffer update program, 160: transmission / reception data storage area adjustment Program, 170: Input / output buffer management table, 180: Transmission / reception data storage area management table, 200: Server computer, 210 ...
OS, 230: remote file input processing program,
231, a transmission data storage area, 232, a reception data storage area, 260, a transmission / reception data storage area adjustment program,
280: transmission / reception data storage area management table, 300: network, 310: disk.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】リモートファイル入出力を要求するクライ
アント計算機とその要求を処理するサーバ計算機から構
成されるクライアントサーバシステムにおいて、クライ
アント計算機は、あらかじめ決められた大きさ以上のデ
ータのリモートファイル入力(リモートファイル出力)
を新たに要求する際に、入力バッファサイズ(出力バッ
ファサイズ)と呼ぶ、各々のリモートファイル入力要求
(リモートファイル出力要求)に対して設定される受信
データ格納領域(送信データ格納領域)に一度に書き込
むことができるデータのサイズを、個々のリモートファ
イル入力要求(リモートファイル出力要求)が要求する
データの大きさに基づいて設定することを特徴とするリ
モートファイルの入出力方法。
In a client-server system comprising a client computer for requesting remote file input / output and a server computer for processing the request, the client computer receives a remote file input of data of a predetermined size or more (remote file input). File output)
When a new request is made, the input buffer size (output buffer size), which is called the input buffer size (output buffer size), is set at once in the reception data storage area (transmission data storage area) set for each remote file input request (remote file output request). A remote file input / output method, wherein the size of writable data is set based on the size of data requested by each remote file input request (remote file output request).
【請求項2】上記送受信データ格納領域には、メッセー
ジバッファと呼ぶ、ある一定の大きさの連続領域のリス
トが複数種類あることを特徴とする請求項1記載のリモ
ートファイルの入出力方法。
2. The remote file input / output method according to claim 1, wherein the transmission / reception data storage area has a plurality of types of lists of continuous areas having a certain size, which are called message buffers.
【請求項3】計算機には、デフォルトメッセージバッフ
ァと呼ばれる、上記計算機のメモリ管理の特性に基づい
て決定された大きさのメッセージバッファのリストと、
デフォルトメッセージバッファサイズの倍数であり、か
つ、使用可能なネットワークの最大転送バッファサイズ
以下であるという条件を満たしたサイズのメッセージバ
ッファのリストがあることを特徴とする請求項1記載の
リモートファイルの入出力方法。
3. The computer has a list of message buffers, called a default message buffer, of a size determined based on the memory management characteristics of the computer,
2. The remote file input device according to claim 1, wherein there is a list of message buffers having a size that is a multiple of the default message buffer size and that satisfies a condition that it is equal to or less than a maximum transfer buffer size of an available network. output method.
【請求項4】各リモートファイル入出力要求の入出力バ
ッファサイズは、入出力を要求するデータサイズがあら
かじめ決められた値以下である場合には、デフォルトメ
ッセージバッファサイズに設定され、入出力を要求する
データサイズがあらかじめ決められた値より大きい場合
には、入出力を要求するデータサイズ以上のメッセージ
バッファがある場合にはその最小のメッセージバッファ
サイズに、入出力を要求するデータサイズ以上のメッセ
ージバッファがない場合には最大のメッセージバッファ
サイズに設定されることを特徴とする請求項1記載のリ
モートファイルの入出力方法。
4. The input / output buffer size of each remote file input / output request is set to a default message buffer size when the data size requested for input / output is smaller than a predetermined value. If the data size to be input is larger than the predetermined value, if there is a message buffer larger than the data size required for input / output, the message buffer size larger than the data size required for input / output 2. The remote file input / output method according to claim 1, wherein if there is no message buffer size, the maximum message buffer size is set.
【請求項5】各リモートファイル入出力要求を処理する
際には、上記リモートファイル入出力要求の入出力バッ
ファサイズと等しいサイズのメッセージバッファのリス
トが使用されることを特徴とする請求項1記載のリモー
トファイルの入出力方法。
5. The method according to claim 1, wherein, when processing each remote file input / output request, a list of message buffers having a size equal to the input / output buffer size of the remote file input / output request is used. Remote file I / O method.
【請求項6】上記クライアント計算機は上記入力バッフ
ァサイズ(出力バッファサイズ)のデータの受信(送
信)にある基準以上失敗した場合に上記入力バッファサ
イズ(出力バッファサイズ)をある基準に従って小さく
し、上記入力バッファサイズ(出力バッファサイズ)の
データの受信(送信)にある基準以上成功した場合にあ
る基準に従って上記入力バッファサイズ(出力バッファ
サイズ)を大きくするステップを有する請求項1記載の
リモートファイルの入出力方法。
6. When the client computer fails to receive (transmit) data of the input buffer size (output buffer size) at a certain level or more, the client computer reduces the input buffer size (output buffer size) according to a certain level. 2. The remote file input according to claim 1, further comprising the step of increasing the input buffer size (output buffer size) according to a criterion when the reception (transmission) of the data of the input buffer size (output buffer size) is more than a criterion. output method.
【請求項7】あるメッセージバッファサイズのリストの
使用率がある基準以下であり、かつ、他のメッセージバ
ッファサイズのリストの使用率がある基準以上である場
合には適当なサイズのメッセージバッファリストを新た
に作成することを特徴とする請求項1記載のリモートフ
ァイル入出力方法。
7. If the usage rate of a certain message buffer size list is lower than a certain reference and the usage rate of another message buffer size list is higher than a certain reference, a message buffer list of an appropriate size is set. 2. The remote file input / output method according to claim 1, wherein the remote file input / output method is newly created.
JP13643497A 1997-05-27 1997-05-27 Remote file input / output method Expired - Fee Related JP3785741B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13643497A JP3785741B2 (en) 1997-05-27 1997-05-27 Remote file input / output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13643497A JP3785741B2 (en) 1997-05-27 1997-05-27 Remote file input / output method

Publications (2)

Publication Number Publication Date
JPH10326217A true JPH10326217A (en) 1998-12-08
JP3785741B2 JP3785741B2 (en) 2006-06-14

Family

ID=15175054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13643497A Expired - Fee Related JP3785741B2 (en) 1997-05-27 1997-05-27 Remote file input / output method

Country Status (1)

Country Link
JP (1) JP3785741B2 (en)

Also Published As

Publication number Publication date
JP3785741B2 (en) 2006-06-14

Similar Documents

Publication Publication Date Title
US7065541B2 (en) Database migration
JP4144897B2 (en) Optimal server in common work queue environment
JP3484049B2 (en) Delay coded data transmission
US20190075163A1 (en) Apparatus including an i/o interface and a network interface and related method of use
US6343316B1 (en) Cooperative work support system
US5887168A (en) Computer program product for a shared queue structure for data integrity
US5991797A (en) Method for directing I/O transactions between an I/O device and a memory
EP2282276B1 (en) System for client connection distribution according to system load
US7734734B2 (en) Document shadowing intranet server, memory medium and method
US8046421B2 (en) High performance storage access environment
US20180165029A1 (en) Volume admission control for a highly distributed data storage system
JPH04271454A (en) Loosely-coupled computer system
US7827141B2 (en) Dynamically sizing buffers to optimal size in network layers when supporting data transfers related to database applications
JPH09288654A (en) Multiple data source and computer system data input and output device using inter-sink reference
US20050235005A1 (en) Computer system configuring file system on virtual storage device, virtual storage management apparatus, method and signal-bearing medium thereof
US8463886B2 (en) Method and apparatus for distributed computing, and computer product
US20090125569A1 (en) Dynamic replication on demand policy based on zones
JP2004272668A (en) Distributed file system
US20230022689A1 (en) Efficient Networking for a Distributed Storage System
JP3785741B2 (en) Remote file input / output method
JP3672483B2 (en) Content distribution apparatus, content distribution method, and recording medium recording content distribution program
US20230176908A1 (en) Systems, methods and computer program products for job management
JP6676098B2 (en) Information processing system, information processing apparatus, control method, and program
JP2004348233A (en) File sharing system, server, and program
JPH06259362A (en) Multi-server control system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050607

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050628

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050829

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060228

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060313

LAPS Cancellation because of no payment of annual fees