JPH08123718A - Buffer controller - Google Patents
Buffer controllerInfo
- Publication number
- JPH08123718A JPH08123718A JP26071794A JP26071794A JPH08123718A JP H08123718 A JPH08123718 A JP H08123718A JP 26071794 A JP26071794 A JP 26071794A JP 26071794 A JP26071794 A JP 26071794A JP H08123718 A JPH08123718 A JP H08123718A
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- release
- acquisition
- group number
- 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.)
- Withdrawn
Links
Abstract
(57)【要約】
【目的】 本発明は、複数の処理部を有しバッファ制御
を必要とする計算機システム等にて用いられ、メモリ上
のバッファ領域におけるデータ格納状態を管理するバッ
ファ制御装置に関し、トラブル発生時にバッファ領域の
獲得順序および解放順序を正確に知ることができるよう
にして、迅速なトラブル対応を可能にすることを目的と
する。
【構成】 メモリ1上でデータを格納するためのバッフ
ァ領域を獲得する機能と獲得したバッファ領域を解放す
る機能とを有し、バッファ領域を獲得する際に当該バッ
ファ領域のヘッダ部に獲得通番を獲得順に書き込む獲得
通番書込部3と、バッファ領域を解放する際に当該バッ
ファ領域のヘッダ部に解放通番を解放順に書き込む解放
通番書込部4とをそなえて構成する。
(57) [Summary] [Object] The present invention relates to a buffer control device used in a computer system or the like having a plurality of processing units and requiring buffer control, and managing a data storage state in a buffer area on a memory. The purpose of the present invention is to enable a quick troubleshooting so that the acquisition order and the release order of the buffer areas can be accurately known when a trouble occurs. [Structure] It has a function of acquiring a buffer area for storing data on the memory 1 and a function of releasing the acquired buffer area, and when acquiring the buffer area, an acquisition serial number is added to the header part of the buffer area. It comprises an acquisition sequence number writing unit 3 for writing in the acquisition sequence and a release sequence number writing unit 4 for writing the release sequence number in the header part of the buffer region in the release sequence when releasing the buffer region.
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数の処理部(CP
U)を有しバッファ制御を必要とする計算機システム等
にて用いられ、メモリ上のバッファ領域におけるデータ
格納状態を管理するバッファ制御装置に関する。The present invention relates to a plurality of processing units (CP
U), which is used in a computer system or the like that requires buffer control and manages a data storage state in a buffer area on a memory.
【0002】[0002]
【従来の技術】近年、計算機システムにおいて処理分野
の増加および機能の充実に伴い、内部の制御手法も複雑
化している。例えば、複数の処理部(CPU)を有しバ
ッファ制御を必要とする計算機システムでは、メモリ上
でバッファ領域を獲得する機能と獲得したバッファ領域
を解放する機能とを有するバッファ制御装置をそなえ、
このバッファ制御装置によりバッファ領域におけるデー
タ格納状態を管理している。2. Description of the Related Art In recent years, with the increase of processing fields and enhancement of functions in computer systems, internal control methods have become complicated. For example, a computer system having a plurality of processing units (CPUs) and requiring buffer control includes a buffer control device having a function of acquiring a buffer area on a memory and a function of releasing the acquired buffer area,
This buffer control device manages the data storage state in the buffer area.
【0003】このような内部制御手法の複雑化に応じ
て、トラブル発生時の調査手法等についても考慮する必
要がある。現在、トラブル発生時の調査手法としては、
ダンプにより逐次採取しておいたデータトレース結果に
基づいてトラブル発生原因を解析するものや、バッファ
領域内に残っているヘッダ部やデータ部に基づいてトラ
ブル発生原因を解析するものなどがある。As the internal control method becomes complicated, it is necessary to consider the investigation method when a trouble occurs. Currently, as the investigation method when trouble occurs,
There are one that analyzes the cause of trouble based on the data trace results that have been sequentially collected by a dump, and one that analyzes the cause of trouble based on the header and data that remain in the buffer area.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上述し
た前者の調査手法では、メモリ容量の制限のためにその
ような解析を行なうプログラムを導入できない場合があ
る。また、後者の調査手法では、バッファ解析に際して
バッファ領域の獲得時および解放時の正確な順番を知る
ことができないため、調査結果が信憑性に欠け、迅速な
トラブル対応ができないなどの課題があった。However, in the former investigation method described above, there are cases where a program for performing such an analysis cannot be introduced due to the limitation of the memory capacity. Also, the latter investigation method has a problem that the accurate result of buffer area acquisition and release cannot be known during buffer analysis, so the investigation result lacks credibility and quick trouble response is not possible. .
【0005】本発明は、このような課題に鑑み創案され
たもので、トラブル発生時にバッファ領域の獲得順序お
よび解放順序を正確に知ることができるようにして、迅
速なトラブル対応を可能にした、バッファ制御装置を提
供することを目的とする。The present invention was devised in view of such a problem, and when a trouble occurs, it is possible to accurately know the acquisition order and the release order of the buffer areas, thereby enabling quick trouble response. An object is to provide a buffer control device.
【0006】[0006]
【課題を解決するための手段】図1は本発明の原理ブロ
ック図で、この図1において、1はバッファ領域を有す
るメモリ、2は本発明のバッファ制御装置で、このバッ
ファ制御装置2は、メモリ1上でデータを格納するため
のバッファ領域を獲得する機能と、獲得したバッファ領
域を解放する機能とを有し、このバッファ領域における
データ格納状態を管理するものである。FIG. 1 is a block diagram of the principle of the present invention. In FIG. 1, 1 is a memory having a buffer area, 2 is a buffer control device of the present invention, and this buffer control device 2 is The memory 1 has a function of acquiring a buffer area for storing data and a function of releasing the acquired buffer area, and manages the data storage state in this buffer area.
【0007】そして、バッファ制御装置2には、バッフ
ァ領域を獲得する際に当該バッファ領域のヘッダ部に獲
得通番を獲得順に書き込む獲得通番書込部3と、バッフ
ァ領域を解放する際に当該バッファ領域のヘッダ部に解
放通番を解放順に書き込む解放通番書込部4とがそなえ
られている(請求項1)。また、バッファ制御装置2に
は、複数のバッファ領域を同時に獲得する際に当該複数
のバッファ領域のヘッダ部に共通の獲得グループ番号を
書き込む獲得グループ番号書込部と、複数のバッファ領
域を同時に解放する際に当該複数のバッファ領域のヘッ
ダ部に共通の解放グループ番号を書き込む解放グループ
番号書込部とをそなえてもよい(請求項2)。In the buffer control device 2, the acquisition sequence number writing unit 3 that writes the acquisition sequence numbers in the header portion of the buffer region when acquiring the buffer region, and the buffer region when releasing the buffer region. The release serial number writing unit 4 for writing the release serial numbers in the release order is provided in the header part of (1). In addition, the buffer control device 2 releases the plurality of buffer areas at the same time, and an acquisition group number writing unit that writes a common acquisition group number in the header portion of the plurality of buffer areas when acquiring the plurality of buffer areas at the same time. When this is done, a release group number writing unit for writing a common release group number in the header portion of the plurality of buffer areas may be provided (claim 2).
【0008】さらに、バッファ制御装置2には、獲得通
番を生成するための獲得通番カウンタと、解放通番を生
成するための解放通番カウンタとをそなえてもよいし
(請求項3)、獲得グループ番号を生成するための獲得
グループ番号カウンタと、解放グループ番号を生成する
ための解放グループ番号カウンタとをそなえてもよい
(請求項4)。Furthermore, the buffer control device 2 may include an acquisition sequence number counter for generating an acquisition sequence number and a release sequence number counter for generating a release sequence number (claim 3), and an acquisition group number. May be provided with an acquisition group number counter for generating a release group number and a release group number counter for generating a release group number (claim 4).
【0009】[0009]
【作用】図1にて上述した本発明のバッファ制御装置で
は、バッファ領域を獲得する際、獲得通番書込部3によ
り、そのバッファ領域のヘッダ部に獲得通番が獲得順に
書き込まれる一方、バッファ領域を解放する際には、解
放通番書込部4により、そのバッファ領域のヘッダ部に
解放通番が解放順に書き込まれる。In the buffer control device of the present invention described above with reference to FIG. 1, when the buffer area is acquired, the acquisition serial number writing unit 3 writes the acquisition serial numbers in the header portion of the buffer area in the order of acquisition, while the buffer area is acquired. When releasing, the release serial number writing unit 4 writes the release serial numbers in the header portion of the buffer area in the release order.
【0010】このとき、獲得通番,解放通番は、獲得通
番カウンタ,解放通番カウンタにより生成されている。
従って、トラブル発生時には、メモリ上のバッファ領域
のヘッダ部を参照することにより、そのバッファ領域を
獲得した順番やそのバッファ領域を解放した順番を、獲
得通番,解放通番に基づいて正確に知ることができる
(請求項1,3)。At this time, the acquisition serial number and the release serial number are generated by the acquisition serial number counter and the release serial number counter.
Therefore, when a trouble occurs, the order of acquiring the buffer area and the order of releasing the buffer area can be accurately known by referring to the header of the buffer area on the memory, based on the acquisition serial number and the release serial number. It is possible (claims 1 and 3).
【0011】また、複数のバッファ領域を同時に獲得す
る際、獲得グループ番号書込部により、その複数のバッ
ファ領域のヘッダ部に共通の獲得グループ番号が書き込
まれる一方、複数のバッファ領域を同時に解放する際に
は、解放グループ番号書込部により、その複数のバッフ
ァ領域のヘッダ部に共通の解放グループ番号が書き込ま
れる。Further, when a plurality of buffer areas are acquired at the same time, the acquisition group number writing section writes a common acquisition group number in the header part of the plurality of buffer areas, while simultaneously releasing a plurality of buffer areas. At this time, the release group number writing unit writes a common release group number in the header portions of the plurality of buffer areas.
【0012】このとき、獲得グループ番号,解放グルー
プ番号は、獲得グループ番号カウンタ,解放グループ番
号カウンタにより生成されている。従って、トラブル発
生時に、1回の依頼で獲得,解放したバッファ領域の関
連性を獲得グループ番号および解放グループ番号に基づ
いて正確に知ることができる(請求項2,4)。At this time, the acquisition group number and the release group number are generated by the acquisition group number counter and the release group number counter. Therefore, when a trouble occurs, the relevance of the buffer areas acquired and released by one request can be accurately known based on the acquisition group number and the release group number (claims 2 and 4).
【0013】[0013]
【実施例】以下、図面を参照して本発明の実施例を説明
する。図2は本発明の一実施例としてのバッファ制御装
置を示すブロック図であり、この図2において、10は
複数(図中3台)の処理部(CPU)、11は各処理部
10に対するデータ入力,コマンド入力等の入力制御を
行なう入力制御部、12は各処理部10からの処理結果
等の出力制御を行なう出力制御部である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing a buffer control device as one embodiment of the present invention. In FIG. 2, 10 is a plurality of (three in the figure) processing units (CPUs), and 11 is data for each processing unit 10. An input control unit 12 controls input such as input and command input, and an output control unit 12 controls output of processing results from each processing unit 10.
【0014】また、13は各処理部10で必要な各種デ
ータやプログラムのほか共通バッファ領域14を有する
共用メモリ、15はバッファ制御部で、このバッファ制
御部15は、メモリ13上でデータを格納するためのバ
ッファ領域14を獲得する機能と、獲得したバッファ領
域を解放する機能とを有し、このバッファ領域14にお
けるデータ格納状態を管理するものである。Further, 13 is a shared memory having a common buffer area 14 in addition to various data and programs required by each processing unit 10, 15 is a buffer control unit, and this buffer control unit 15 stores data in the memory 13. It has a function of acquiring the buffer area 14 for the operation and a function of releasing the acquired buffer area, and manages the data storage state in the buffer area 14.
【0015】共通バッファ領域14では、実際には図5
に示すように、複数(図中5個)のバッファ領域(デー
タブロック)14−1〜14−5がそなえられ、解放状
態のものをリンクすることににより空きバッファキュー
が形成されている。この空きバッファキューは、先頭ポ
インタ(先頭空きバッファ領域のアドレス)と最終ポイ
ンタ(最終空きバッファ領域のアドレス)とにより管理
されている。また、各バッファ領域(データブロック)
14−1〜14−5は、図3に示すように、ヘッダ部と
データ部とから構成され、ヘッダ部には、次のバッファ
へのポインタのほか、後述するごとく獲得通番,獲得グ
ループ番号(No.),解放通番,解放グループ番号(No.)
を書き込むためのメモ領域がそなえられている。In the common buffer area 14, FIG.
As shown in FIG. 5, a plurality of (five in the figure) buffer areas (data blocks) 14-1 to 14-5 are provided, and free buffer queues are formed by linking the released areas. This empty buffer queue is managed by a leading pointer (address of leading empty buffer area) and a final pointer (address of final empty buffer area). In addition, each buffer area (data block)
As shown in FIG. 3, each of 14-1 to 14-5 is composed of a header part and a data part. In the header part, in addition to a pointer to the next buffer, an acquisition serial number and an acquisition group number ( No.), release serial number, release group number (No.)
It has a memo area for writing.
【0016】そして、本実施例のバッファ制御部15に
は、獲得通番書込部16,獲得グループ番号書込部1
7,解放通番書込部18,解放グループ番号書込部19
およびバッファ制御テーブル20がそなえられている。
ここで、獲得通番書込部16は、バッファ領域14を獲
得する際にそのバッファ領域14のヘッダ部(獲得通番
用メモ領域)に獲得通番を獲得順に書き込むものであ
り、獲得グループ番号書込部17は、複数のバッファ領
域14を同時に獲得する際にその複数のバッファ領域1
4のヘッダ部の獲得グループ番号用メモ領域に共通の獲
得グループ番号を書き込むものである。The buffer control unit 15 of this embodiment includes an acquisition serial number writing unit 16 and an acquisition group number writing unit 1.
7, release serial number writing unit 18, release group number writing unit 19
Also, a buffer control table 20 is provided.
Here, the acquisition serial number writing unit 16 writes the acquisition serial numbers in the header portion (acquisition serial number memo area) of the buffer area 14 when acquiring the buffer area 14, in the order of acquisition. 17 refers to a plurality of buffer areas 1 when acquiring a plurality of buffer areas 14 at the same time.
The common acquisition group number is written in the acquisition group number memo area of the header portion of No. 4.
【0017】また、解放通番書込部18は、獲得したバ
ッファ領域14を解放する際にそのバッファ領域14の
ヘッダ部の解放通番用メモ領域に解放通番を解放順に書
き込むものであり、解放グループ番号書込部19は、複
数のバッファ領域14を同時に解放する際にその複数の
バッファ領域14のヘッダ部の解放グループ番号用メモ
領域に共通の解放グループ番号を書き込むものである。When releasing the acquired buffer area 14, the release sequence number writing section 18 writes the release sequence numbers in the release sequence number memo area of the header part of the buffer area 14 in the release order, and the release group number. The writing unit 19 writes a common release group number in the release group number memo area of the header portion of the plurality of buffer areas 14 when releasing the plurality of buffer areas 14 at the same time.
【0018】そして、バッファ制御テーブル20は、バ
ッファ制御ルーチンがその制御動作時に使用する各種デ
ータを格納するもので、本実施例では、前述した獲得通
番,獲得グループ番号,解放通番,解放グループ番号を
生成するために、図4に示すように、獲得通番カウン
タ,獲得グループ番号カウンタ,解放通番カウンタ,解
放グループ番号カウンタの領域を有し、獲得/解放処理
を行なう度にこれらのカウンタ領域の値をカウントアッ
プする構成になっている。なお、これらのカウンタの初
期値としては“0”が設定される。The buffer control table 20 stores various data used by the buffer control routine during its control operation. In the present embodiment, the acquisition sequence number, the acquisition group number, the release sequence number and the release group number described above are stored. For generation, as shown in FIG. 4, it has areas of an acquisition serial number counter, an acquisition group number counter, a release serial number counter, and a release group number counter, and the values of these counter areas are changed every time acquisition / release processing is performed. It is configured to count up. Note that "0" is set as the initial value of these counters.
【0019】次に、上述のごとく構成された本実施例の
動作を、図6〜図14により説明する。まず、図6に示
すフローチャート(ステップS1〜S23)に従って、
バッファ獲得/解放処理時のバッファ制御部15による
制御処理手順を説明する。なお、図6に示すバッファ管
理ルーチンが使用される際、バッファ獲得/解放の識別
および個数が指定される。Next, the operation of this embodiment constructed as described above will be described with reference to FIGS. First, according to the flowchart (steps S1 to S23) shown in FIG.
A control processing procedure by the buffer control unit 15 at the time of buffer acquisition / release processing will be described. When the buffer management routine shown in FIG. 6 is used, the identification and number of buffer acquisition / release are designated.
【0020】バッファ管理ルーチンが起動されると、ま
ず、バッファ獲得/バッファ解放のいずれを要求されて
いるかを判別する(ステップS1)。バッファ獲得を要
求されている場合には、共用メモリ13の共通バッファ
領域14に対してバッファ獲得処理を行なってから(ス
テップS2)、バッファ制御テーブル20の獲得通番カ
ウンタ領域から得られた獲得通番を、獲得したバッファ
領域14のヘッダ内の獲得通番用メモ領域に格納する
(ステップS3)。When the buffer management routine is activated, it is first determined which of buffer acquisition / buffer release is requested (step S1). When the buffer acquisition is requested, the buffer acquisition processing is performed on the common buffer area 14 of the shared memory 13 (step S2), and then the acquisition serial number obtained from the acquisition serial number counter area of the buffer control table 20 is acquired. , Is stored in the acquired serial number memo area in the header of the acquired buffer area 14 (step S3).
【0021】そして、バッファ制御テーブル20の獲得
通番カウンタ領域の値を1だけカウントアップし(ステ
ップS4)、新しい獲得通番カウンタ領域の値が予め設
定された最大値を超えたか否かを判定する(ステップS
5)。最大値を超えていなければ後述のステップS7へ
移行する一方、最大値を超えていればバッファ制御テー
ブル20の獲得通番カウンタ領域の値を0に設定してか
ら(ステップS6)、後述のステップS7へ移行する。Then, the value of the acquisition serial number counter area of the buffer control table 20 is incremented by 1 (step S4), and it is determined whether or not the value of the new acquisition serial number counter area exceeds a preset maximum value (step S4). Step S
5). If the maximum value is not exceeded, the process proceeds to step S7 described later, while if the maximum value is exceeded, the value of the acquisition serial number counter area of the buffer control table 20 is set to 0 (step S6), and then step S7 described later. Move to.
【0022】ステップS7では、バッファ制御テーブル
20の獲得グループ番号カウンタ領域から得られた獲得
グループ番号を、獲得したバッファ領域14のヘッダ内
の獲得グループ番号用メモ領域に格納する。この後、ル
ーチン起動時に指定されたバッファ獲得個数から1を減
算し(ステップS8)、その減算結果が0以下になった
か否かを判定する(ステップS9)。In step S7, the acquisition group number obtained from the acquisition group number counter area of the buffer control table 20 is stored in the acquisition group number memo area in the header of the acquired buffer area 14. Thereafter, 1 is subtracted from the buffer acquisition number designated at the time of starting the routine (step S8), and it is determined whether or not the subtraction result is 0 or less (step S9).
【0023】上述したステップS2〜S8までの処理
は、ステップS9で、ステップS8による減算結果が0
(以下)になったと判定されるまで繰り返し行なわれ
る。これにより、1回で複数個のバッファ領域を獲得し
た場合に、そのグループに対して共通の獲得グループ番
号を付与しながら、獲得通番を1ずつ更新して付与する
ことができる。In the above-mentioned steps S2 to S8, the subtraction result in step S8 is 0 in step S9.
It is repeated until it is determined that (below). As a result, when a plurality of buffer areas are acquired at one time, the acquisition sequence number can be updated and added one by one while giving a common acquisition group number to the group.
【0024】そして、同時に獲得された全てのバッファ
領域に獲得通番および獲得グループ番号が付与されると
(ステップS9でYES判定の場合)、バッファ制御テ
ーブル20の獲得グループ番号カウンタ領域の値を1だ
けカウントアップし(ステップS10)、新しい獲得グ
ループ番号カウンタ領域の値が予め設定された最大値を
超えたか否かを判定する(ステップS11)。最大値を
超えていなければそのまま処理を終了する一方、最大値
を超えていればバッファ制御テーブル20の獲得グルー
プ番号カウンタ領域の値を0に設定してから(ステップ
S12)、処理を終了する。When the acquisition sequence number and the acquisition group number are given to all the buffer areas acquired at the same time (YES in step S9), the value of the acquisition group number counter area of the buffer control table 20 is incremented by 1. It counts up (step S10), and it is determined whether or not the value of the new acquisition group number counter area exceeds a preset maximum value (step S11). If it does not exceed the maximum value, the processing is terminated as it is, while if it exceeds the maximum value, the value of the acquisition group number counter area of the buffer control table 20 is set to 0 (step S12), and then the processing is terminated.
【0025】一方、ステップS1でバッファ解放を要求
されていると判定された場合には、共用メモリ13の共
通バッファ領域14に対してバッファ解放処理を行なっ
てから(ステップS13)、バッファ制御テーブル20
の解放通番カウンタ領域から得られた解放通番を、解放
したバッファ領域14のヘッダ内の解放通番用メモ領域
に格納する(ステップS14)。On the other hand, if it is determined in step S1 that the buffer release is requested, the buffer release process is performed on the common buffer area 14 of the shared memory 13 (step S13), and then the buffer control table 20.
The release serial number obtained from the release serial number counter area is stored in the release serial number memo area in the header of the released buffer area 14 (step S14).
【0026】そして、バッファ制御テーブル20の解放
通番カウンタ領域の値を1だけカウントアップし(ステ
ップS15)、新しい解放通番カウンタ領域の値が予め
設定された最大値を超えたか否かを判定する(ステップ
S16)。最大値を超えていなければ後述のステップS
18へ移行する一方、最大値を超えていればバッファ制
御テーブル20の解放通番カウンタ領域の値を0に設定
してから(ステップS17)、後述のステップS18へ
移行する。Then, the value of the release serial number counter area of the buffer control table 20 is incremented by 1 (step S15), and it is determined whether or not the value of the new release serial number counter area exceeds the preset maximum value (step S15). Step S16). If it does not exceed the maximum value, step S described later.
On the other hand, if the maximum value is exceeded, the value of the release serial number counter area of the buffer control table 20 is set to 0 (step S17), and then the process proceeds to step S18 described later.
【0027】ステップS18では、バッファ制御テーブ
ル20の解放グループ番号カウンタ領域から得られた解
放グループ番号を、解放したバッファ領域14のヘッダ
内の解放グループ番号用メモ領域に格納する。この後、
ルーチン起動時に指定されたバッファ解放個数から1を
減算し(ステップS19)、その減算結果が0以下にな
ったか否かを判定する(ステップS20)。In step S18, the release group number obtained from the release group number counter area of the buffer control table 20 is stored in the release group number memo area in the header of the released buffer area 14. After this,
1 is subtracted from the buffer release number designated at the time of starting the routine (step S19), and it is determined whether the subtraction result is 0 or less (step S20).
【0028】上述したステップS13〜S19までの処
理は、ステップS20で、ステップS19による減算結
果が0(以下)になったと判定されるまで繰り返し行な
われる。これにより、1回で複数個のバッファ領域を解
放した場合に、そのグループに対して共通の解放グルー
プ番号を付与しながら、解放通番を1ずつ更新して付与
することができる。The above steps S13 to S19 are repeated until it is determined in step S20 that the result of the subtraction in step S19 is 0 (or less). Thus, when a plurality of buffer areas are released at one time, the release sequence number can be updated and given one by one while giving a common release group number to the group.
【0029】そして、同時に解放された全てのバッファ
領域に解放通番および解放グループ番号が付与されると
(ステップS20でYES判定の場合)、バッファ制御
テーブル20の解放グループ番号カウンタ領域の値を1
だけカウントアップし(ステップS21)、新しい解放
グループ番号カウンタ領域の値が予め設定された最大値
を超えたか否かを判定する(ステップS22)。最大値
を超えていなければそのまま処理を終了する一方、最大
値を超えていればバッファ制御テーブル20の解放グル
ープ番号カウンタ領域の値を0に設定してから(ステッ
プS23)、処理を終了する。When a release serial number and a release group number are given to all the buffer areas released at the same time (YES in step S20), the value of the release group number counter area of the buffer control table 20 is set to 1
Only the count is incremented (step S21), and it is determined whether the value of the new release group number counter area exceeds a preset maximum value (step S22). If it does not exceed the maximum value, the processing is terminated as it is, while if it exceeds the maximum value, the value of the release group number counter area of the buffer control table 20 is set to 0 (step S23), and then the processing is terminated.
【0030】次に、図7〜図10により、バッファ領域
14−1〜14−5に対する具体的な獲得通番および獲
得グループ番号の書込例について、また、図11〜図1
4により、バッファ領域14−1〜14−5に対する具
体的な解放通番および解放グループ番号の書込例につい
て説明する。なお、バッファ管理テーブル20における
獲得通番カウンタ,獲得グループ番号カウンタ,解放通
番カウンタ,解放グループ番号カウンタの具体的な値も
合わせて図示する。また、図中、グループ番号は“GpN
o. ”として表記する。さらに、図中の各バッファ領域
14−1〜14−5の獲得通番,獲得グループ番号,解
放通番,解放グループ番号用メモ領域において“??”と
表記している部分は、以前に何らかの通番,番号が書き
込まれ、その値が不定であることを示している。本実施
例では、その不定の値の上に通番,番号を上書きして書
き込み、図中、本実施例に係わる通番,番号については
実際の数値を表記している。Next, referring to FIGS. 7 to 10, an example of writing concrete acquisition serial numbers and acquisition group numbers to the buffer areas 14-1 to 14-5 will be described.
4, an example of writing a specific release serial number and release group number to the buffer areas 14-1 to 14-5 will be described. Note that specific values of the acquisition serial number counter, the acquisition group number counter, the release serial number counter, and the release group number counter in the buffer management table 20 are also illustrated. Also, in the figure, the group number is "GpN
In addition, ".?" in the memo area for acquisition serial number, acquisition group number, release serial number, and release group number of each buffer area 14-1 to 14-5 in the figure. Indicates that some serial number and number have been previously written and the value is undefined.In the present embodiment, the serial number and number are overwritten and written on the undefined value, and The actual numbers are shown for the serial numbers and numbers related to the examples.
【0031】まず、図7に示すように、5つのバッファ
領域14−1〜14−5が全て解放状態で空きバッファ
キューとしてリンクされているものとする。このとき、
獲得通番カウンタ/獲得グループ番号カウンタの値は、
初期値“00”に設定されている。この図7に示す状態
でバッファ領域を1つだけ獲得した場合、図8(b)に
示すように、獲得したバッファ領域14−1の獲得通番
/獲得グループ番号用メモ領域には、いずれも“0
0”,“00”が書き込まれる。また、図8(a)に示
すように、空きバッファキューとしては4つのバッファ
14−2〜14−5がリンクされ、獲得通番カウンタ/
獲得グループ番号カウンタの値はいずれも“01”に設
定される。First, as shown in FIG. 7, it is assumed that all five buffer areas 14-1 to 14-5 are linked in the released state as empty buffer queues. At this time,
The value of the acquisition serial number counter / acquisition group number counter is
The initial value is set to "00". When only one buffer area is acquired in the state shown in FIG. 7, as shown in FIG. 8 (b), both of the acquired serial number / acquisition group number memo areas of the acquired buffer area 14-1 are " 0
0 "and" 00 "are written. Further, as shown in FIG. 8A, four buffers 14-2 to 14-5 are linked as an empty buffer queue, and the acquisition serial number counter /
The values of the acquired group number counters are all set to "01".
【0032】図7に示す状態でバッファ領域を1度に2
つ獲得した場合、図9(b)に示すように、獲得した最
初のバッファ領域14−1の獲得通番/獲得グループ番
号用メモ領域にはいずれも“00”,“00”が書き込
まれ、獲得した2つ目のバッファ領域14−2の獲得通
番/獲得グループ番号用メモ領域にはそれぞれ“0
1”,“00”が書き込まれる。また、図9(a)に示
すように、空きバッファキューとしては3つのバッファ
14−3〜14−5がリンクされ、獲得通番カウンタの
値は“02”に、獲得グループ番号カウンタの値は“0
1”に設定される。In the state shown in FIG. 7, the buffer area is set to 2 at a time.
9B, “00” and “00” are written in both the acquisition serial number / acquisition group number memo area of the first acquired buffer area 14-1 as shown in FIG. 9B. In the memo area for the acquired serial number / acquired group number of the second buffer area 14-2, "0" is set.
1 "and" 00 "are written. Further, as shown in FIG. 9A, three buffers 14-3 to 14-5 are linked as an empty buffer queue, and the value of the acquisition sequence number counter is" 02 ". In addition, the value of the acquired group number counter is "0.
It is set to 1 ".
【0033】図9(a),(b)に示す状態でさらにバ
ッファ領域を1つだけ獲得した場合、図10(b)に示
すように、獲得した3つ目のバッファ領域14−3の獲
得通番/獲得グループ番号用メモ領域にはそれぞれ“0
2”,“01”が書き込まれる。また、図10(a)に
示すように、空きバッファキューとしては2つのバッフ
ァ14−4,14−5がリンクされ、獲得通番カウンタ
の値は“03”に、獲得グループ番号カウンタの値は
“02”に設定される。When only one more buffer area is acquired in the state shown in FIGS. 9A and 9B, the third acquired buffer area 14-3 is acquired as shown in FIG. 10B. In the memo area for serial number / acquired group number, "0"
2 "and" 01 "are written. Also, as shown in FIG. 10A, two buffers 14-4 and 14-5 are linked as an empty buffer queue, and the value of the acquisition sequence number counter is" 03 ". Then, the value of the acquisition group number counter is set to "02".
【0034】ついで、図11に示すように、1つのバッ
ファ領域14−1のみが解放状態で、他の4つのバッフ
ァ領域14−2〜14−5が獲得されている状態から、
各バッファ領域を解放する場合について説明する。この
とき、解放通番カウンタ/解放グループ番号カウンタの
値は、初期値“00”に設定されている。この図11に
示す状態で、図12(a)に示すバッファ領域14−2
を1つだけ解放する場合、図12(b)に示すように、
解放したバッファ領域14−2は空きバッファキューに
リンクされるとともに、そのバッファ領域14−2の解
放通番/解放グループ番号用メモ領域には、いずれも
“00”,“00”が書き込まれる。このとき、解放通
番カウンタ/解放グループ番号カウンタの値はいずれも
“01”に設定される。Then, as shown in FIG. 11, from the state in which only one buffer area 14-1 is released and the other four buffer areas 14-2 to 14-5 are acquired,
The case of releasing each buffer area will be described. At this time, the values of the release serial number counter / release group number counter are set to the initial value "00". In the state shown in FIG. 11, the buffer area 14-2 shown in FIG.
When only one is released, as shown in FIG.
The released buffer area 14-2 is linked to the free buffer queue, and "00" and "00" are written in the release serial number / release group number memo area of the buffer area 14-2. At this time, the values of the release serial number counter / release group number counter are both set to "01".
【0035】図11に示す状態で、図13(a)に示す
2つのバッファ領域14−2,14−3を1度に解放し
た場合、図13(b)に示すように、解放した2つのバ
ッファ領域14−2,14−3は空きバッファキューに
リンクされるとともに、最初のバッファ領域14−2の
解放通番/解放グループ番号用メモ領域にはいずれも
“00”,“00”が書き込まれ、2つ目のバッファ領
域14−3の解放通番/解放グループ番号用メモ領域に
はそれぞれ“01”,“00”が書き込まれる。このと
き、解放通番カウンタの値は“02”に、解放グループ
番号カウンタの値は“01”に設定される。In the state shown in FIG. 11, when the two buffer areas 14-2 and 14-3 shown in FIG. 13A are released at once, as shown in FIG. 13B, the two released buffer areas 14-2 and 14-3 are released. The buffer areas 14-2 and 14-3 are linked to the free buffer queue, and "00" and "00" are written in the release serial number / release group number memo area of the first buffer area 14-2. "01" and "00" are written in the release serial number / release group number memo area of the second buffer area 14-3, respectively. At this time, the value of the release serial number counter is set to "02" and the value of the release group number counter is set to "01".
【0036】図13(a),(b)に示す状態で、さら
に図14(a)に示すバッファ領域14−4を1つだけ
解放した場合、図14(b)に示すように、解放したバ
ッファ領域14−4も空きバッファキューにリンクされ
るとともに、そのバッファ領域14−4の解放通番/解
放グループ番号用メモ領域にはそれぞれ“02”,“0
1”が書き込まれる。このとき、解放通番カウンタの値
は“03”に、解放グループ番号カウンタの値は“0
2”に設定される。When only one buffer area 14-4 shown in FIG. 14 (a) is released in the state shown in FIGS. 13 (a) and 13 (b), it is released as shown in FIG. 14 (b). The buffer area 14-4 is also linked to the free buffer queue, and “02” and “0” are respectively stored in the release serial number / release group number memo area of the buffer area 14-4.
1 ”is written. At this time, the value of the release serial number counter is“ 03 ”and the value of the release group number counter is“ 0 ”.
Set to 2 ".
【0037】このように、本発明の一実施例では、バッ
ファ領域14のヘッダの中にバッファ獲得時/解放時の
通番と複数バッファ領域を一度に獲得/解放したことを
認識するためのグループ番号とをメモする領域を設け、
この領域を使用して、バッファ獲得時の通番とグループ
番号、および、バッファ解放時の通番とグループ番号を
管理するルーチン(図6参照)を用意し、バッファ獲得
/解放の際には必ずこのルーチンに依頼するような方式
を採っている。As described above, in the embodiment of the present invention, the group number for recognizing the serial number at the time of buffer acquisition / release and the acquisition / release of plural buffer areas at once in the header of the buffer area 14. There is an area to write down and
Using this area, prepare a routine (see Fig. 6) to manage the serial number and group number when acquiring the buffer, and the serial number and group number when releasing the buffer. We have adopted the method of requesting to.
【0038】これにより、トラブル発生時にバッファを
獲得した順番,解放した順番および一回の依頼で獲得,
解放したバッファの関連性を正確に知ることができる。
つまり、何個のバッファがどのような順番で使用された
のかが明確になる。従って、トラブル調査の材料として
極めて有効で、正確な順番で使用されたバッファを解析
できることにより、各プロセス間での送受信データを調
査することができるため、迅速なトラブル対応が可能に
なる。As a result, when trouble occurs, the order in which the buffers are acquired, the order in which the buffers are released, and one request are acquired.
You can know exactly the relationship of the released buffer.
That is, it becomes clear how many buffers were used and in what order. Therefore, since it is extremely effective as a material for trouble investigation and the buffers used in the correct order can be analyzed, the transmission / reception data between the processes can be investigated, so that quick trouble response can be realized.
【0039】なお、上述した実施例では、バッファ領域
14が5つの領域からなる場合について説明したが、本
発明は、これに限定されるものではない。In the above-described embodiment, the case where the buffer area 14 is composed of five areas has been described, but the present invention is not limited to this.
【0040】[0040]
【発明の効果】以上詳述したように、本発明のバッファ
制御装置によれば、トラブル発生時には、メモリ上のバ
ッファ領域のヘッダ部を参照することにより、バッファ
領域を獲得した順番およびバッファ領域を解放した順番
を、獲得通番,解放通番に基づいて正確に知ることがで
きるので、正確な順番で使用されたバッファが解析さ
れ、各プロセス間での送受信データを調査することがで
き、トラブルに対して迅速に対応できる効果がある(請
求項1,3)。As described above in detail, according to the buffer control apparatus of the present invention, when a trouble occurs, the header area of the buffer area on the memory is referred to to determine the order in which the buffer areas are acquired and the buffer areas. Since the release order can be accurately known based on the acquisition serial number and the release serial number, the buffers used in the correct order can be analyzed, and the data sent and received between each process can be investigated. Therefore, there is an effect that can be dealt with promptly (claims 1 and 3).
【0041】また、ヘッダ部における獲得グループ番号
および解放グループ番号に基づき、1回の依頼で獲得,
解放したバッファ領域の関連性も正確に知ることがで
き、トラブル発生時に実際に幾つのバッファ領域がどの
ような順番で使用されたのかが明確になるため、調査の
材料として極めて有効で、より正確な送受信データの調
査が可能になり、トラブルに対してより確実かつ迅速な
対応が可能になる効果がある(請求項2,4)。In addition, based on the acquisition group number and the release group number in the header section, it is acquired by one request,
The relation of the released buffer area can be known accurately, and it becomes clear how many buffer areas were actually used and in what order when trouble occurred. It is possible to investigate various transmission / reception data, and it is possible to respond more reliably and promptly to troubles (claims 2 and 4).
【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.
【図2】本発明の一実施例としてのバッファ制御装置を
示すブロック図である。FIG. 2 is a block diagram showing a buffer control device as an embodiment of the present invention.
【図3】本実施例のバッファ領域のフォーマットを示す
図である。FIG. 3 is a diagram showing a format of a buffer area of the present embodiment.
【図4】本実施例のバッファ制御テーブルを示す図であ
る。FIG. 4 is a diagram showing a buffer control table of the present embodiment.
【図5】本実施例の共通バッファ領域の構成(空きバッ
ファキューのリンク状態)を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a common buffer area (link state of an empty buffer queue) according to the present embodiment.
【図6】本実施例の動作を説明するためのフローチャー
トである。FIG. 6 is a flowchart for explaining the operation of this embodiment.
【図7】本実施例におけるバッファ領域獲得例を説明す
るための図である。FIG. 7 is a diagram for explaining an example of buffer area acquisition in this embodiment.
【図8】(a),(b)は本実施例におけるバッファ領
域獲得例を説明するための図である。8A and 8B are views for explaining an example of buffer area acquisition in the present embodiment.
【図9】(a),(b)は本実施例におけるバッファ領
域獲得例を説明するための図である。9A and 9B are diagrams for explaining an example of buffer area acquisition in this embodiment.
【図10】(a),(b)は本実施例におけるバッファ
領域獲得例を説明するための図である。10A and 10B are diagrams for explaining an example of buffer area acquisition in this embodiment.
【図11】本実施例におけるバッファ領域解放例を説明
するための図である。FIG. 11 is a diagram for explaining an example of releasing a buffer area in the present embodiment.
【図12】(a),(b)は本実施例におけるバッファ
領域解放例を説明するための図である。12A and 12B are diagrams for explaining an example of releasing a buffer area in the present embodiment.
【図13】(a),(b)は本実施例におけるバッファ
領域解放例を説明するための図である。13A and 13B are diagrams for explaining an example of releasing a buffer area in this embodiment.
【図14】(a),(b)は本実施例におけるバッファ
領域解放例を説明するための図である。14A and 14B are diagrams for explaining an example of releasing a buffer area in this embodiment.
1 メモリ 2 バッファ制御装置 3 獲得通番書込部 4 解放通番書込部 10 処理部(CPU) 11 入力制御部 12 出力制御部 13 共用メモリ 14 共通バッファ領域 14−1〜14−5 バッファ領域 15 バッファ制御部 16 獲得通番書込部 17 獲得グループ番号書込部 18 解放通番書込部 19 解放グループ番号書込部 20 バッファ制御テーブル 1 Memory 2 Buffer Control Device 3 Acquisition Serial Number Writing Unit 4 Release Serial Number Writing Unit 10 Processing Unit (CPU) 11 Input Control Unit 12 Output Control Unit 13 Shared Memory 14 Common Buffer Area 14-1 to 14-5 Buffer Area 15 Buffer Control unit 16 Acquisition serial number writing unit 17 Acquisition group number writing unit 18 Release serial number writing unit 19 Release group number writing unit 20 Buffer control table
Claims (4)
ファ領域を獲得する機能と、獲得した該バッファ領域を
解放する機能とを有し、該バッファ領域におけるデータ
格納状態を管理するバッファ制御装置において、 バッファ領域を獲得する際に、当該バッファ領域のヘッ
ダ部に獲得通番を獲得順に書き込む獲得通番書込部と、 バッファ領域を解放する際に、当該バッファ領域のヘッ
ダ部に解放通番を解放順に書き込む解放通番書込部とが
そなえられていることを特徴とする、バッファ制御装
置。1. A buffer control device having a function of acquiring a buffer area for storing data on a memory and a function of releasing the acquired buffer area, and managing a data storage state in the buffer area. , When acquiring the buffer area, the acquisition serial number is written in the header section of the buffer area in the order of acquisition. When acquiring the buffer area, the release serial number is written in the header section of the buffer area in the order of release. A buffer control device comprising a release serial number writing unit.
に、当該複数のバッファ領域のヘッダ部に共通の獲得グ
ループ番号を書き込む獲得グループ番号書込部と、 複数のバッファ領域を同時に解放する際に、当該複数の
バッファ領域のヘッダ部に共通の解放グループ番号を書
き込む解放グループ番号書込部とがそなえられているこ
とを特徴とする、請求項1記載のバッファ制御装置。2. When acquiring a plurality of buffer areas at the same time, an acquisition group number writing section for writing a common acquisition group number in a header part of the plurality of buffer areas, and for releasing a plurality of buffer areas at the same time. The buffer control device according to claim 1, further comprising: a release group number writing unit that writes a common release group number in a header portion of the plurality of buffer areas.
カウンタと、前記解放通番を生成するための解放通番カ
ウンタとがそなえられていることを特徴とする、請求項
1記載のバッファ制御装置。3. The buffer control device according to claim 1, further comprising an acquisition sequence number counter for generating the acquisition sequence number and a release sequence number counter for generating the release sequence number.
獲得グループ番号カウンタと、前記解放グループ番号を
生成するための解放グループ番号カウンタとがそなえら
れていることを特徴とする、請求項2記載のバッファ制
御装置。4. The acquisition group number counter for generating the acquisition group number and the release group number counter for generating the release group number are provided. Buffer controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26071794A JPH08123718A (en) | 1994-10-25 | 1994-10-25 | Buffer controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26071794A JPH08123718A (en) | 1994-10-25 | 1994-10-25 | Buffer controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08123718A true JPH08123718A (en) | 1996-05-17 |
Family
ID=17351785
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26071794A Withdrawn JPH08123718A (en) | 1994-10-25 | 1994-10-25 | Buffer controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08123718A (en) |
-
1994
- 1994-10-25 JP JP26071794A patent/JPH08123718A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0528220A2 (en) | Dynamically established event monitors in event management services of a computer system | |
| JPH0517584B2 (en) | ||
| US6360233B1 (en) | Dynamic memory space allocation | |
| JPH0423144A (en) | Journal system | |
| US20120144369A1 (en) | Tracking ownership of memory in a data processing system through use of a memory monitor | |
| JPH0798663A (en) | Asynchronous I / O control method | |
| JPH08123718A (en) | Buffer controller | |
| JP2001125749A (en) | Recording medium recording external storage device driver program, and computer having external storage device access function | |
| JP3147862B2 (en) | Trace collection method for multiple online control programs | |
| JPH04199339A (en) | Distributed transaction file control method for distributed processing system | |
| JP2780601B2 (en) | Message batch processing system | |
| JP2735400B2 (en) | Asynchronous I/O control method | |
| JPH03290741A (en) | Error logging method | |
| JP2708012B2 (en) | Update buffer management device | |
| JPH0392939A (en) | Display method for computer system | |
| JP2564978B2 (en) | Communication control program trace data collection method | |
| JP3368378B2 (en) | Storage content management method and data processing device | |
| CN115633006A (en) | Method and device for solving data overrun of core service system | |
| JPH04138546A (en) | Buffer control device | |
| JPH047757A (en) | Data management control method | |
| JPH07182186A (en) | Effective use of semaphores | |
| JPH0348315A (en) | Timer control system | |
| JPH0455953A (en) | Block input/output control system | |
| JPH04295935A (en) | Data processor | |
| JPH0682334B2 (en) | Management processing device for management table |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020115 |