JP2504843B2 - Buffer expansion device - Google Patents
Buffer expansion deviceInfo
- Publication number
- JP2504843B2 JP2504843B2 JP1232576A JP23257689A JP2504843B2 JP 2504843 B2 JP2504843 B2 JP 2504843B2 JP 1232576 A JP1232576 A JP 1232576A JP 23257689 A JP23257689 A JP 23257689A JP 2504843 B2 JP2504843 B2 JP 2504843B2
- Authority
- JP
- Japan
- Prior art keywords
- area
- buffer
- data
- external storage
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、外部記憶装置とデータの入出力を行う電子
機器の外部データを保持するバッファの拡張装置に関す
るものである。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer expansion device for holding external data of an electronic device that inputs / outputs data from / to an external storage device.
〈従来技術〉 従来、外部記憶装置からデータをとりこみ演算等の仕
事を行う電子機器は、第6図に示すように外部記憶6の
データをストアするための固定容量のバッファ・プール
5を具備している。<Prior Art> Conventionally, an electronic device that takes in data from an external storage device and performs a task such as calculation has a fixed-capacity buffer pool 5 for storing data in the external storage 6 as shown in FIG. ing.
そして、外部記憶6からデータを読み込む際には、図
示しないCPUからインタフェースI/F1を介して外部記憶
6のデータを要求する命令が入出力管理部2に対してな
され、該入出力管理部2が外部記憶6から前記指示され
たデータを読み込み、該データをバッファ・プール5に
ストアする。そしてCPUはバッファプール5にストアさ
れたデータを用いて演算等の仕事を行う。When reading the data from the external storage 6, the CPU (not shown) issues an instruction to the input / output management unit 2 via the interface I / F 1 to the input / output management unit 2. Reads the instructed data from the external storage 6 and stores the data in the buffer pool 5. Then, the CPU uses the data stored in the buffer pool 5 to perform work such as calculation.
〈発明が解決しようとする課題〉 しかしながら、上述した従来の方法では、バッファの
容量が固定であるため、以下の様な問題がある。<Problems to be Solved by the Invention> However, the conventional method described above has the following problems because the capacity of the buffer is fixed.
データ読み込みの頻度に比してバッファの容量が小
さい場合、読み込んだデータでバッファがすぐに一杯に
なり、更にデータを読み込む時には、まずバッファ内の
いづれかのデータを放棄又は外部記憶へ書き込んでバッ
ファ内に空領域を作らなければならない。従って外部記
憶とのデータの入出力が頻繁に発生して仕事の処理速度
が低下する。If the buffer capacity is small compared to the frequency of reading data, the buffer will be filled up immediately with the read data.When reading further data, first discard any data in the buffer or write it to external storage and then store it in the buffer. You have to make an empty area. Therefore, input and output of data to and from the external storage occurs frequently, and the work processing speed is reduced.
上記の問題点を解決するためにバッファの容量を
大きくすると、全メモリの容量は固定であるため、バッ
ファ以外の他の領域(例えば、アプリケーションプログ
ラムのユーザエリア)の容量が相対的に小さくなり、仕
事の能力が低下する。When the capacity of the buffer is increased to solve the above problem, the capacity of the entire memory is fixed, and thus the capacity of the area other than the buffer (for example, the user area of the application program) becomes relatively small, Work ability is reduced.
そこで、本発明の目的は、メモリの他の領域を圧迫す
ることなく、外部データをストアするバッファを拡張す
るバッファ拡張装置を提供することにある。Therefore, it is an object of the present invention to provide a buffer expansion device that expands a buffer that stores external data without squeezing other areas of the memory.
〈課題を解決するための手段〉 本発明は上記目的を達成するために、特に、外部記憶
装置とデータの入出力を行い、前記外部記憶装置からの
データを保持するための固定バッファを含み且つこの固
定バッファ以外の領域をユーザーエリアとするメモリを
有する電子機器において、 前記外部記憶装置からデータを取り込む要求があると、
前記固定バッファに空領域があるか否かを判断する第1
の判断手段と、 前記第1の判断手段によって空領域がないと判断され
ると、前記ユーザーエリアに空領域があるか否かを判断
する第2の判断手段と、 前記第2の判断手段によって空領域があると判断され
ると、前記ユーザーエリアに前記外部記憶装置から取り
込んだデータを格納し、その領域を拡張バッファとして
登録する登録手段と、 前記ユーザーエリアの容量に不足が生じると、前記拡
張バッファ内のデータを放棄又は前記外部記憶装置へ出
力して、その領域を前記ユーザーエリアへ返還する返還
手段と を具備することを特徴とするバッファ拡張装置。<Means for Solving the Problems> In order to achieve the above object, the present invention particularly includes a fixed buffer for inputting and outputting data to and from an external storage device and holding data from the external storage device. In an electronic device having a memory having an area other than the fixed buffer as a user area, when there is a request to capture data from the external storage device,
First for determining whether or not there is an empty area in the fixed buffer
And a second determining means that determines whether or not there is an empty area in the user area when the first determining means determines that there is no empty area. When it is determined that there is an empty area, the user area stores the data taken in from the external storage device, and the area is registered as an extension buffer; A buffer expansion device comprising: return means for discarding data in the expansion buffer or outputting the data to the external storage device and returning the area to the user area.
〈作用〉 外部記憶装置からデータを取り込む要求があると、固
定バッファに空領域があるか否かを判断し、空領域がな
いと判断されると、ユーザーエリアに空領域があるか否
かを判断する。そして、空領域があると判断されると、
ユーザーエリアに外部記憶装置から取り込んだデータを
格納し、その領域を拡張バッファとして登録する。<Operation> When a request for fetching data from the external storage device is made, it is determined whether or not there is an empty area in the fixed buffer. When it is determined that there is no empty area, it is determined whether or not there is an empty area in the user area. to decide. Then, if it is determined that there is an empty area,
The data fetched from the external storage device is stored in the user area, and the area is registered as an extension buffer.
また、ユーザーエリアの容量に不足が生じると、拡張
バッファ内のデータを放棄又は外部記憶装置へ出力し
て、その領域をユーザーエリアへ返還する。When the capacity of the user area becomes insufficient, the data in the expansion buffer is discarded or output to the external storage device and the area is returned to the user area.
〈実施例〉 以下、本発明の実施例を図面を用いて詳細に説明す
る。<Example> Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第1図は本発明を適用した電子機器のメモリ周辺部の
構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a memory peripheral portion of an electronic device to which the present invention is applied.
1はCPU(図示せず)とメモリとの間に介在するイン
タフェースI/F、2は外部記憶6とのデータの入出力を
管理制御する入出力管理部、5は外部記憶6から読み込
んだデータをストアするバッファ・プール、3はバッフ
ァ・プール5以外のメモリを管理制御するメモリ管理
部、4はアプリケーションプログラムのユーザエリア、
7は後述する拡張バッファプールEbp(Extended buffer
pool)である。ユーザエリア4、バッファ・プール
5、拡張バッファ7は主記憶上に存在している。1 is an interface I / F interposed between a CPU (not shown) and a memory, 2 is an input / output management unit for managing and controlling data input / output to / from the external storage 6, and 5 is data read from the external storage 6. A memory pool for storing memory other than the buffer pool 5, 4 a user area for application programs,
7 is an extended buffer pool Ebp (Extended buffer) which will be described later.
pool). The user area 4, the buffer pool 5, and the extension buffer 7 exist in the main memory.
ここで、外部記憶6とは、例えばフロッピーディス
ク、ハードディスクと言った磁気ディスク装置等で構成
される。Here, the external storage 6 is composed of, for example, a magnetic disk device such as a floppy disk or a hard disk.
次に前記拡張バッファプール7を取得する方法を第2
図,第3図のフローチャートに従って説明する。Next, a second method for obtaining the extended buffer pool 7 will be described.
This will be described with reference to the flowcharts of FIGS.
第2図は入出力管理部2の拡張バッファプール取得時
の動作を示すものである。FIG. 2 shows the operation of the input / output management unit 2 when acquiring the extended buffer pool.
まず、CPUからインタフェースI/F1を介して外部記憶
6のデータ要求命令が発生すると、入出力管理部2はそ
の要求されたデータがバッファプール5内にあるか否か
を確認する。バッファプール5内に前記データがなけれ
ば、バッファプール5内に該データを外部記憶6から読
みこむための領域取得要求が発生する(ステップS1)。
そしてバッファプール2に空領域があるか否かを確認し
(ステップ2)、空領域があればステップS6に進み、な
ければステップS3に進む。ステップS3でメモリ管理部3
に対してバッファプール用のメモリ領域取得を要求す
る。そして、メモリ領域の取得に成功すれば、ステップ
S4で該取得メモリ領域を拡張バッファプール(Ebp)と
して登録してステップS6に進む。メモリ領域の取得に失
敗すれば、ステップS5に進んで既存のバッファプール内
に保持されているいづれかのデータを放棄又は外部記憶
6に出力し、空領域を作成する。ステップS6ではバッフ
ァプールの空領域をCPUの制御のもとに返す。CPUは前記
バッファプールの空領域にインタフェースI/F1,入出力
管理部2を介して外部記憶6から所望のデータを読み込
む。First, when a data request command for the external storage 6 is issued from the CPU via the interface I / F1, the input / output management unit 2 confirms whether or not the requested data is in the buffer pool 5. If the data does not exist in the buffer pool 5, an area acquisition request for reading the data from the external storage 6 is generated in the buffer pool 5 (step S1).
Then, it is confirmed whether or not there is an empty area in the buffer pool 2 (step 2). If there is an empty area, the process proceeds to step S6, and if not, the process proceeds to step S3. In step S3, the memory management unit 3
Request to get memory area for buffer pool. Then, if acquisition of the memory area is successful, step
The acquired memory area is registered as an extended buffer pool (Ebp) in S4, and the process proceeds to step S6. If the acquisition of the memory area fails, the process proceeds to step S5, and any data held in the existing buffer pool is discarded or output to the external storage 6 to create an empty area. In step S6, the empty area of the buffer pool is returned to the control of the CPU. The CPU reads desired data from the external storage 6 into the empty area of the buffer pool via the interface I / F 1 and the input / output management unit 2.
第3図は入出力管理部2の拡張バッファプール取得時
におけるメモリ管理部3の動作を表したものである。FIG. 3 shows the operation of the memory management unit 3 when the input / output management unit 2 acquires the extended buffer pool.
前記第2図のフローチャートのステップS3で入出力管
理部2からバッファプール用のメモリ領域取得要求がな
されると、ステップS8においてユーザエリア4に空領域
があるか否かを調べ、空領域がなければ、ステップS9で
ユーザエリア以外にバッファプールとして使用可能であ
る未使用領域(図示せず)があるか否かを調べる。ステ
ップS8、又はステップS9において空領域がみつかれば、
バッファプール用メモリ領域取得可能として、該空領域
を入出力管理部2の制御下におく。又、空領域がみつか
らなければバッファプール用メモリ領域取得不可能であ
ることを入出力管理部2へ出力する。When the input / output management unit 2 makes a memory area acquisition request for the buffer pool in step S3 of the flow chart of FIG. 2, it is checked in step S8 whether or not there is an empty area in the user area 4, and there is no empty area. For example, in step S9, it is checked whether or not there is an unused area (not shown) that can be used as a buffer pool other than the user area. If an empty area is found in step S8 or step S9,
The buffer pool memory area can be acquired, and the empty area is placed under the control of the input / output management unit 2. Further, it outputs to the input / output management unit 2 that the buffer pool memory area cannot be acquired if no empty area is found.
ところで、上述した新たに拡張バッファプールとして
登録されたメモリ領域は恒久的にバッファプールとして
用いるものではなく、メモリ管理部3からのメモリ領域
返還要求があれば前記拡張バッファプールをバッファプ
ールから切り離してメモリ管理部3の制御のもとに返す
ことが可能である。この方法を第1図のメモリ構成図に
従って説明する。まず、メモリ管理部3から入出力管理
部2へユーザエリアのメモリ領域(又は、他のエリアの
メモリ領域)の返還要求が出される。入出力管理部2は
返還要求のあった拡張バッファプール7の領域にデータ
が存在するか否かを確め、データが存在すれば該データ
を放棄又は外部記憶6へ出力等を行い、該領域をバッフ
ァプール5から切り離す。そして、メモリ管理部3は切
り離されたメモリ領域を空領域として自己の管理下にお
き、該領域を所望の処理に使用する。By the way, the above-mentioned memory area newly registered as an extended buffer pool is not used permanently as a buffer pool, but if there is a memory area return request from the memory management unit 3, the extended buffer pool is separated from the buffer pool. It can be returned under the control of the memory management unit 3. This method will be described with reference to the memory block diagram of FIG. First, the memory management unit 3 issues a return request for the memory area of the user area (or the memory area of another area) to the input / output management unit 2. The input / output management unit 2 confirms whether or not the data exists in the area of the extended buffer pool 7 for which the return request is made, and if the data exists, the data is abandoned or output to the external storage 6 to Is separated from the buffer pool 5. Then, the memory management unit 3 places the separated memory area under its own control as an empty area, and uses the area for desired processing.
このように、外部データをストアするバッファプール
をメモリの他のエリアの空領域を利用して随時拡張する
ことにより、余計なデータ入出力の回数が減少し、仕事
の処理速度の向上が図れる。As described above, by expanding the buffer pool for storing external data by using the empty area of the other area of the memory at any time, the number of unnecessary data inputs / outputs can be reduced and the work processing speed can be improved.
又、バッファ・プール以外のメモリ領域に容量不足が
生じた場合は、新たに取得した拡張バッファ・プールを
他のメモリ領域に返還するようにしたので、バッファ・
プールの拡張がメモリの他のエリアを圧迫して仕事の処
理に支障をきたすようなことはおこらない。Also, when there is insufficient capacity in the memory area other than the buffer pool, the newly acquired extended buffer pool is returned to another memory area.
The expansion of the pool does not occupy other areas of memory and interfere with the processing of work.
〈発明の効果〉 本発明によれば、外部データを保持するバッファをユ
ーザーエリアの空き具合をみて随時拡張することがで
き、且つ拡張されたバッファは、ユーザーエリアの容量
不足が生じると随時返還されるため、仕事の処理能力に
支障をきたすことなく余計なデータの入出力回数をでき
るだけ抑えて仕事の処理速度の向上が図れる。<Effects of the Invention> According to the present invention, the buffer holding external data can be expanded at any time depending on the availability of the user area, and the expanded buffer is returned at any time when the user area capacity becomes insufficient. Therefore, it is possible to improve the work processing speed by suppressing the number of unnecessary data inputs / outputs as much as possible without affecting the work processing capacity.
第1図は本発明を適用した電子機器のメモリ周辺部の構
成を示すブロック図、第2図は入出力管理部の動作を示
すフローチャート、第3図はメモリ管理部の動作を示す
フローチャート、第4図は従来の電子機器のメモリ周辺
部の構成を示すブロック図である。 1……インタフェース(I/F)、2……入出力管理部、
3……メモリ管理部、4……ユーザエリア、5……バッ
ファプール、6……外部記憶、7……拡張バッファプー
ルFIG. 1 is a block diagram showing a configuration of a memory peripheral portion of an electronic device to which the present invention is applied, FIG. 2 is a flow chart showing an operation of an input / output management unit, and FIG. 3 is a flow chart showing an operation of a memory management unit. FIG. 4 is a block diagram showing a configuration of a memory peripheral portion of a conventional electronic device. 1 ... interface (I / F), 2 ... input / output management unit,
3 ... Memory management unit, 4 ... User area, 5 ... Buffer pool, 6 ... External storage, 7 ... Extended buffer pool
Claims (1)
記外部記憶装置からのデータを保持するための固定バッ
ファを含み且つこの固定バッファ以外の領域をユーザー
エリアとするメモリを有する電子機器において、 前記外部記憶装置からデータを取り込む要求があると、
前記固定バッファに空領域があるか否かを判断する第1
の判断手段と、 前記第1の判断手段によって空領域がないと判断される
と、前記ユーザーエリアに空領域があるか否かを判断す
る第2の判断手段と、 前記第2の判断手段によって空領域があると判断される
と、前記ユーザーエリアに前記外部記憶装置から取り込
んだデータを格納し、その領域を拡張バッファとして登
録する登録手段と、 前記ユーザーエリアの容量に不足が生じると、前記拡張
バッファ内のデータを放棄又は前記外部記憶装置へ出力
して、その領域を前記ユーザーエリアへ返還する返還手
段とを具備することを特徴とするバッファ拡張装置。1. An electronic device having a memory including a fixed buffer for inputting / outputting data to / from an external storage device and holding data from the external storage device, and having a region other than the fixed buffer as a user area. , When there is a request to fetch data from the external storage device,
First for determining whether or not there is an empty area in the fixed buffer
And a second determining means that determines whether or not there is an empty area in the user area when the first determining means determines that there is no empty area. When it is determined that there is an empty area, the user area is stored with the data fetched from the external storage device, and the area is registered as an extension buffer; A buffer expansion device comprising: a return means for abandoning data in the expansion buffer or outputting it to the external storage device and returning the area to the user area.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1232576A JP2504843B2 (en) | 1989-09-06 | 1989-09-06 | Buffer expansion device |
| GB9019382A GB2236204B (en) | 1989-09-06 | 1990-09-05 | Method of extending buffer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1232576A JP2504843B2 (en) | 1989-09-06 | 1989-09-06 | Buffer expansion device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0394346A JPH0394346A (en) | 1991-04-19 |
| JP2504843B2 true JP2504843B2 (en) | 1996-06-05 |
Family
ID=16941515
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1232576A Expired - Lifetime JP2504843B2 (en) | 1989-09-06 | 1989-09-06 | Buffer expansion device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP2504843B2 (en) |
| GB (1) | GB2236204B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07319630A (en) * | 1994-05-27 | 1995-12-08 | Nec Corp | Buffer capacity determination system |
| JP3551259B2 (en) * | 2003-04-24 | 2004-08-04 | ソニー株式会社 | Information device control system, information device and control method therefor |
| WO2011099099A1 (en) * | 2010-02-10 | 2011-08-18 | 日本電気株式会社 | Storage device |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS51101432A (en) * | 1975-03-04 | 1976-09-07 | Hitachi Ltd | DEETABATSU FUASEIGYO HOSHIKI |
| US4569034A (en) * | 1982-07-19 | 1986-02-04 | International Business Machines Corporation | Method and apparatus which allows the working storage to be reconfigured according to demands for processing data input |
| US4603382A (en) * | 1984-02-27 | 1986-07-29 | International Business Machines Corporation | Dynamic buffer reallocation |
| ES2072862T3 (en) * | 1987-06-24 | 1995-08-01 | Westinghouse Electric Corp | EXCHANGE OF INFORMATION IN A MULTIPROCESSOR SYSTEM. |
-
1989
- 1989-09-06 JP JP1232576A patent/JP2504843B2/en not_active Expired - Lifetime
-
1990
- 1990-09-05 GB GB9019382A patent/GB2236204B/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| GB2236204A (en) | 1991-03-27 |
| GB2236204B (en) | 1993-08-18 |
| JPH0394346A (en) | 1991-04-19 |
| GB9019382D0 (en) | 1990-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2504843B2 (en) | Buffer expansion device | |
| US5170479A (en) | File block managing system using next record header position data and delete history data from block header and record headers to locate requested record block | |
| JPH02201552A (en) | Transaction trace information picking system | |
| JP4826873B2 (en) | Microprocessor system with hot routine memory | |
| JPH0581049A (en) | Time management system for memory | |
| JP2912657B2 (en) | File access processor | |
| JP2002055874A (en) | Buffer memory managing device, buffer memory managing method and computer readable recording medium in which program to make computer implement the same method is recorded | |
| JPH05257807A (en) | Cache memory controller | |
| JP2546528B2 (en) | Variable-length block storage system for fixed-length sector disk | |
| JPH04178731A (en) | Reuse method of method cache information in object-oriented processing system | |
| JPH0337748A (en) | External storage accessing system utilizing main storage | |
| JP2566467B2 (en) | Data transfer device | |
| JP3019864B2 (en) | Memory controller | |
| JPH05233402A (en) | Memory mapped file access system | |
| JPH06119219A (en) | File data precedence read-in system | |
| JPH02242350A (en) | Circulating file processing system for data processing system | |
| JPH0461373B2 (en) | ||
| JPH04111015A (en) | information recording device | |
| JPH0546641A (en) | On-line data succeeding system | |
| JPH0756639B2 (en) | Virtual memory management method for images | |
| JP2003036201A (en) | Memory access management device | |
| JPH0324612A (en) | File update retrieving processor | |
| JPH02280240A (en) | File processing system for program | |
| JPS62221045A (en) | File writing system | |
| JPH0758979B2 (en) | Storage type logical destination data management processing method |