JPS62233825A - Automatic optimized application allocating system for shared picture buffer - Google Patents

Automatic optimized application allocating system for shared picture buffer

Info

Publication number
JPS62233825A
JPS62233825A JP7719386A JP7719386A JPS62233825A JP S62233825 A JPS62233825 A JP S62233825A JP 7719386 A JP7719386 A JP 7719386A JP 7719386 A JP7719386 A JP 7719386A JP S62233825 A JPS62233825 A JP S62233825A
Authority
JP
Japan
Prior art keywords
buffer
data
usage
request
time
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
JP7719386A
Other languages
Japanese (ja)
Inventor
Yoshizo Ito
伊藤 芳三
Takatoshi Kodaira
高敏 小平
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 JP7719386A priority Critical patent/JPS62233825A/en
Publication of JPS62233825A publication Critical patent/JPS62233825A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To improve the memory efficiency of a buffer by using the buffer after dividing it in plural processes, allocating the buffer to each process within a latest fixed time and furthermore allocating automatically the areas in response to the storing frequency of the picture data into the buffer. CONSTITUTION:A buffer using right check processing part 6 refers to a buffer using right allocation table 4 (orders of using types and area addresses) to decide a new using request or a lasting using request. If a new request is decided, a processing part 7 decides the buffer using right and sends to operation back to the part 6 again. While it is checked whether or not a shared picture buffer 2 has an idle space if the lasting request is decided by the part 6. If the buffer 2 has an idle space, data are stored at the relevant position of the buffer 2 by the function of a data store processing part 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディジタル化された画像データの入出力方式
に係り、特に、大容量の画像データを格納するバッファ
を複数の処理で分割使用し、バッファ容量を縮減すると
共に高速入出力するのに好適な共通画像バッファ自動最
適化割り付け方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an input/output method for digitized image data, and in particular, to a method for dividing and using a buffer storing a large amount of image data in multiple processes. The present invention relates to a common image buffer automatic optimization allocation method suitable for reducing buffer capacity and high-speed input/output.

〔従来の技術〕[Conventional technology]

画像データはデータ量が多いことが知られており、また
、外部入出力装置への画像データ出力は、その外部格納
媒体への格納フォーマットに依存した形態で、データを
転送する必要がある。一方、外部へ出力するための画像
データを作成する側では、格納フォーマットを意識した
順番にデータを作成するか、データ作成側においてバッ
ファ全用意し、このバッファ上でデータの作成tlct
序と、格納フォーマットに都合がよい順序との違いを吸
収させている。
It is known that image data has a large amount of data, and in order to output image data to an external input/output device, it is necessary to transfer the data in a format that depends on the storage format of the external storage medium. On the other hand, on the side that creates image data to be output externally, either create the data in an order that takes into account the storage format, or prepare all the buffers on the data creation side and use the data creation tlct on this buffer.
It accommodates the difference between the order and the order convenient for the storage format.

また、外部入出力装置へのデータアクセスは、大量なデ
ータを転送する場合は、転送時間を短縮するためにD 
MA転送が用いられているのが一般的である。DMAの
転送時間(TDMA)は転送データ1− (D)に比例
する部分(Ta*D)と、固定部−とに分けられる。
In addition, when transferring a large amount of data, data access to external input/output devices should be done using D
MA transfer is generally used. The DMA transfer time (TDMA) is divided into a portion (Ta*D) proportional to the transfer data 1-(D) and a fixed portion.

T DMA = To + Td* D一般的には、T
o>Taであるから、転送データfiDを大きくした方
が効率的である。
T DMA = To + Td* DGenerally, T
Since o>Ta, it is more efficient to increase the transfer data fiD.

以上のようなことから、外部へ出力するための画像デー
タを作成する側で、バッファを設けている。
For the above reasons, a buffer is provided on the side that creates image data to be output to the outside.

このバッファは、画像データ用のため、バッファサイズ
は大きく、また、各処理専用にバッファを設けたり、複
数の処理、複数の外部入出力装置への同時並行処理を考
慮して、バッファを複数分設けたりしている。
This buffer is for image data, so the buffer size is large, and it can be divided into multiple buffers to accommodate multiple processes and simultaneous parallel processing to multiple external input/output devices. We have set up some.

加えて、バッファの持ち方として、データ転送に要する
時間を見かけ上吸収するために、交替バッファを使用す
るのが一般的である。
In addition, in order to apparently absorb the time required for data transfer, it is common to use alternate buffers.

交替バッファの使用例は、特公昭60−22776号公
報に記載されている。それでは、ここで交替バッファを
使用した動作を簡単に説明する。
An example of the use of a replacement buffer is described in Japanese Patent Publication No. 60-22776. Now, we will briefly explain the operation using the alternate buffer.

(1)、処理装置からの指示により大容量データ源から
の入力を開始する。
(1) Input from a large-capacity data source is started based on instructions from the processing device.

(2)、データは、まず第1バツフアに入力される。(2) Data is first input into the first buffer.

(3)、第1バツフアが満杯になると、次はプログラム
によりアドレスを切替えて第2バツフアに入力される。
(3) When the first buffer becomes full, the program switches the address and inputs it to the second buffer.

(4)、上記(2)で一旦第1バッファに入力されたデ
ータは、第2バツフア・\の入力時間を利用して大容量
磁気ディスク装置に転送される。
(4) The data once input to the first buffer in the above (2) is transferred to the large-capacity magnetic disk device using the input time of the second buffer.

(5)、第2バツフアが満杯になると、次は再び第1バ
ツフアに切替えられ、今度は第1バツフアへの入力時間
を利用して第2バツフアの内容が大容量磁気ディスク装
置に転送格納される。1以上の繰返しKより大容量磁気
ディスク装置に大容量データ源のデータが交替バッファ
を介して払い出される。
(5) When the second buffer becomes full, it is switched to the first buffer again, and this time, the contents of the second buffer are transferred and stored in the large-capacity magnetic disk device using the input time to the first buffer. Ru. Data from a large-capacity data source is delivered to a large-capacity magnetic disk device through one or more repetitions K via a replacement buffer.

次に、交替バッファのバッファサイズについて第4図を
用いて説明する。交替バッファは、バッファへのデータ
格納時間が、バッファから大容量磁気ディスク装置への
データ払い出し時間よりも。
Next, the buffer size of the replacement buffer will be explained using FIG. 4. With alternate buffers, the time it takes to store data in the buffer is longer than the time it takes to transfer data from the buffer to a large-capacity magnetic disk drive.

相対的に小さい場合に有効であり、第4図(a)に示す
ように、バッファサイズが第1バツフア、第2バツクア
とも1である場合よシも第4図(b)に示すように、バ
ッファサイズを3に増やした方が、一定のデータ量(第
4図では、■〜■)t−転送する時間を縮減できる。−
万、バッファへのデータ格納時間が、バッファからのデ
ータ払い出し時間よりも相対的に太きければ、第4図(
C1に示すように。
It is effective when the buffer size is relatively small, as shown in FIG. 4(a), and when the buffer size is 1 for both the first buffer and the second buffer, as shown in FIG. 4(b), By increasing the buffer size to 3, it is possible to reduce the time required for transferring a certain amount of data ((■ to ■) in FIG. 4). −
If the time to store data in the buffer is relatively longer than the time to output data from the buffer, then if
As shown in C1.

バッファサイズを4にしても、一定のデータ量(■〜■
)を転送する時間は、第4図(lに示すものに比べて効
果がなく、かえって常時、大きなバッファを保持しなけ
ればならない。
Even if the buffer size is set to 4, the amount of data remains constant (■~■
) is less effective than the one shown in FIG.

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

前記のように、バッファのサイズは、必要以上大きくし
ても、データ転送に有利とはならず、かえってメモリの
使用効率の面から不利である。このため、適性なバッフ
ァサイズにすることが必要であるが、システムを構築(
インストール)する段階で、各処理毎にバッファサイズ
を決めるには、各処理の使用頻度、処理要求速度、画像
データ転送時間等の要素を考慮し、これらの分界点(ト
レードオフ)により、決定しなければならず、これに要
する労力は大きく、また、設定に変更が生じた場合の手
直し作業も大きいという問題点がある。
As described above, even if the size of the buffer is made larger than necessary, it will not be advantageous for data transfer, but will be disadvantageous in terms of memory usage efficiency. Therefore, it is necessary to set an appropriate buffer size, but when building a system (
To determine the buffer size for each process at the installation stage, consider factors such as the frequency of use of each process, processing request speed, and image data transfer time, and make a decision based on these demarcation points (trade-offs). This requires a lot of effort, and also requires a lot of rework if the settings are changed.

本発明の目的は上記問題点を解決し、バッファのメモリ
効率を高めると共に、転送時間を短縮化した共有画像バ
ッファ自動最適化使用態シ付け方式を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a shared image buffer automatic optimization usage allocation method that increases buffer memory efficiency and shortens transfer time.

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

上記問題点を解決し、上記目的を達成する本発明は、大
量の画像データをある基本単位で繰返し、交替バッファ
を介して外部の入出力装装置にデータ転送を行うに際し
、一方のバッファ内のデータを払い出す時間内に、対と
なる他方のバッファへのデータ格納量を検知し、これが
既に、所定のバッファを満たしている場合には、該バッ
ファのサイズを増やすべく、また、所定のバッファを満
たしていない場合には、該バッファのサイズを減らすべ
く、別に設けた使用権割り付けテーブルを変更するもの
である。
The present invention solves the above problems and achieves the above objects by repeating a large amount of image data in a certain basic unit and transferring the data to an external input/output device via alternate buffers. The amount of data stored in the other pair of buffers is detected within the time for discharging data, and if this already fills a predetermined buffer, the amount of data stored in the other buffer is If this is not the case, a separately provided usage rights allocation table is changed in order to reduce the size of the buffer.

〔作用〕[Effect]

本発明は、次のことに細しでなされたものである。 The present invention has been made based on the following points.

(1)6画像処理は、大量のデータをある基本単位で繰
返す処理が多い。したがって、使用要求は、一定期間、
周期的に発生し、1回当りのデータ量も平均化されてい
る。
(1) 6 Image processing often involves repeating a large amount of data in a certain basic unit. Therefore, usage requests are made for a certain period of time.
It occurs periodically, and the amount of data per time is averaged.

(2)、バッファからのデータ払い出し簡略のため、及
び1回の払い出し処理で実施できるようにバッファは、
物理的に連続したものである。
(2) In order to simplify data dispensing from the buffer and to be able to perform it in one dispensing process, the buffer is
It is physically continuous.

(3)、バッファからの払い出し時間は、払い出し回数
に応じた時間が大半を占め、1回当りの払い出しデータ
量に応じた時間的要素は小さい。
(3) Most of the payout time from the buffer is the time corresponding to the number of payouts, and the time element corresponding to the amount of data paid out per time is small.

(4)、 バッファが交替バッファの形態の場合バッフ
ァのサイズには最適なサイズがある。
(4) When the buffer is in the form of a replacement buffer, there is an optimal buffer size.

このことから、複数の処理で共通に使用するバッファの
うち入出力装置への転送用画像データを格納するバッフ
ァにおいて、バッファ内の各処理への使用割付けを、あ
らかじめ固定しておかず新たなバッファ使用要求が発生
した時点、及びバッファからのデータ払い出しが完了し
た時点割付けを変更する。
For this reason, in a buffer that stores image data for transfer to an input/output device among buffers that are commonly used by multiple processes, the usage allocation for each process in the buffer is not fixed in advance and new buffers are used. Allocation is changed at the time a request occurs and at the time data has been completely discharged from the buffer.

外部記憶装置間で、大量の画像データを転送する場合、
主記憶装置を介して行うのが一般的である。この場合、
主記憶装置には、一時的なハッ7アが必要となるが、こ
のバッファのサイズには、適性なサイズがある。この適
性なサイズは、バッファへの単位時間当りのデータ格納
量を知ることにより、決定できる。各処理に対して、適
性なバッファサイズを割付けることにより、メモリ効率
を高め、かつ、処理時間を短縮できる。
When transferring large amounts of image data between external storage devices,
This is generally done via the main memory. in this case,
A temporary buffer is required in the main memory, and this buffer has an appropriate size. This appropriate size can be determined by knowing the amount of data stored in the buffer per unit time. By allocating an appropriate buffer size to each process, memory efficiency can be increased and processing time can be shortened.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は本発明の一実施例を示すブロック図である。第
1図において、ll’tデータ格納処理部12は共通画
像バッファ、3はデータ払出処理部、4はバッファ使用
権割付けテーブル、5は要求受付け処理部、6はバッフ
ァ使用権チェック処理部、7はバッファ使用権分割処理
部、8はバッファ使用権割付け変更処理部、9はバッフ
ァ使用権総合処理部である。このような実施例の動作を
説明する。
FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, ll't data storage processing section 12 is a common image buffer, 3 is a data payout processing section, 4 is a buffer usage right allocation table, 5 is a request reception processing section, 6 is a buffer usage right check processing section, and 7 Reference numeral 8 denotes a buffer usage right division processing section, 8 a buffer usage right allocation change processing section, and 9 a buffer usage right comprehensive processing section. The operation of such an embodiment will be explained.

まず、要求受付け処理部5にて、要求の種類に応じて処
理を分岐させる。要求の種類は、転送処理要求と、処理
終了要求と、転送完了報告とがある。転送処理要求に対
しては、バッファ使用権チェック処理部6でバッフ7使
用権チエツクを行い、処理終了要求に対しては、該払い
出し処理部3でデータ払い出し処理を当該使用種別のバ
ッファに対して行うと共に、転送完了報告に対しては、
転送完了処理を行う。
First, the request reception processing section 5 branches processing depending on the type of request. Types of requests include transfer processing requests, processing completion requests, and transfer completion reports. In response to a transfer processing request, the buffer usage right check processing unit 6 checks the usage right of the buffer 7, and in response to a processing end request, the dispensing processing unit 3 performs data dispensing processing for the buffer of the usage type. In addition, in response to the transfer completion report,
Perform transfer completion processing.

バッファ使用権チェック処理部6では、バッファ使用権
割付けテーブル(使用種別層及びエリアアドレス順)4
を参照し、新規使用要求か、継続使用要求かを判別し、
新規使用要求であれば、該処理部7によりバッファ使用
権分割処理を行い、再びバッファ使用権チェック処理部
6にその動作を戻す。一方、継続使用要求であることを
核チェック処理部6により判断されると、さらにバッフ
ァ2に空きが有るか否かを判別し、空きが有れば、デー
タ格納処理部1の動作により共通画像バッファ2の該当
位置にデータを格納する。
The buffer usage right check processing unit 6 creates a buffer usage rights allocation table (in order of usage type layer and area address) 4.
Refer to , determine whether it is a new use request or a continued use request, and
If it is a new usage request, the processing unit 7 performs a buffer usage right division process and returns the operation to the buffer usage right check processing unit 6 again. On the other hand, when the nuclear check processing unit 6 determines that the request is for continued use, it is further determined whether or not there is space in the buffer 2, and if there is space, the common image is stored by the operation of the data storage processing unit 1. Store the data in the corresponding position of buffer 2.

バッファ2に空きがなく、該当使用種別がデータ払い出
し中がなければ、データ払い出し中フラグを立て、満杯
になったバッファを該払い出し処理部3によりデータを
払い出すとともに、交替バッファの切替えを行い、再度
チェック処理部6によりバッファ使用権チェック処理を
行う。
If there is no space in the buffer 2 and there is no data dispensing in the corresponding usage type, a data dispensing flag is set, the dispensing processing unit 3 dispenses data from the full buffer, and the replacement buffer is switched; The check processing unit 6 performs the buffer usage right check process again.

バッファに空きがなく、当該使用種別がデータ払い出し
中であれば、バッファ満杯フラグを立て転送処理要求元
を待(WAIT)状態にする。
If there is no free space in the buffer and the usage type is data discharging, the buffer full flag is set and the transfer processing request source is placed in a WAIT state.

前述のように処理終了要求に対しては、当該使用種別の
バッファ内のデータを・払い出すべく、核払い出し処理
部3によりデータ払い出し処理を行う。
As described above, in response to a processing end request, the core dispensing processing unit 3 performs data dispensing processing in order to discharge the data in the buffer of the usage type.

一万、転送完了報告に対しては、当該使用種別のバッフ
ァサイズとバッファの位置を見直し、また、新規使用要
求で、バッファ空き待ちをしているものがあれば、これ
にバッファを割付けるべく伝送完了処理全行う。
In response to the transfer completion report, we will review the buffer size and buffer location for the relevant usage type, and if there is a new usage request that is waiting for a free buffer, we will allocate a buffer to it. Perform all transmission completion processing.

以上のように、バッファの使用割付け変更を行う時点は
、 (1)新たなバッファ使用要求が発生した時点、(11
)バッファからのデータ払い出しが完了した時点である
As mentioned above, the times when buffer usage allocation is changed are: (1) when a new buffer usage request occurs; (11) when a new buffer usage request occurs;
) This is the point in time when the data has been completely discharged from the buffer.

説明のために第2図(旧に示すようにバッファ使用イ彊
別かに1個、バッファは、交替バッファとして、第2図
(1)に示すように、2面用意し、各各バッファサイズ
をUとしておくものとする。
For explanation purposes, as shown in Figure 2 (formerly, one buffer is used), two buffers are prepared as alternate buffers as shown in Figure 2 (1), and each buffer size is Let be U.

(1)新たなバッファ使用要求が発生した時点、バッフ
ァ使用権割付けテーブル(エリアアドレス順)4をi 
= 1から順次サーチし、次の条件を満足する最小のi
を求める。
(1) When a new buffer usage request occurs, the buffer usage right allocation table (in order of area address) 4 is
= Search sequentially from 1 to find the minimum i that satisfies the following conditions
seek.

■占有使用1道別−〇 ■(最終ポインタ)−(先頭ボイ/り)+1≧使用種別
にの適性バッファサイズ ここで、使用種別には、新たなバッファ使用要求を発行
した夏用種別とし、その適性バッファサイズとは、バッ
ファ使用権割付けテーブル(使用種別類)4内の使用種
別Kに対するものとする。
■Occupied use 1 road - 〇■ (final pointer) - (first voice/re) + 1 ≧ Appropriate buffer size for usage type Here, the usage type is the summer type that issued the new buffer usage request, The appropriate buffer size is for usage type K in the buffer usage right allocation table (usage type) 4.

このよりなiが求まったら、占有使用種別をKとし、最
終ポインタをく(先頭ポインタ)+(使用種別にの適性
バッファサイズ)−1〉に変更する。そして、(i+x
)以降のテーブルをJa次1つずつ繰り下げ(i+1)
に対して。
Once this more accurate i is determined, the occupied usage type is set to K, and the final pointer is changed to (head pointer) + (appropriate buffer size for usage type) - 1>. And (i+x
) and subsequent tables are moved down one by one (i+1)
against.

■占有使用種別=0 ■先頭ポインタ=(1に対する最終ポインタ)+ 1 ■最終ポインタ=前回の(iにおける最終ポインタ) にセットする。■Occupied use type = 0 ■Start pointer = (last pointer for 1) + 1 ■Final pointer = previous (final pointer at i) Set to .

また、バッファ使用権割付けテーブル(使用種別Jil
ff)4内の使用種別■(に対する先頭ポインタ、最終
ポインタを、前記バッファ使用権割付けテーブル(エリ
アアドレス順)4内の1ケース目に対応する先頭ポイン
タ、最終ポインタの値にそれぞれセットし、格納最終ポ
インタはOにセットする。
In addition, the buffer usage right allocation table (usage type Jil
ff) Set the start pointer and end pointer for usage type ■( in 4) to the values of the start pointer and end pointer corresponding to the first case in the buffer usage right allocation table (area address order) 4, respectively, and store. The final pointer is set to O.

以上の手順を又替バッファの第1バツフア及び第2バツ
フアについて行い、最後に、バラフッ使用権割付けテー
ブル(使用種別類)4内の使用種別Kに対する使用可バ
ッファA、満杯フラグ及びデータ払い出し中フラグをそ
れぞれ0にする。
The above procedure is performed for the first and second buffers of the replacement buffer, and finally, the usable buffer A, full flag, and data dispensing flag for usage type K in the balance usage right allocation table (usage type) 4 Set each to 0.

前記のようよiが求まらなかった場合は、バッファ使用
権割付けテーブル(使用種別類)4内の使用種別Kに対
し、満杯フラグを1にし、適性バッファサイズ以外Oク
リアする。そして待ち(WAIT)状態にする。
If i cannot be determined as described above, the full flag is set to 1 for the usage type K in the buffer usage right allocation table (usage type) 4, and O is cleared except for the appropriate buffer size. Then, it is placed in a WAIT state.

(2:J  バッファからのデータ払い出しが完了した
時点。
(2: J: The point in time when the data output from the buffer is completed.

説明上、使用種別Kにおいて、交替バッファの内、バッ
ファj(ノニ1or2)でデータ払い出しが完了したも
のとする。
For the sake of explanation, it is assumed that in usage type K, data dispensing has been completed in buffer j (Noni 1 or 2) among the spare buffers.

まず、バッファ使用権割付けデープル(エリアアドレス
順)4内の該当バッファに対して、使用種別Kが占有し
ているケースを1とすると、この占有使用種別をOにす
る。
First, if the case in which the usage type K occupies the corresponding buffer in the buffer usage right allocation table 4 (area address order) is 1, then this occupancy usage type is set to O.

次に、適性バツファザイズをチェックする。満杯フラグ
がOの場合、バッファ(3−j)の現在データ格納量、
すなわち、(最終格納ポインタ)−(先頭ポインタ)+
1を適性バッファサイズにする。
Next, check the aptitude factorization. If the full flag is O, the current data storage amount of the buffer (3-j),
In other words, (last storage pointer) - (start pointer) +
Set 1 to the appropriate buffer size.

満杯フラグが1の場合、適性バッファサイズを2倍にす
る。
If the full flag is 1, double the appropriate buffer size.

そして、バッファ使用権割付けテーブル(エリアアドレ
ス順)4内のバッファjに対して、新たに、使用種別に
用に適性バッファサイズ分のバッファを空きエリアに割
り付ける。必要な空きエリアがない場合は、確保可能な
最大のエリアを割付ける。
Then, for the buffer j in the buffer usage right allocation table (in order of area address) 4, a buffer of the appropriate buffer size is newly allocated to the empty area according to the usage type. If the required free area is not available, allocate the largest area that can be secured.

また、バッファ使用権割付けテーブル(使用種別)偵)
4内の使用種別Kに対して、満杯フラグを0、交1> 
バッファjの先頭ポインタ、最終ポインタ、最終格納ポ
インタをセットし、使用可バッファ煮を」にし、交替バ
ッファ(3−j ) ノf−タを払い出す。データ払い
出し中フラグは、Iのままにしておく。
Also, buffer usage rights allocation table (use type)
For usage type K in 4, set full flag to 0, cross 1>
The head pointer, last pointer, and last storage pointer of buffer j are set, the number of usable buffers is set to ``,'' and the replacement buffer (3-j) node is issued. The data payout flag is left at I.

最後に、新規使用要求が出されたが、空きエリアがなく
、満杯フラグを立て、バッファ使用権割り付けテーブル
(使用種別類)4を調べ、あれば再度、前述の新規使用
要求の場合の処理を行う。
Finally, a new usage request is issued, but there is no free area, so the full flag is set, the buffer usage right allocation table (usage type) 4 is checked, and if there is, the processing for the new usage request described above is performed again. conduct.

これらの処理結果について第3図に示す例・2用いて説
明する。
These processing results will be explained using Example 2 shown in FIG.

第3図の処理種別■によれば次のとおりである。According to the processing type (■) in FIG. 3, it is as follows.

−処理当りの転送データ量が10’、1秒描りのバッフ
ァ格納要求頻度が100回、1回当りのバッファ格納デ
ータ1が1000.1回当りのノ(ソファ払い出し時間
が0.03秒、適性バッファサイズが2000とする。
- Transfer data amount per process is 10', buffer storage request frequency per second is 100 times, buffer storage data 1 per time is 1000.1 time (sofa payout time is 0.03 seconds, Assume that the appropriate buffer size is 2000.

ここでバッファサイズが2000のまま不変だと、バッ
ファ満杯までの時間が0.02秒で1バッファ払い出し
時間0.03秒よりも短かいため、106のデータを転
送するのに約15秒かかる。これに対し1本発明の方式
によれば、1回目のバッファ払い出しの間に、交替バッ
ファの他方がバッファ満杯になるため、)(ソファ払い
出し完了時点に1割り付けバッファサイズを変更し、3
000にする。これが最適のバッファサイズとなり10
6のデータを転送するのに約10秒となり、時間を短縮
できる。
Here, if the buffer size remains unchanged at 2000, it will take approximately 15 seconds to transfer 106 pieces of data, since the time it takes for the buffer to become full is 0.02 seconds, which is shorter than the time taken for discharging one buffer, 0.03 seconds. On the other hand, according to the method of the present invention, the other one of the alternate buffers becomes full during the first buffer dispensing.
Set it to 000. This is the optimal buffer size of 10
It takes about 10 seconds to transfer the data of 6, which can shorten the time.

以下、同様にし、第3図の処理種別■〜■については固
定の場合と本方式の場合とでは、1処理当シの転送時間
が同じとなる。
In the same manner, the transfer time for one process is the same between the fixed type and the present method for the process types (1) to (4) in FIG.

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

以上述べたように本発明によれば、外部入出力装置への
転送用画像データを一時的に格納するバッファにおいて
、複数の処理をもってこのバッファを分割使用せしめ、
各々の処理へのバッファ割付けを最新の一定時間内で、
しかもバッファへの画像データの格納頻度に応じて自動
的(C領域を割付ケるようにしたので、バッファのメモ
リ効率が向上し、かつ、転送時間の短縮化を図れるとい
う効果がある。
As described above, according to the present invention, in a buffer that temporarily stores image data for transfer to an external input/output device, this buffer is divided and used by a plurality of processes,
Allocate buffers to each process within a certain amount of time,
Moreover, since the C area is automatically allocated according to the frequency of storing image data in the buffer, the memory efficiency of the buffer is improved and the transfer time can be shortened.

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

第1図は本発明の実施例を示すブロック図、第2図は共
通画像バッファとバッファ使用権割付けテーブルの一構
成例を示す説明図、第3図は本発明によるバラフッ使用
例を説明するために示す説明図1.J4図は交替バッフ
ァからのデータ払い出し処理を説明するために示すタイ
ムチャートである。 l・・・データ格納処理部、2・・・共通画像バッファ
、3・・・データ払い出し処理部、4・・・使用権割付
けテーブル、5・・・要求受付け処理部、6・・・バッ
ファ使用権チェック処理部、7・・・バッファ使用権分
割処理部、8・・・バッファ使用権割付け変更処理部、
9・・・バッファ使用権総合処理部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of the configuration of a common image buffer and a buffer usage right allocation table, and FIG. Explanatory diagram 1 shown in . Figure J4 is a time chart shown to explain the data payout process from the replacement buffer. l...Data storage processing unit, 2...Common image buffer, 3...Data dispensing processing unit, 4...Right allocation table, 5...Request reception processing unit, 6...Buffer use right check processing unit, 7... buffer usage right division processing unit, 8... buffer usage right allocation change processing unit,
9... Buffer usage right comprehensive processing unit.

Claims (1)

【特許請求の範囲】[Claims] 1、外部記憶装置にデータを転送する手段と、転送のた
めに転送元で一時的にデータを格納するバッファとその
バツフアへデータを格納する手段とを有し大量な画像デ
ータを処理する画像処理方式において、前記バッファを
複数の処理で時分割的に使用する共通画像バッファとし
、複数個のバッファ使用権と使用できるバッファの物理
的位置との対応づけを記憶する使用権割り付けテーブル
を設け、単位時間当りのバツフアへのデータ格納量を各
使用権毎に検知する手段を有し、該手段からの検知結果
に応じて前記使用権割り付けテーブルを変更し、バッフ
ァの使用権割り付けを変更することを特徴とする共有画
像バッファ自動最適化使用割り付け方式。
1. Image processing that processes a large amount of image data by having means for transferring data to an external storage device, a buffer for temporarily storing data at the transfer source for transfer, and a means for storing data in the buffer. In this method, the buffer is a common image buffer that is used in a time-sharing manner in a plurality of processes, a usage rights allocation table is provided that stores the correspondence between a plurality of buffer usage rights and the physical positions of usable buffers, and a unit It has means for detecting the amount of data stored in the buffer per hour for each usage right, and changes the usage rights allocation table according to the detection result from the means to change the allocation of buffer usage rights. Features a shared image buffer automatic optimization usage allocation method.
JP7719386A 1986-04-03 1986-04-03 Automatic optimized application allocating system for shared picture buffer Pending JPS62233825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7719386A JPS62233825A (en) 1986-04-03 1986-04-03 Automatic optimized application allocating system for shared picture buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7719386A JPS62233825A (en) 1986-04-03 1986-04-03 Automatic optimized application allocating system for shared picture buffer

Publications (1)

Publication Number Publication Date
JPS62233825A true JPS62233825A (en) 1987-10-14

Family

ID=13626980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7719386A Pending JPS62233825A (en) 1986-04-03 1986-04-03 Automatic optimized application allocating system for shared picture buffer

Country Status (1)

Country Link
JP (1) JPS62233825A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07302225A (en) * 1992-09-21 1995-11-14 Grass Valley Group Inc:The Continuous data recording and reproducing apparatus and cache control method
JP2016004368A (en) * 2014-06-16 2016-01-12 富士ゼロックス株式会社 Data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07302225A (en) * 1992-09-21 1995-11-14 Grass Valley Group Inc:The Continuous data recording and reproducing apparatus and cache control method
JP2016004368A (en) * 2014-06-16 2016-01-12 富士ゼロックス株式会社 Data processor

Similar Documents

Publication Publication Date Title
US5579507A (en) Data transfer control of virtual storage supported by three-level hierarchical storage
JP4323637B2 (en) Memory allocation method, memory allocation device, and storage medium
US6115793A (en) Mapping logical cache indexes to physical cache indexes to reduce thrashing and increase cache size
JP2007108981A (en) Data exchange method between storage device and volume
JPS5834857B2 (en) Priority determination mechanism in memory hierarchy
EP0853281A2 (en) Raid apparatus and access control method therefor
JPH0675897A (en) Method and device for managing buffer memory for allowing division
JPH07334310A (en) Disk device and buffer storage control method for read data of the same
JP3623697B2 (en) Disc time sharing apparatus and method
JP4091225B2 (en) Disc time sharing apparatus and method
US7552285B2 (en) Line fill techniques
JPS62233825A (en) Automatic optimized application allocating system for shared picture buffer
JP2874571B2 (en) Memory management device
JPH09265416A (en) Hierarchical information management method and execution device for the method
JPH0329041A (en) Decentralized paging control system
JPH09185531A (en) Omissiion avoiding device for trace information
JP2903605B2 (en) File area management processing method
JPH0448355A (en) Distributed paging control system
JP3980729B2 (en) Storage area management system and medium storing storage area management program
JPH05324433A (en) Data base input control system
JPS61279968A (en) Buffer control system
JPH1040194A (en) Communication controller and receiving buffer control system
JPS63234316A (en) Exclusive control system for table storage
JPH08249225A (en) Memory management device
JPH0528028A (en) Memory management system