JPH01169550A - Buffer control system - Google Patents
Buffer control systemInfo
- Publication number
- JPH01169550A JPH01169550A JP32910287A JP32910287A JPH01169550A JP H01169550 A JPH01169550 A JP H01169550A JP 32910287 A JP32910287 A JP 32910287A JP 32910287 A JP32910287 A JP 32910287A JP H01169550 A JPH01169550 A JP H01169550A
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- area
- management table
- size
- continuous area
- 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
Links
- 239000000872 buffer Substances 0.000 title claims abstract description 71
- 238000007726 management method Methods 0.000 claims description 42
- 230000004044 response Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、コンピュータ等のメモリ内のバッファを管理
する管理方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a management method for managing buffers in a memory of a computer or the like.
従来のバッファの管理方式では、タスク等からバッファ
の要求があると、要求されたサイズ分の物理アドレス空
間上の連続エリアをさがして該タスクにバッファエリア
を割り当てている。In conventional buffer management systems, when a task or the like requests a buffer, it searches for a contiguous area in the physical address space of the requested size and allocates the buffer area to the task.
上述した従来のバッファの管理方式では、要求されたバ
ッファのサイズ分のエリアが連続してない場合、たとえ
使用可能なバッファエリアの総サイズが要求されたサイ
ズより大き〆か!ったとしてもバッファエリアを割り肖
てることかできない。In the conventional buffer management method described above, if the area for the requested buffer size is not contiguous, even if the total size of the available buffer area is larger than the requested size! Even if you do, you can only allocate the buffer area.
本発明の方式は、情報を記憶するバッファ記憶手段と、
前記バッファ記憶手段内に散在する使用可能な複数の使
用可領域対応に設けられそれぞれ対応する該領域の範囲
を示すアドレス情報および次のテーブルを示すポインタ
情報を含む複数の管理テーブルと、要求元からのバッフ
ァ取得要求に応答して、該取得要求により要求された大
きさの領域を前記管理テーブルを参照して前記要求元に
割当てこの割当てた領域に対応する管理テーブルの削除
または更新を行ない、前記要求元がらのバッファ返却要
求に応答して、返却される領域に関連する前記管理テー
ブルの更新または新たな管理テーブルの作成を行なうテ
ーブル変更手段とを含む。The method of the present invention includes a buffer storage means for storing information;
A plurality of management tables provided corresponding to a plurality of usable areas scattered within the buffer storage means and including address information indicating the range of the corresponding area and pointer information indicating the next table; In response to the buffer acquisition request, allocates an area of the size requested by the acquisition request to the request source by referring to the management table, deletes or updates the management table corresponding to the allocated area, and and table changing means for updating the management table or creating a new management table related to the area to be returned in response to a buffer return request from a request source.
C実施例〕 次に本発明について図面を参照して詳細に説明する。C Example] Next, the present invention will be explained in detail with reference to the drawings.
第1図は本発明の一実施例を示し、同図(a)はバッフ
ァ取得要求処理に関係する部分を示し、同図(b)はバ
ッファ返却要求処理に関係する部分を示す。FIG. 1 shows an embodiment of the present invention, in which (a) shows a portion related to buffer acquisition request processing, and FIG. 1(b) shows a portion related to buffer return request processing.
まず、第1図(a)を参照してバッファ取得要求処理に
ついて説明する。あるタスクからバッファ要求があると
、連続エリアチエツク手段120は要求されたバッファ
サイズ分の連続エリアがバッファ110内に存在するか
否かを管理テーブル130を参照してチエツクし、存在
する場合にはり
連続エリ条う−ン手段140がその連続エリアバッファ
要求元のタスクに与え、この連続エリアを管理している
管理テーブル130の対応するバッファサイズ情報を更
新する。一方、要求されたサイズ分の連続エリアが存在
しない場合には、論理バッファリターン手段150が管
理テーブル130によりチェーンされた論理バッファを
バッファエリア110よりリターンし、関係する個々の
管理テーブル130の内容を変更する。そして管理テー
ブル変更手段160がメインの管理テーブルの内容すな
わち使用可能な総バッファサイズ情報を更新する。First, buffer acquisition request processing will be explained with reference to FIG. 1(a). When a buffer request is received from a certain task, the continuous area check means 120 refers to the management table 130 to check whether or not a continuous area corresponding to the requested buffer size exists in the buffer 110. The continuous area acquisition means 140 provides the continuous area buffer to the task that requested the continuous area, and updates the corresponding buffer size information in the management table 130 that manages this continuous area. On the other hand, if a continuous area of the requested size does not exist, the logical buffer return means 150 returns the logical buffers chained by the management table 130 from the buffer area 110, and returns the contents of each related management table 130. change. Then, the management table changing means 160 updates the contents of the main management table, that is, the total usable buffer size information.
次に同図(b)を参照してバッファ返却処理について説
明する。あるタスクからバッファ返却要求があると、バ
ッファ連続チエツク手段220は返却されたバッファエ
リアが現在使用可能なバッファエリアのどれかに連続し
ているか否かを管理テーブル230を参照してチエツク
し、連続しているエリアが存在する場合にはバッファテ
ーブル変更手段240が管理テーブル130の対応する
エリアのサイズ情報を更新する。連続するエリアが存在
しない場合にはテーブルチェーン手段250が管理テー
ブル手段130内に返却されたバッファエリアに対する
管理テーブルを新たに作成し今まであった管理テーブル
のチェーンにチェーンする。Next, the buffer return process will be explained with reference to FIG. When a buffer return request is made from a certain task, the buffer continuation check means 220 refers to the management table 230 to check whether the returned buffer area is contiguous to any of the currently available buffer areas, and If there is an area where the size of the area is, the buffer table changing means 240 updates the size information of the corresponding area in the management table 130. If a continuous area does not exist, the table chain means 250 creates a new management table for the returned buffer area in the management table means 130, and chains it to the chain of management tables that have existed so far.
そして最後に、変更手段160でメインの管理テーブル
内の総バッファサイズ情報を更新する。Finally, the changing means 160 updates the total buffer size information in the main management table.
第2図(a)はある時点でのバッファ110の状態を示
し、複数の使用中エリア、返却エリア(少なくとも1回
は使用されたが現在は使用されていないエリア)■〜■
および未使用エリア(1回も使用されていないエリア)
が点在している。同図(b)は同図(a)の状態を反映
する管理テーブル手段130の内容を概念的に示し、メ
インの管理テーブルを起点として複数の連続エリア対応
の管理テーブルがチエイニングされている。FIG. 2(a) shows the state of the buffer 110 at a certain point in time, including a plurality of in-use areas and return areas (areas that have been used at least once but are currently unused).
and unused area (area that has never been used)
are scattered. FIG. 4B conceptually shows the contents of the management table means 130 reflecting the state shown in FIG.
第3図(a)は前記メインの管理テーブルの内容を示し
、先頭の管理テーブルへのポインタすなわちアドレスと
、バッファ110内の使用可能なバラヘアエリアの合計
のサイズを示す前記総バッファサイズ情報とを有する。FIG. 3(a) shows the contents of the main management table, including a pointer to the first management table, that is, an address, and the total buffer size information indicating the total size of the usable area in the buffer 110. has.
第3図(b)は個々の管理テーブルの内容を示し、次の
管理テーブルへのポインタすなわちアドレスと、この管
理テーブルが管理するエリアの先頭アドレスおよび末尾
アドレスと、バッファのサイズ情報とを有する。FIG. 3(b) shows the contents of each management table, which includes a pointer or address to the next management table, the start and end addresses of the area managed by this management table, and buffer size information.
本実施例では、第2図(b)に示すように、メインの管
理テーブルに、まず未使用のバッファエリアを管理する
テーブルをチェーンし、その後順次返却されたバッファ
エリアを管理するテーブルをチェーンしている。もし、
返却されたバッファエリアが現在使用可能なあるバッフ
ァエリアと連続したエリアであるときは、この使用可能
なあるバッファエリアの管理テーブルのサイズ情報を返
却されたエリア分のだけ増加したサイズ情報に更新し、
この返却エリアに対しては新しい管理テーブルは作成し
ない。この結果、管理テーブルの数をできるだけ少なく
できる。In this embodiment, as shown in FIG. 2(b), a table for managing unused buffer areas is first chained to the main management table, and then a table for managing returned buffer areas is chained to the main management table. ing. if,
If the returned buffer area is contiguous with a currently available buffer area, the size information in the management table of this available buffer area is updated to the size information increased by the returned area. ,
A new management table will not be created for this return area. As a result, the number of management tables can be minimized.
また、チェーンされているバッファエリアの中に要求さ
れたバッファのサイズを満たす使用可能なバッファエリ
アが存在する場合には、そのバッファを優先的に使用す
ることによりなるべく連続エリアのバッファを使用でき
るようにする。Also, if there is an available buffer area that satisfies the requested buffer size among the chained buffer areas, that buffer will be used preferentially so that buffers in contiguous areas can be used as much as possible. Make it.
以上本発明には、返却バッファのように点在したエリア
であっても論理的に連続したエリアと見ることができ、
要求されたバッファのサイズ分の物理的な連続エリアが
ない場合でもバッファを使用することができる。したが
って、バッファエリアを効率よく使用することができる
。As described above, in the present invention, even scattered areas such as return buffers can be viewed as logically continuous areas.
Buffers can be used even if there is no physically contiguous area for the size of the requested buffer. Therefore, the buffer area can be used efficiently.
第1図は本発明の一実施例を示す図、第2図はバッファ
の状態と管理テーブルとの関係を示す図および第3図は
管理テーブルの内容を示す図である。
110・・・・・・バッファエリア、120・・・・・
・連続エリアチエツク手段、130・・・・・・管理テ
ーブル手段、140・・・・・・連続エリアリターン手
段、150・・・・・・論理バッファリターン手段、1
60・・・・・・管理テーブル変更手段、250・・・
・・・テーブルチェーン手段。
代理人 弁理士 内 原 晋
/10 /i夕 4
汐(A)
メインa管理テープ・ル
条
ィ固々a智)艶フ−7フンFIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the relationship between the buffer status and a management table, and FIG. 3 is a diagram showing the contents of the management table. 110...Buffer area, 120...
・Continuous area check means, 130... Management table means, 140... Continuous area return means, 150... Logical buffer return means, 1
60... Management table changing means, 250...
... table chain means. Agent Patent Attorney Susumu Uchihara /10 /iyu 4
Ushio (A) Main a management tape Ru ryo solid achi) glossy fu-7 hun
Claims (1)
用可領域対応に設けられそれぞれ対応する該領域の範囲
を示すアドレス情報および次のテーブルを示すポインタ
情報を含む複数の管理テーブルと、 要求元からのバッファ取得要求に応答して、該取得要求
により要求された大きさの領域を前記管理テーブルを参
照して前記要求元に割当てこの割当てた領域に対応する
管理テーブルの削除または更新を行ない、前記要求元か
らのバッファ返却要求に応答して、返却される領域に関
連する前記管理テーブルの更新または新たな管理テーブ
ルの作成を行なうテーブル変更手段とを含むことを特徴
とするバッファ管理方式。[Scope of Claims] Buffer storage means for storing information; and address information and a following table provided corresponding to a plurality of usable areas scattered within the buffer storage means and indicating the range of each corresponding area. a plurality of management tables containing pointer information indicating a buffer acquisition request from a request source; and in response to a buffer acquisition request from a request source, allocate an area of the size requested by the acquisition request to the request source by referring to the management table; A table change that deletes or updates a management table corresponding to the area that has been returned, and updates the management table or creates a new management table related to the area to be returned in response to a buffer return request from the request source. A buffer management method comprising means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32910287A JPH01169550A (en) | 1987-12-24 | 1987-12-24 | Buffer control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32910287A JPH01169550A (en) | 1987-12-24 | 1987-12-24 | Buffer control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01169550A true JPH01169550A (en) | 1989-07-04 |
Family
ID=18217629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP32910287A Pending JPH01169550A (en) | 1987-12-24 | 1987-12-24 | Buffer control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01169550A (en) |
-
1987
- 1987-12-24 JP JP32910287A patent/JPH01169550A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5434993A (en) | Methods and apparatus for creating a pending write-back controller for a cache controller on a packet switched memory bus employing dual directories | |
US6151663A (en) | Cluster controller for memory and data cache in a multiple cluster processing system | |
EP0447160A2 (en) | Maintaining data consistency in cache storage systems | |
JPH05210637A (en) | Method of simultaneously controlling access | |
GB2265734A (en) | Free memory cell management system | |
JP3609841B2 (en) | File management device | |
KR20190096838A (en) | Method and apparatus for sending barrier command using dummy io request | |
JPH07244642A (en) | Parallel processing computers | |
JPH01169550A (en) | Buffer control system | |
JP3030030B2 (en) | Area management processing method | |
US5659744A (en) | Data file store system with means for efficiently managing freeing of data blocks | |
JPS62160545A (en) | System for managing unused area of direct access storage device | |
JPH02299037A (en) | File allocation processing system | |
JPS6327936A (en) | File management method | |
JPH0337748A (en) | External storage accessing system utilizing main storage | |
JPH03222047A (en) | Area control system | |
JPH05265969A (en) | Communication method between cpu and service processor | |
JPH0387941A (en) | Decentralized data base processing system | |
JPS63192126A (en) | Processing system for space control of data set | |
JPH03294936A (en) | Multi-media system control system | |
JPS63280356A (en) | Buffer management system for virtual disk device | |
JPH01166124A (en) | Volume shared control system | |
JPH01150952A (en) | Method and device for controlling access to multi-dimensional address memory | |
JPH05158892A (en) | Data management system for distribution processing | |
JPS63217440A (en) | Table managing system |