JPS63137349A - Buffer control system - Google Patents

Buffer control system

Info

Publication number
JPS63137349A
JPS63137349A JP28467786A JP28467786A JPS63137349A JP S63137349 A JPS63137349 A JP S63137349A JP 28467786 A JP28467786 A JP 28467786A JP 28467786 A JP28467786 A JP 28467786A JP S63137349 A JPS63137349 A JP S63137349A
Authority
JP
Japan
Prior art keywords
buffer
data
transfer
amount
processing unit
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
JP28467786A
Other languages
Japanese (ja)
Other versions
JPH0470659B2 (en
Inventor
Shinsuke Konishi
小西 紳介
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP28467786A priority Critical patent/JPS63137349A/en
Publication of JPS63137349A publication Critical patent/JPS63137349A/en
Publication of JPH0470659B2 publication Critical patent/JPH0470659B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To improve the efficiency of a buffer and to reduce overhead accompanied with data transfer by properly selecting an initialized buffer capacity. CONSTITUTION:A master processor 1 is connected to a slave processor 2 through a data transfer line 3 to transfer data from the slave processor 2 to the master processor 1. A buffer control part 4 is formed in the master processor 1 and a buffer control part 5 is formed in the slave processor 2. The buffer control part 4 secures the prescribed capacity of the buffer at the time of starting the operation of the system, informs the secured capacity to the slave processor 2 as the initial buffer capacity and then informs a returned buffer capacity to the slave processor 2 every return of the used buffer. The buffer control part 5 stores the informed initial buffer capacity, subtracts the stored buffer capacity every use of the buffer and adds the returned buffer capacity every reception of the returned information to update the buffer capacity. The slave processor 2 transfers data within the stored buffer capacity based on an instruction from the buffer control part 5.

Description

【発明の詳細な説明】 〔概要〕 主処理装置と従処理装置がデータ転送路で接続されたシ
ステムで、従処理装置の、発生時刻、データ量共に不定
なデータを主処理装置に転送するに際し、主処理装置の
転送バッファ量は一定量に抑え、このバッファ量を従処
理装置に予め通知して置き、従処理装置はこのバッファ
量以内のデータを転送するようにし、バッファ不足によ
り転送残を生じた場合は、主処理装置に於ける使用済バ
ッファの返却の通知を受けて残部のデータを転送するよ
うにし、バッファ効率の向上及びデータ転送に伴う割込
の発生によるオーバーヘッドの低減を図ったダイナミッ
クバッファ制御方式。
[Detailed Description of the Invention] [Summary] In a system in which a main processing unit and a slave processing unit are connected by a data transfer path, when data of the slave processing unit is uncertain in terms of occurrence time and amount of data, is transferred to the main processing unit. , the transfer buffer size of the main processing unit is kept to a certain amount, this buffer size is notified to the sub-processing unit in advance, and the sub-processing unit is configured to transfer data within this buffer size, in order to avoid untransferred data due to buffer shortage. If this occurs, the remaining data is transferred after receiving a notification that the used buffer has been returned from the main processing unit, thereby improving buffer efficiency and reducing overhead caused by interrupts caused by data transfer. Dynamic buffer control method.

〔産業上の利用分野〕[Industrial application field]

計算機及び類似装置相互間のデータ転送の発達により、
主処理装置と従処理装置からなりその間にデータ転送路
を持つシステムであって、従処理装置は、種々の監視情
報或いは入力情報を処理してデータを生成し主処理装置
に転送するようにしたシステムがある。
With the development of data transfer between computers and similar devices,
A system consisting of a main processing unit and a sub-processing unit with a data transfer path between them, where the sub-processing unit processes various monitoring information or input information to generate data and transfers it to the main processing unit. There is a system.

このようなシステムのなかには、従処理装置が主処理装
置へ転送すべきデータが、発生時刻、データ量共に不定
である場合があり、本発明は、このような場合のデータ
転送用バッファの制御に関する。
In such systems, there are cases where the data to be transferred from the slave processing device to the main processing device is uncertain both in generation time and data amount.The present invention relates to control of data transfer buffers in such cases. .

〔従来の技術〕[Conventional technology]

主処理装置と従処理装置の間のデータ転送バッファの制
御°には、従処理装置からのデータの発生と量が不規則
に変化する場合、従来、大別して2種類の制御方式があ
り、従来のデータ転送とバッファ制御方式を示す第4図
に示す従来技術例により以下説明する。
Conventionally, there are two main types of control methods for controlling the data transfer buffer between the main processing unit and the slave processing unit when the generation and amount of data from the slave processing unit change irregularly. The data transfer and buffer control system will be explained below using an example of the prior art shown in FIG.

尚、以下第3図(a)、 (b) 、第4図(a)。In addition, the following figures 3(a), (b), and 4(a).

(b)では、各動作を示す枠に○付数字を付すが、数字
は前記4図の夫々に1より始まる数字を付してあり、従
って、他の図と紛られしい場合にのみ図面番号を付して
説明する。
In (b), numbers with circles are attached to the frames indicating each operation, but the numbers start from 1 in each of the four figures above, so drawing numbers are only used when it is likely to be confused with other figures. I will explain it by attaching it.

第4図(a)は、従処理装置から転送データ量を指示し
主処理装置のバッファ確保を待ってデータ転送する方式
であって、従処理装置で転送データ準備完■となると従
処理装置は主処理装置に転送データ量指示を行いバッフ
ァ確保を要求する、主処理装置ではこの要求を受けてバ
ッファを確保し■、従処理装置にバッファ確保通知を返
す、従処理装置はこの通知を受けてデータ転送■を行い
、主処理装置はデータ転送の受取確認■の後データ受取
通知を従処理装置に返してデータ転送完■となる。
FIG. 4(a) shows a method in which the slave processor instructs the amount of data to be transferred, waits for the main processor to secure a buffer, and then transfers the data. When the slave processor is ready to transfer the data, the slave processor Instructs the main processing unit to transfer data amount and requests buffer reservation.The main processing unit receives this request, secures the buffer, and returns a buffer reservation notification to the slave processing unit.The slave processing unit receives this notification and The data transfer (2) is performed, and after confirming the receipt (2) of the data transfer, the main processing unit returns a data receipt notification to the slave processing unit, completing the data transfer (3).

この方式は、主処理装置は所要の都度バッファを確保す
るのでバッファの効率は高いが、転送データ量が多い場
合には所要量のバッファが確保が出来るまで待つ必要が
あり、少量のデータ転送が多発する場合は、主、従処理
装置間の連絡の遺り取りが増え、従って主処理装置のデ
ータ転送のための割込発生に伴うオーバーヘッド(以下
、単にオーバーヘッドと略記する)が増加する傾向があ
る。
In this method, the main processing unit secures a buffer each time it is needed, so the buffer efficiency is high, but when the amount of data to be transferred is large, it is necessary to wait until the required amount of buffer is secured. If this occurs frequently, communication between the main and slave processing units will increase, and the overhead (hereinafter simply abbreviated as overhead) associated with the occurrence of interrupts for data transfer of the main processing unit will tend to increase. be.

第4図(b)は、主処理装置が予めバッファを用意して
従処理装置からのデータ転送を受ける方式で、主処理装
置はバッファの確保■がすむと従処理装置に転送可通知
を行い、従処理装置はこれ受けて転送可を確認し記憶■
する、転送データ準備完■となり、前記の記憶■により
転送OK■ならばデータ転送■を行う、主装置でデータ
の受取確認■が済むと通知により従処理装置はデータ転
送完■となり、同時に主処理装置では次回の転送のため
のバッファ確保■(■と同じ動作)を開始する。
Figure 4(b) shows a method in which the main processor prepares a buffer in advance and receives data transfer from the slave processor.After securing the buffer, the main processor notifies the slave processor that the data can be transferred. , the slave processing device receives this, confirms that the transfer is possible, and stores it.■
If the data is ready to be transferred, and if the transfer is OK according to the memory mentioned above, then the data transfer will be carried out.When the master device confirms the receipt of the data, the slave processing device will be notified that the data transfer is complete, and at the same time the master The processing device starts securing a buffer for the next transfer (same operation as ■).

この方式では、主処理装置は転送されるデータ量が不明
であり、一般に一度に大きいバッファを必要とし、又使
用されない時間もあるのでバッファ効率が低い、又少量
のデータ転送が多発することがなければ、主、従処理装
置間の遺り取りは少なくオーバーヘッドも少ない特徴が
ある。
In this method, the main processing unit does not know the amount of data to be transferred, generally requires a large buffer at one time, and there are periods when it is not used, resulting in low buffer efficiency and the need for frequent transfers of small amounts of data. For example, there is little inheritance between the main and slave processing units, and there is little overhead.

〔発明が解決しようとする問題・点〕[Problem/point that the invention attempts to solve]

上述のように、従来の典型的2方式は、バッファ効率を
高くしたものは、オーバーヘッドが増加し、反対に、バ
ッファ効率を低くすれは、オーバーヘッドが減少すると
言う特徴があり、前記の何れの方式も一長一短というこ
とになる。 本発明は、この問題を解決し、主処理装置
装置のバッファ効率も良く且つオーバーヘッドも小さい
バッファ制御方式をえることが目的である。
As mentioned above, the two typical conventional methods are characterized in that the higher the buffer efficiency, the higher the overhead, and the lower the buffer efficiency, the lower the overhead. There are both advantages and disadvantages. The purpose of the present invention is to solve this problem and provide a buffer control method that has good buffer efficiency and low overhead for the main processing unit.

〔問題点を解決するための手段〕[Means for solving problems]

前記目的は、第1図に示すように、主処理装置lと従処
理装置2をデータ転送路3により接続してなり、従処理
装置2から主処理装置1にデータを転送するシステムに
於いて、データ転送用バッファの制御方式として、主処
理装置1にはバッファ管理部4を、従処理装置2にはバ
ッファ管理部5を設け、以下のようにバッファ制御する
ことにより達成される。
The purpose is to provide a system in which a main processor 1 and a slave processor 2 are connected by a data transfer path 3, and data is transferred from the slave processor 2 to the main processor 1, as shown in FIG. This is achieved by providing a buffer management section 4 in the main processing device 1 and a buffer management section 5 in the slave processing device 2 as a control method for the data transfer buffer, and controlling the buffers as follows.

主処理装置1のバッファ管理部4は、システムの運転開
始時に所定量のバッファを確保し、初期バッファ量とし
て従処理装置2に通知し、以降は使用済バッファの返却
の都度、従処理装置2に返却バッファ量を通知する。
The buffer management unit 4 of the main processing device 1 secures a predetermined amount of buffer at the start of system operation, and notifies the slave processing device 2 as the initial buffer amount. Notify the amount of buffer to be returned.

一方、従処理装置2のバッファ管理部5は通知を受けた
前記初期バッファ量を記憶し、以降は該記憶バッファ量
を、使用する毎に減算し、前記返却通知を受ける毎に加
算することにより更新するものとする。
On the other hand, the buffer management unit 5 of the slave processing device 2 stores the initial buffer amount that has been notified, and thereafter subtracts the stored buffer amount each time it is used and adds it each time it receives the return notification. shall be updated.

従処理装置2は、データ転送発生時に、バッファ管理部
5の指示により前記記憶バッファ量以内のデータを転送
し、残部のデータは、前記記憶バッファifl量の回復
を待って転送を行うように制御する。
When data transfer occurs, the slave processing device 2 is controlled to transfer data within the storage buffer amount according to instructions from the buffer management unit 5, and to transfer the remaining data after waiting for the storage buffer amount ifl to recover. do.

〔作用〕[Effect]

前記初期設定以降は、従処理装置のバッファ管理部のバ
ッファ量記憶にバッファ量が残っている限りは、主処理
装置との間でバッファの有無に就いて連絡することなく
、従処理装置側のみで転送を制御出来、又、記憶バッフ
ァ量が転送しようとするデータ量と比較して不足の場合
も、従処理装置側のみでデータの分割転送処理を行うこ
とが出来、残部のデータは、主処理装置側で返却される
使用済バッファの返却量の通知を受け、従処理装置のバ
ッファ管理部の記憶バッファ量が更新され増加した時に
転送するようにに制御することが出来る。
After the initial setting, as long as there is a buffer amount remaining in the buffer storage of the buffer management section of the slave processing unit, the slave processing unit will only be able to communicate with the main processing unit regarding the presence or absence of the buffer. In addition, even if the storage buffer size is insufficient compared to the amount of data to be transferred, the data can be divided and transferred only on the slave processor side, and the remaining data is transferred to the main processor. Upon receiving notification of the returned amount of used buffers on the processing device side, it is possible to perform control such that the data is transferred when the storage buffer amount of the buffer management unit of the slave processing device is updated and increased.

従って、初期設定のバッファ量を適正に選んで置けば、
不当に大きなバッファを痛駄に確保して置くことなく、
又、主、従処理装置間の連絡の遺り取りが少ないのでオ
ーバーヘッドが小さく、比較的少量のデータのみならず
多量のデータの転送が必要になった場合も自動的に分割
転送を行うことが出来るので、バッファ効率の向上とデ
ータ転送に伴うオーバーヘッドの低減が、共に可能とな
る。
Therefore, if you choose the initial buffer size appropriately,
Without setting aside an unreasonably large buffer,
In addition, since there is little communication left behind between the main and slave processing units, the overhead is small, and divisional transfer can be performed automatically even when it is necessary to transfer not only a relatively small amount of data but also a large amount of data. This makes it possible to both improve buffer efficiency and reduce overhead associated with data transfer.

〔実施例〕〔Example〕

実施例を図によって説明する。 An example will be explained using figures.

第2図は、本発明の実施例のブロック構成図、第3図(
a)は、本発明の実施例の動作説明図(初期設定及び一
括転送可能な場合)、第3図(b)は、本発明の実施例
の動作説明図(バッファ不足のため分割転送の場合)を
示す。
FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 (
3(a) is an explanatory diagram of the operation of the embodiment of the present invention (in case initial settings and batch transfer is possible), and FIG. ) is shown.

第2図にはデータ転送に関係する要部が示されており1
、第1図の原理図と同一のものには同一番号を付しであ
る。同図により構成を説明する。
Figure 2 shows the main parts related to data transfer.
, Components that are the same as those in the principle diagram of FIG. 1 are given the same numbers. The configuration will be explained with reference to the figure.

10.1)は夫々主処理装置l、従処理装置2の転送制
御部であり、データ転送の制御を行う部分である。
10.1) is a transfer control section of the main processing unit 1 and the slave processing unit 2, respectively, and is a section that controls data transfer.

主処理装置1で、4は本発明によるバッファ管理部であ
り、6は従処理装置2からの受信データを処理する処理
部、8は転送バッファでバッファ管理部4により確保管
理される。受信動作としては、転送制御部10により、
転送バッファにデータを受信し、このバッファの制御を
処理部6に移すことにより処理部6にデータが渡される
ようになっている。
In the main processing device 1, 4 is a buffer management section according to the present invention, 6 is a processing section that processes the received data from the slave processing device 2, and 8 is a transfer buffer that is secured and managed by the buffer management section 4. For the reception operation, the transfer control unit 10 performs
The data is delivered to the processing section 6 by receiving the data in the transfer buffer and transferring control of this buffer to the processing section 6.

従処理装置2では、5が本発明によるバッファ管理部で
あり、バッファ量記憶部12を具備し主処理装置1の転
送バッファ量を記憶更新するようになっている。7は転
送データを準備する処理部であり、9は処理部7が転送
データを準備するに際し、従処理装置2内で確保する処
理バッファで、転送時にはこのバッファの制御を転送制
御部1)に移して転送をを行うようになっている。。
In the slave processing device 2, reference numeral 5 denotes a buffer management section according to the present invention, which is provided with a buffer amount storage section 12 and is configured to store and update the transfer buffer amount of the main processing device 1. 7 is a processing unit that prepares the transfer data, and 9 is a processing buffer that is secured within the slave processing device 2 when the processing unit 7 prepares the transfer data, and the control of this buffer is given to the transfer control unit 1) during transfer. It is now possible to move and transfer data. .

次ぎに、第3図(a)、  (b)により、本実施例の
動作を説明する。両図は、主処理装置1.従処理装置2
の欄を対向して描き、両装置は夫々本発明のバッファ管
理部4,5とその他の処理を代表する処理部の欄に分け
、それらの各部の動作が時間の経過と共に下方に推移す
るように、各動作を枠に囲んで動作の流れを矢印のある
線で連結して示した動作フロー図の様式になっている。
Next, the operation of this embodiment will be explained with reference to FIGS. 3(a) and 3(b). Both figures show the main processing unit 1. Slave processing device 2
The columns are drawn facing each other, and both devices are divided into columns for the buffer management sections 4 and 5 of the present invention and processing sections representing other processing, so that the operation of each section changes downward over time. It is in the form of an action flow diagram in which each action is enclosed in a frame and the flow of the action is connected by lines with arrows.

上記の他の処理を代表する処理部は、主処理装置では処
理部6と転送制御部10を、従処理装置2では処理部7
と転送制御部1)を纏めたものであり、処理部6.7及
び、転送制御部10.1)の動作そのものは本発明の特
徴ではないので、夫々処理部の欄に簡略化して書くため
である。
The processing units that represent the other processes mentioned above are the processing unit 6 and the transfer control unit 10 in the main processing device, and the processing unit 7 in the slave processing device 2.
and transfer control unit 1), and since the operations of processing unit 6.7 and transfer control unit 10.1) themselves are not a feature of the present invention, they will be simplified and written in the respective processing unit columns. It is.

先ず、第3図(a)により、初期設定の動作を説明する
First, the initial setting operation will be explained with reference to FIG. 3(a).

システムの運転の開始時に、主処理装置1はそのバッフ
ァ管理部4により所定のバッファを確保■すると、その
バッファ量を従処理装置2のバッファ管理部に通知し、
従処理装置装置2のバッファ管理部5はそのバッファ量
をバッファ量記憶部12に記憶■することで初期設定を
終わる。
At the start of system operation, the main processing unit 1 secures a predetermined buffer by its buffer management unit 4, and notifies the buffer management unit of the slave processing unit 2 of the buffer amount.
The buffer management section 5 of the slave processing unit 2 stores the buffer amount in the buffer amount storage section 12, thereby completing the initial setting.

引続き、第3図(a)により、一括転送可能の場合を説
明する。
Continuing, the case where batch transfer is possible will be explained with reference to FIG. 3(a).

従処理装置2の処理部で転送すべきデータの準備を完了
■すると、従処理装置2のバッファ管理部5へ転送デー
タ量を通知して転送を要求する。
When the processing section of the slave processing device 2 completes preparation of the data to be transferred (2), it notifies the buffer management section 5 of the slave processing device 2 of the amount of data to be transferred and requests transfer.

従処理装置2のバッファ管理部5はこの転送量と前記バ
ッファ量記憶内容とを比較■して、バッファ量が充分な
らば転送OKとして従処理装置2の処理部に転送を指示
すると共に記憶バッファ量の減算■を行う。転送指示を
受けた処理部はデータ転送■を行う。
The buffer management section 5 of the slave processing device 2 compares this transfer amount with the buffer amount storage contents, and if the buffer amount is sufficient, it determines that the transfer is OK and instructs the processing section of the slave processing device 2 to transfer, and also removes the storage buffer. Perform quantity subtraction■. The processing unit that receives the transfer instruction performs data transfer (2).

データ転送■を受けた主処理装置の1バッファ管理部4
で転送終了を確認■すると、主処理装置1の処理部にバ
ッファ毎の受領と処理■を指示する、主処理装置1の処
理部の処理が済むとバッファは主処理装置1のバッファ
管理部4に返却され、バッファ管理部4は返却量を確認
■し、この返却量は従処理装置2のバッファ管理部に通
知され、従処理装置2のバッファ管理部5は記憶バッフ
ァ量を加算[相]して次の転送要求に備える。以上でデ
ータの一括転送は終了する。尚、主処理装置1の欄のバ
ッファ量減算■及びバッファ量加算@は、本発明に必須
ではないが、主処理装置バッファ管理部4内の確認のた
めのものである。
1 buffer management unit 4 of the main processing unit that received the data transfer ■
After confirming the completion of the transfer, the main processing unit 1 instructs the processing unit 1 to receive and process each buffer. Once the processing by the main processing unit 1 is completed, the buffer is transferred to the buffer management unit 4 of the main processing unit 1. , the buffer management unit 4 checks the returned amount, this returned amount is notified to the buffer management unit of the slave processing device 2, and the buffer management unit 5 of the slave processing device 2 adds the storage buffer amount [phase]. to prepare for the next transfer request. This completes the batch data transfer. Note that the buffer amount subtraction ■ and the buffer amount addition @ in the main processing unit 1 column are not essential to the present invention, but are for confirmation within the main processing unit buffer management section 4.

従処理装置2のバッファ管理部5がこの転送量と前記バ
ッファ量記憶■の内容とを比較■した時、バッファ量が
不足の場合は、転送NOと判定して前記バッファ量記憶
の内容を従処理装置2の処理部に指示する。此の時バッ
ファ量がOならば、処理部は、後述の分割転送の場合に
準じた動作、即ち転送要求量をバッファ管理部に記憶し
てもらっておくことにより、主処理装置1でバッファが
用済となりバッファが返却され、その通知を受けて、従
処理装置2のバッファ管理部5の記憶バッファ量が加算
[相]されるまで待機0することになる。
When the buffer management unit 5 of the slave processing device 2 compares this transfer amount with the contents of the buffer amount storage (■), if the buffer amount is insufficient, it determines that the transfer is NO and transfers the contents of the buffer amount storage to the slave. An instruction is given to the processing section of the processing device 2. If the buffer amount is O at this time, the processing section performs an operation similar to the case of split transfer described later, that is, by having the buffer management section memorize the transfer request amount, the main processing unit 1 uses the buffer. The buffer is returned, and upon receiving the notification, there is a waiting period of 0 until the storage buffer amount of the buffer management unit 5 of the slave processing device 2 is added.

一方、バッファ量が0でなければ(バッファ量の計量を
成る単位を定めて行う場合は、1単位以上のバッファ量
ならば)、次ぎに説明するバッファ不足による分割転送
0を行うことになる。
On the other hand, if the buffer amount is not 0 (if the buffer amount is measured by determining a unit, if the buffer amount is one unit or more), division transfer 0 due to buffer shortage, which will be explained next, will be performed.

第3図(a)のこの分割転送◎の場合を、第3図(b)
により、詳しく説明する。
The case of division transfer ◎ in Fig. 3(a) is shown in Fig. 3(b).
This will be explained in detail.

第3図(a)の■の判定〔第3図(b)にも記載〕がN
Oで、バッファ量指示を受けた従処理装置2の処理部は
、転送すべきデータを指示されたバッファ量以内のデー
タ量にデータの先頭部を分割■して、先頭分のデータ量
と分割残量をバッファ管理部に指示すると共に先頭分の
データの転送■を行う。従処理装置2のバッファ管理部
5は、記憶バッファ量を減算■すると共に、データの分
割残量を記憶■しておく。
The judgment of ■ in Figure 3 (a) [also described in Figure 3 (b)] is N.
At O, the processing unit of the slave processing device 2, which received the buffer amount instruction, divides the data to be transferred into the data amount within the specified buffer amount, and divides the data into the data amount of the beginning part. Instructs the remaining capacity to the buffer management section and transfers the first portion of data. The buffer management unit 5 of the slave processing device 2 subtracts the storage buffer amount and stores the remaining amount of data division.

先頭データ転送後の動作は、第3図(a)に於ける■乃
至[相]の動作を、第3図(b)の■乃至■で行い、バ
ッファ返却により従処理装置2のバッファ管理部5の記
憶バッファ量が加算■され更新されると、前記分割残量
記憶■の内容とバッファ量加算■で更新されたバッファ
量記憶の内容を比較■して転送OKかどうかを判定する
The operation after transferring the first data is to perform the operations from ① to [phase] in FIG. When the storage buffer amount of 5 is added and updated, the contents of the divided remaining amount storage (3) are compared with the contents of the buffer amount storage updated by the buffer amount addition (2) to determine whether the transfer is OK.

この判定で、バッファ量が充分で転送OKならば以降の
動作は、一括転送の場合の第3図(a)の比較■の転送
OKの場合と同様に動作が進行して分割残部のデータ転
送が終わる。
In this judgment, if the buffer capacity is sufficient and the transfer is OK, the subsequent operation proceeds in the same way as the transfer OK case in Figure 3 (a) comparison (■) in the case of batch transfer, and the remaining divided data is transferred. ends.

一方、バッファ量が少なく、更に分割転送する場合は、
分割転送の場合の第3図(b)の比較■の転送NOの判
定の場合の■以降と同様に以下進行を繰り返し分割転送
を続行することになる。この繰り返しにより、分割残デ
ータ量に対しバッファ充分となれば、上記一括転送の場
合の第3図(a)の比較■の転送OKの場合と同様に動
作が進行して分割残部のデータ転送が終わる。
On the other hand, if the buffer size is small and you want to transfer it in parts,
Comparison of FIG. 3(b) in the case of divisional transfer The divisional transfer is continued by repeating the following steps in the same manner as in and after (2) in the case of the transfer NO determination in (2). By repeating this process, if the buffer becomes sufficient for the amount of divided remaining data, the operation proceeds in the same way as in the case of transfer OK in comparison ① in Figure 3 (a) in the case of bulk transfer, and the data transfer of the remaining divided data is completed. It ends.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、初期設定のバッファ量を適正に選んで
置くことにより、不当に大きなバッファを無駄に確保し
て置くことなく、又、主、従処理装置装置間の連絡の遺
り取りが少ないのでオーバーヘッドを小さく出来、比較
的少量のデータの場合のみならず多量のデータの転送が
必要になった場合も、自動的に分割転送を行うようグイ
ナミソクにバッファ管理が出来るので、バッファ効率の
向上とデータ転送に伴うオーバーヘッドの低減が共に可
能となる。
According to the present invention, by appropriately selecting the initial buffer amount, an unreasonably large buffer is not secured unnecessarily, and communication between the main and slave processing devices is maintained. Since the amount of data is small, overhead can be reduced, and buffer efficiency can be improved because the buffer can be managed to automatically perform divided transfer not only when a relatively small amount of data is transferred, but also when a large amount of data needs to be transferred. This also makes it possible to reduce the overhead associated with data transfer.

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

第1図は本発明の原理図、第2図は本発明の実施例のブ
ロック構成図、第3図(a)は本発明の実施例の動作説
明図(初期設定及び一括転送可能な場合)、第3図(b
)は本発明の実施例の動作説明図(バッファ不足のため
分割転送の場合)、第4図(a)は従来技術例:従処理
装置装置から転送データ量を指示し主処理装置のバッフ
ァ確保を待って転送する方式、第4図(b)は従来技術
例:主処理装置が予めバッファを用意して従処理装置か
らのデータ転送を受ける方式を示す。 図中、 1は主処理装置、 2は従処理装置、 3はデータ転送路、 4.5は夫々バッファ管理部 6.7は処理部、 8は転送バッファ、 9は処理バッファ、 10.1)は転送制御部、 12はバッファ量記憶部 ’14i図
Fig. 1 is a principle diagram of the present invention, Fig. 2 is a block configuration diagram of an embodiment of the present invention, and Fig. 3 (a) is an explanatory diagram of the operation of the embodiment of the present invention (in case initial settings and batch transfer are possible). , Figure 3 (b
) is an explanatory diagram of the operation of the embodiment of the present invention (in the case of split transfer due to buffer shortage), and FIG. FIG. 4(b) shows an example of the prior art: a method in which the main processing unit prepares a buffer in advance and receives data transfer from the slave processing unit. In the figure, 1 is a main processing unit, 2 is a slave processing unit, 3 is a data transfer path, 4.5 is a buffer management unit, 6.7 is a processing unit, 8 is a transfer buffer, 9 is a processing buffer, 10.1) 12 is the transfer control unit, and 12 is the buffer amount storage unit '14i diagram.

Claims (1)

【特許請求の範囲】 主処理装置(1)と従処理装置(2)をデータ転送路(
3)により接続してなり、従処理装置(2)から主処理
装置(1)にデータを転送するシステムに於けるデータ
転送用バッファの制御方式であって、 主処理装置(1)にはバッファ管理部(4)を、従処理
装置(2)にはバッファ管理部(5)を設け、主処理装
置(1)のバッファ管理部(4)は、システムの運転開
始時に所定量のバッファを確保し、初期バッファ量とし
て従処理装置(2)に通知し、以降は使用済バッファの
返却の都度、従処理装置(2)に返却バッファ量を通知
するものとし、 従処理装置(2)のバッファ管理部(5)は通知を受け
た前記初期バッファ量を記憶し、以降は該記憶バッファ
量を、使用する毎に減算し、前記返却通知を受ける毎に
加算することにより更新するものとし、 従処理装置(2)は、データ転送発生時に、バッファ管
理部(5)の指示により前記記憶バッファ量以内のデー
タを転送し、残部のデータは、前記記憶バッファ量の回
復を待って転送を行うことを特徴とするバッファ制御方
式。
[Claims] The main processing unit (1) and the slave processing unit (2) are connected to a data transfer path (
3) in a system in which data is transferred from a slave processor (2) to a main processor (1), the main processor (1) has a buffer A buffer management unit (5) is provided in the sub-processing unit (2), and the buffer management unit (4) of the main processing unit (1) secures a predetermined amount of buffer at the start of system operation. Then, the initial buffer amount is notified to the slave processing device (2), and thereafter, each time a used buffer is returned, the returned buffer amount is notified to the slave processing device (2), and the buffer of the slave processing device (2) is The management unit (5) stores the notified initial buffer amount, and thereafter updates the stored buffer amount by subtracting it each time it is used and adding it each time it receives the return notification. When data transfer occurs, the processing device (2) transfers data within the storage buffer amount according to instructions from the buffer management unit (5), and transfers the remaining data after waiting for the storage buffer amount to recover. A buffer control method featuring:
JP28467786A 1986-11-28 1986-11-28 Buffer control system Granted JPS63137349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28467786A JPS63137349A (en) 1986-11-28 1986-11-28 Buffer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28467786A JPS63137349A (en) 1986-11-28 1986-11-28 Buffer control system

Publications (2)

Publication Number Publication Date
JPS63137349A true JPS63137349A (en) 1988-06-09
JPH0470659B2 JPH0470659B2 (en) 1992-11-11

Family

ID=17681549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28467786A Granted JPS63137349A (en) 1986-11-28 1986-11-28 Buffer control system

Country Status (1)

Country Link
JP (1) JPS63137349A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036440A1 (en) * 2002-10-16 2004-04-29 Matsushita Electric Industrial Co., Ltd. Ic card, data transfer device, data transfer method, and data transfer method program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036440A1 (en) * 2002-10-16 2004-04-29 Matsushita Electric Industrial Co., Ltd. Ic card, data transfer device, data transfer method, and data transfer method program
US7436898B2 (en) 2002-10-16 2008-10-14 Matsushita Electric Industrial Co., Ltd. Integrated circuit (IC) card, data transmission apparatus, data transmission method and computer program of data transmission method

Also Published As

Publication number Publication date
JPH0470659B2 (en) 1992-11-11

Similar Documents

Publication Publication Date Title
US7275124B2 (en) Method and system for controlling forwarding or terminating of a request at a bus interface based on buffer availability
JPH05165762A (en) Dma controller
JPS63137349A (en) Buffer control system
JPS586177B2 (en) Interface circuit selection system
JPS6240751B2 (en)
JP2792866B2 (en) Buffer pool pre-expansion device
JPS61251252A (en) Processing method for data transfer
JPH06139186A (en) Bus control system
JPH11353197A (en) Shared pool resource control system
JPS61271555A (en) Transferring system for direct memory access
JPS60136853A (en) Data transfer system
JP2980163B2 (en) Data transfer method
JPS63231669A (en) Transmission system for data
JPH0723913A (en) Medical image processing system
JPH04274524A (en) System for controlling inter-process communication
JPH06161951A (en) Bus control system
JPS62114050A (en) Communication control equipment
JPS61127005A (en) Processor of numerical control information
JPH07182191A (en) Duplex system
JPH04162106A (en) Remote input/output system for programmable controller
JPS63170761A (en) Input/output controller for electronic computer
JPH0298764A (en) File data transfer control system
JPH01142962A (en) Data transfer control system
JP2001306337A (en) Multitask equivalent processing system and its method
JPS61264829A (en) Control system for interruption of network controller

Legal Events

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