JPH0415735A - Buffer control system - Google Patents

Buffer control system

Info

Publication number
JPH0415735A
JPH0415735A JP11616790A JP11616790A JPH0415735A JP H0415735 A JPH0415735 A JP H0415735A JP 11616790 A JP11616790 A JP 11616790A JP 11616790 A JP11616790 A JP 11616790A JP H0415735 A JPH0415735 A JP H0415735A
Authority
JP
Japan
Prior art keywords
buffer
buffers
information processing
information
pool
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
JP11616790A
Other languages
Japanese (ja)
Inventor
Hiromitsu Kawamura
浩光 河村
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11616790A priority Critical patent/JPH0415735A/en
Publication of JPH0415735A publication Critical patent/JPH0415735A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a use-up fault of a buffer due to the wrong release of buffers and the misrelease of buffers which are caused the buffers of different owners after the transfer of buffers by controlling the buffer owners and the buffer occupied time. CONSTITUTION:A buffer control module 1a records the identifiers of the information processing modules 3 and 4 that acquired the buffers and the control information on the buffer occupied time, etc. When a buffer that exceeds occupied time is detected in collation with the control information, this buffer is forcibly released to a buffer loop 2 as a defective buffer and then used for exchange of information in a low level of priority. Thus the defective buffer that is forcibly released to the loop 2 can be effectively used. Thus it is possible to evade such a case where the buffers are short due to fact that the buffers transferred to other modules are released by mistake or the buffers acquired or received form other modules are misreleased.

Description

【発明の詳細な説明】 〔産業上の利用分野) この発明は、情報処理モジュール間の情報交換に用いる
バッファ管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a buffer management method used for exchanging information between information processing modules.

(従来の技術) 第3図は従来の通信情報処理モジュール間の情報交換に
用いるバッファの管理方式を実施するシステム構成図で
あり、図において、(1)はバッファ管理モジュール、
(2)はバッファプール、(3) 、 (4)は情報処
理モジュール、(5)は獲得バッファ、(6)はバッフ
ァ獲得要求、(7)は獲得バッファのリターン、(8)
はバッファの譲渡、(9)はバッファの解放である。
(Prior Art) FIG. 3 is a system configuration diagram implementing a conventional buffer management method used for information exchange between communication information processing modules. In the figure, (1) is a buffer management module;
(2) is a buffer pool, (3) and (4) are information processing modules, (5) is an acquisition buffer, (6) is a buffer acquisition request, (7) is a return of the acquisition buffer, (8)
(9) is the transfer of the buffer, and (9) is the release of the buffer.

次に動作について説明する。情報処理モジュール(3)
か、バッファ管理モジュール(1)にバッファ獲得要求
(6)を出力する際、必要なバッファ長をバッファ管理
モジュール(1)に対し提示する。バッファ管理モジュ
ール(1)は、バッファプール(2)から要求された量
のバッファを割り当て獲得バッファ(5)を情報処理モ
ジュール(3)に返す(7) そして、情報処理モジュール(3)が、情報処理モジュ
ール(4)に情報交換のためバッファを譲渡(8)する
時、或は情報処理モジュール(4)が譲渡されたバッフ
ァを解放(9)する時は、その解放バッファ(5)をバ
ッファ管理モジュール(1)に対して提示する。これに
より、使用中バッファ、空バッファの管理がなされる。
Next, the operation will be explained. Information processing module (3)
Alternatively, when outputting a buffer acquisition request (6) to the buffer management module (1), the necessary buffer length is presented to the buffer management module (1). The buffer management module (1) allocates the requested amount of buffers from the buffer pool (2) and returns the obtained buffer (5) to the information processing module (3) (7). When a buffer is transferred (8) to a processing module (4) for information exchange, or when the information processing module (4) releases the transferred buffer (9), the released buffer (5) is used for buffer management. Present to module (1). In this way, used buffers and empty buffers are managed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のバッファ管理方式は以上のように構成されていた
ため、情報交換の為にバッファの占有権を他の情報処理
モジュールに譲渡後、譲渡を行なった情報処理モジュー
ルが誤ってバッファを解放し他の情報処理モジュールの
バッファ占有権が喪失したり、或は情報交換後も獲得し
たバッファの解放を忘れたりすると、他の情報処理モジ
ュールに対しバッファ不足を招く問題点があった。
Conventional buffer management systems were configured as described above, so that after transferring the exclusive right to a buffer to another information processing module for information exchange, the information processing module that performed the transfer mistakenly released the buffer and caused other users to If an information processing module loses its exclusive right to a buffer, or if it forgets to release an acquired buffer even after information is exchanged, there is a problem in that it causes a buffer shortage for other information processing modules.

以上のような問題点を解決するために特開昭63−89
949号公報に示された「メモリバッファ管理方式」、
及び特開昭62−293450号公報に示された「バッ
ファ管理方式」にはバッファの使用状況、或は所定時間
経過後のバッファの使用状況並びバッファ内容を記録し
、バッファの有効利用を計る手段を開示しであるが、こ
れらのものはバッファの異常占有時間、及びバッファの
誤解放に対する対策が開示されていない。
In order to solve the above problems, Japanese Patent Application Laid-Open No. 63-89
"Memory buffer management method" disclosed in Publication No. 949,
The "buffer management method" disclosed in Japanese Patent Application Laid-open No. 62-293450 includes means for recording the buffer usage status or the buffer usage status and buffer contents after a predetermined period of time has elapsed, and measures the effective use of the buffer. Although these disclosures do not disclose countermeasures against abnormal buffer occupancy time and erroneous buffer release.

この発明は上記のような問題を解消するためになされた
もので、他のモジュールへ渡したバッファを誤って解放
したり、獲得又は他のモジュールから受は取ったバッフ
ァを解放し忘れてバッファ不足になるようなことを防ぐ
バッファ管理方式を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and it is possible to accidentally release a buffer passed to another module, or forget to release a buffer acquired or received from another module, resulting in a buffer shortage. The purpose is to obtain a buffer management method that prevents such occurrences.

(課題を解決するための手段) この発明に係るバッファ管理方式は、各情報処理モジュ
ール間の情報交換に用いるバッファをバッファプールよ
り獲得、或はバッファプールへの解放を管理するバッフ
ァ管理モジュールを備え、該バッファ管理モジュールに
バッファを獲得した情報処理モジュールの識別子及び獲
得バッファ占有時間等のバッファ管理情報を記録する手
段と、占有時間超過バッファをバッファ管理モジュール
より検索時に、該バッファ内容をメモリに転送後、当該
バッファプールに強制解放し低優先順位データ転送用に
割り当てる手段とを設けたものである。
(Means for Solving the Problems) A buffer management method according to the present invention includes a buffer management module that manages acquisition of a buffer used for information exchange between each information processing module from a buffer pool or release to the buffer pool. , means for recording buffer management information such as the identifier of the information processing module that acquired the buffer and the acquired buffer occupation time in the buffer management module, and when the buffer management module searches for a buffer whose occupation time has exceeded, the buffer contents are transferred to the memory. After that, the buffer pool is forcibly released and allocated for low-priority data transfer.

〔作用) この発明によるバッファ管理モジュールはバッファを獲
得した情報処理モジュールの識別子、及び当該バッファ
の占有時間等の管理情報を記録し、該管理情報に照らし
合わせて占有時間を超過したバッファを検出時には、そ
の検出されたバッファをバッファプールに不良バッファ
として強制解放し、その後優先順位の低い情報交換用に
用いることで、車にバッファプールに強制解放すること
でなく有効利用できるため、バッファ不足を招くことが
ない。
[Operation] The buffer management module according to the present invention records management information such as the identifier of the information processing module that acquired the buffer and the occupancy time of the buffer, and when detecting a buffer whose occupancy time has exceeded the occupancy time by comparing it with the management information. By forcibly releasing the detected buffer to the buffer pool as a bad buffer, and then using it for low-priority information exchange, it can be used effectively instead of being forced to release it to the buffer pool in the car, which would lead to a buffer shortage. Never.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。尚、
図中、第3図と同一符号は同−又は相当部分を示し、そ
の詳細な説明は省略する。図において、(1a)は本実
施例におけるバッファ管理モジュールであり、バッファ
管理項目としてバッファの使用/未使用、バッファの使
用時間、バッファの所有者が記録される。(3a)はバ
ッファ管理モジュール(1a)に対するバッファ譲渡要
求である。
An embodiment of the present invention will be described below with reference to the drawings. still,
In the figure, the same reference numerals as in FIG. 3 indicate the same or corresponding parts, and detailed explanation thereof will be omitted. In the figure, (1a) is a buffer management module in this embodiment, and buffer usage/unuse, buffer usage time, and buffer owner are recorded as buffer management items. (3a) is a buffer transfer request to the buffer management module (1a).

次に、本実施例の動作を第2図(a)〜(e)のフロー
チャートに従って説明する。尚、第2図(a)はバッフ
ァ獲得処理ルーチン、同図(b)はy<ソファ正常解放
処理ルーチン、同図(c)はバ・ソファ異常解放処理ル
ーチン、同図(d)はヘルスレベル回復処理ルーチン、
同図(e)はハ・ソファ譲渡処理ルーチンである。
Next, the operation of this embodiment will be explained according to the flowcharts shown in FIGS. 2(a) to 2(e). In addition, FIG. 2(a) shows the buffer acquisition processing routine, FIG. 2(b) shows the y<sofa normal release processing routine, FIG. 2(c) shows the buffer sofa abnormal release processing routine, and FIG. 2(d) shows the health level. recovery processing routine,
FIG. 6(e) shows the Ha Sofa transfer processing routine.

先ず、情報処理モジュール(3)が、バッファを獲得(
6)する際、その必要なバッファ長をノ〈ソファ管理モ
ジュール(la)に対し提示する。1<ソファ管理モジ
ュール(1a)は、バッファプール(2)から、要求さ
れた量のバッファを割り当て(5)でそのバッファを情
報処理モジュール(3)に返す(7)   このバッフ
ァ割り当ての際には、第1図(a)  に示す如く、バ
ッファ管理モジュー’At (la)は、まずバッフア
ブ、−ルの1次バッファでノ(ソファ獲得を試み、バッ
ファ獲得時には1<ソファ管理モジュールはそのバッフ
ァの所有権と、使用開始時間をタイマでセットする。だ
が、1次)くツファ獲得に失敗した時は、2次バッファ
でバッファ獲得を試みる(ここで1次バッファとはヘル
スレベルが健全な状態のバッファプールを示し、2次バ
ッファとはヘルスレベルが健全てない状態のバッファプ
ールを示すものとする。なお、ヘルスレベルはバッファ
が強制解放された時に健全てない状態に設定される)。
First, the information processing module (3) acquires a buffer (
6), the required buffer length is presented to the sofa management module (la). 1<The sofa management module (1a) allocates the requested amount of buffers from the buffer pool (2) (5) and returns the buffers to the information processing module (3) (7). , as shown in Figure 1(a), the buffer management module 'At (la) first attempts to acquire a sofa in the primary buffer of the buffer, and when acquiring the buffer, the sofa management module Set ownership and usage start time using a timer. However, if the primary buffer acquisition fails, try to acquire the secondary buffer (here, the primary buffer is a buffer with a healthy health level). A secondary buffer is a buffer pool whose health level is not healthy (the health level is set to not healthy when a buffer is forcibly released).

2次バッファ割当の時は、警告を出しエラーログを取る
。1次バッファ、2次バッファのうちいずれが割り当て
られた時も所有権、使用開始時間をバッファ管理モジュ
ールに設定する。
When a secondary buffer is allocated, a warning is issued and an error log is recorded. When either a primary buffer or a secondary buffer is allocated, ownership and use start time are set in the buffer management module.

バッファを獲得した情報処理モジュール(3)が情報処
理モジュール(4)に情報交換のためバッファを譲渡す
る時は(8)、バッファ管理モジュールに対し、バッフ
ァ譲渡要求(3a)を出す。この時、第2図(C)に示
す如く譲渡要求を出したバッファの所有権は正しいかチ
エツクし、正しけれはバッファ譲渡要求を受けたバッフ
ァ管理モジュールは、そのバッファの所有者を変更し、
使用開始タイマを再セットする。正しければ、タイマリ
セット、所有権の変更を行ない、誤っていればエラーロ
グを取り、警告を出す。
When the information processing module (3) that has acquired the buffer transfers the buffer to the information processing module (4) for information exchange (8), it issues a buffer transfer request (3a) to the buffer management module. At this time, as shown in FIG. 2(C), it is checked whether the ownership of the buffer that issued the transfer request is correct, and if it is correct, the buffer management module that received the buffer transfer request changes the owner of the buffer,
Reset the activation timer. If it is correct, reset the timer and change the ownership; if it is incorrect, record the error log and issue a warning.

情報処理モジュール(4)が、譲渡されたバッファを解
放する(9)時は、バッファ管理モジュール(1a)に
よって所有権が、チエツクされる。この時、所有権をチ
エツクし、正しければバッファを1次バッファプールへ
正常解放処理(第2図(b))する。誤っていればバッ
ファは解放せずエラーログを取り、警告を出す。
When the information processing module (4) releases (9) the transferred buffer, ownership is checked by the buffer management module (1a). At this time, the ownership is checked, and if it is correct, the buffer is normally released to the primary buffer pool (FIG. 2(b)). If it is incorrect, the buffer is not freed, an error log is recorded, and a warning is issued.

以上の全ての処理の間で、使用開始タイマが、タイムア
ウトした時は、バッファ管理モジュール(la)により
所定の処理(例えば、バッファの異常解放処理(第2図
(c) ) )を行なう。バッファの異常解放処理では
、70秒毎にの起動され使用中バッファでタイムアウト
したバッファがあればそのバッファの内容を2次記憶ヘ
コビーし、エラーログを取り、ヘルスレベルを健全でな
い状態に設定し2次バッファプールへつなぐ。
During all of the above processes, when the use start timer times out, the buffer management module (la) performs a predetermined process (eg, buffer abnormal release process (FIG. 2(c))). In the buffer abnormality release process, if there is a buffer that is in use and has timed out, it is started every 70 seconds, and if there is a buffer that is in use, the contents of that buffer are deleted from the secondary memory, an error log is created, and the health level is set to an unhealthy state. Connect to the next buffer pool.

尚、バッファの異常解放処理で、2次バッファプールに
つながれた、バッファのヘルスレベル回復処理は第2図
(d)に示す如く、処理をT1秒毎に起動され、モニタ
機能によって、現在活動状態の情報処理モジュールを調
へ、2次バッファプールへつなかれたバッファて活動状
態にない情報処理モジュール所有のものかあれは、ヘル
スレベルを健全な状態に回復し、1次バッファプールへ
つなぎかえ、所有権、使用開始時間をリセットする。
In addition, the health level recovery process of the buffer connected to the secondary buffer pool due to the abnormal buffer release process is started every T1 seconds, as shown in Figure 2 (d), and the current active state is monitored by the monitor function. If the buffers connected to the secondary buffer pool are owned by an inactive information processing module, the health level is restored to a healthy state, and the buffers connected to the secondary buffer pool are reconnected to the primary buffer pool. Reset ownership and start time.

なお、上記実施例では、情報処理モジュール般に関して
述へたが、例えばO5Iの7層構造を為す処理モジュー
ル間の情報交換に用いるバッファの管理において特に有
効となる。
In the above embodiment, information processing modules in general have been described, but it is particularly effective in managing buffers used for exchanging information between processing modules forming a seven-layer structure of O5I, for example.

〔発明の効果] 以上のように、この発明によれば、バッファの所有者と
占有時間を管理することにより、情報処理モジュール間
でのバッファの譲渡動作後の所有者の異なったバッファ
による誤ったバッファの解放、及び占有時間超過により
バッファの解放し忘れによるバッファの使い尽くし等の
障害を防止できる効果がある。
[Effects of the Invention] As described above, according to the present invention, by managing buffer owners and occupancy times, errors caused by buffers with different owners after a buffer transfer operation between information processing modules can be prevented. This has the effect of preventing failures such as the buffer being used up due to forgetting to release the buffer due to the buffer being released and the occupancy time being exceeded.

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

第1図はこの発明の一実施例によるバッファ管理方式の
構成を示す図、第2図(a)〜(e)は本実施例の動作
を説明するフローチャートを示す図、第3図は従来のバ
ッファ管理方式の構成を示す図である。 図において、(la)はバッファ管理モジュール、(2
)はバッファプール、(3) 、 (4)は情報処理モ
ジュール、(5)は獲得バッファ、(6)はバッファI
得要求、(6)はバッファ譲渡、(9)はバッファ解放
。 なお、各図中同一符号は同一または相当部分を示す。
FIG. 1 is a diagram showing the configuration of a buffer management system according to an embodiment of the present invention, FIGS. 2(a) to (e) are flowcharts explaining the operation of this embodiment, and FIG. FIG. 2 is a diagram showing the configuration of a buffer management method. In the figure, (la) is a buffer management module, (2
) is the buffer pool, (3) and (4) are the information processing module, (5) is the acquisition buffer, and (6) is the buffer I.
(6) is a buffer transfer, and (9) is a buffer release. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims]  各情報処理モジュール間の情報交換に用いるバッファ
をバッファプールより獲得、或はバッファプールへの解
放を管理するバッファ管理モジュールを備え、該バッフ
ァ管理モジュールにバッファを獲得した情報処理モジュ
ールの識別子及び獲得バッファ占有時間等のバッファ管
理情報を記録する手段と、占有時間超過バッファをバッ
ファ管理モジュールより検索時に、該バッファ内容をメ
モリに転送後、当該バッファプールに強制解放し低優先
順位データ転送用に割り当てる手段とを備えたことを特
徴とするバッファ管理方式。
A buffer management module that manages acquisition of a buffer used for information exchange between each information processing module from a buffer pool or release to the buffer pool, and the buffer management module is provided with an identifier of the information processing module that acquired the buffer and the acquisition buffer. Means for recording buffer management information such as occupancy time, and means for forcibly releasing the contents of the buffer into the buffer pool and allocating it for low priority data transfer after transferring the buffer contents to the memory when the buffer management module searches for a buffer whose occupancy time has exceeded. A buffer management method characterized by comprising:
JP11616790A 1990-05-02 1990-05-02 Buffer control system Pending JPH0415735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11616790A JPH0415735A (en) 1990-05-02 1990-05-02 Buffer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11616790A JPH0415735A (en) 1990-05-02 1990-05-02 Buffer control system

Publications (1)

Publication Number Publication Date
JPH0415735A true JPH0415735A (en) 1992-01-21

Family

ID=14680450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11616790A Pending JPH0415735A (en) 1990-05-02 1990-05-02 Buffer control system

Country Status (1)

Country Link
JP (1) JPH0415735A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5980015A (en) * 1995-04-19 1999-11-09 Seiko Epson Corporation Ink jet printing head embodiment with drive signal circuit outputting different drive signals each printing period and with selecting circuit applying one of the signals to piezoelectric elements that expand and contract pressure generating chambers
JP2001084215A (en) * 1999-07-12 2001-03-30 Matsushita Electric Ind Co Ltd Data processor
US6328395B1 (en) 1996-09-09 2001-12-11 Seiko Epson Corporation Ink jet printer and ink jet printing method
US6450603B1 (en) 1998-06-10 2002-09-17 Seiko Epson Corporation Driver for ink jet recording head
US6494556B1 (en) 1999-08-18 2002-12-17 Seiko Epson Corporation Liquid jetting apparatus, method of driving the same, and computer-readable record medium storing the method
US7794034B2 (en) 2003-06-26 2010-09-14 Ricoh Company, Ltd. Image formation apparatus
JP2012242882A (en) * 2011-05-16 2012-12-10 Nippon Telegr & Teleph Corp <Ntt> Data storage area management device, data storage area management method, and data storage area management program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5980015A (en) * 1995-04-19 1999-11-09 Seiko Epson Corporation Ink jet printing head embodiment with drive signal circuit outputting different drive signals each printing period and with selecting circuit applying one of the signals to piezoelectric elements that expand and contract pressure generating chambers
US6328395B1 (en) 1996-09-09 2001-12-11 Seiko Epson Corporation Ink jet printer and ink jet printing method
EP1332876A2 (en) 1996-09-09 2003-08-06 Seiko Epson Corporation Ink jet printer and ink printing method
EP1366919A2 (en) 1996-09-09 2003-12-03 Seiko Epson Corporation Ink jet printer and ink jet printing method
US6450603B1 (en) 1998-06-10 2002-09-17 Seiko Epson Corporation Driver for ink jet recording head
JP2001084215A (en) * 1999-07-12 2001-03-30 Matsushita Electric Ind Co Ltd Data processor
US6494556B1 (en) 1999-08-18 2002-12-17 Seiko Epson Corporation Liquid jetting apparatus, method of driving the same, and computer-readable record medium storing the method
US7794034B2 (en) 2003-06-26 2010-09-14 Ricoh Company, Ltd. Image formation apparatus
JP2012242882A (en) * 2011-05-16 2012-12-10 Nippon Telegr & Teleph Corp <Ntt> Data storage area management device, data storage area management method, and data storage area management program

Similar Documents

Publication Publication Date Title
EP0810526B1 (en) Quorum mechanism in a two-node distributed computer system
EP0510822B1 (en) Distributed network monitoring system for monitoring node and link status
US6708175B2 (en) Program support for disk fencing in a shared disk parallel file system across storage area network
JP2004094774A (en) Looped interface failure analyzing method and system with failure analyzing function
JPH0415735A (en) Buffer control system
CN110445638A (en) A kind of switch system fault protecting method and device
US6453429B1 (en) Method and apparatus for bus hang detection and identification of errant agent for fail safe access to trapped error information
CN109614280A (en) A kind of state test method storing equipment
JPH0341522A (en) Message missing detecting and processing system
JPH07262042A (en) Detecting method for fault of processor
JPS5856158A (en) Remote maintenance system
JPH11327937A (en) Resource exclusive control system
JPS6126168A (en) Memory unlocking system of information processor
JP2908430B1 (en) Host processor monitoring apparatus and monitoring method for multiprocessor system
JPS6129966A (en) Monitoring method in exchange of message between computers
JP3328474B2 (en) Network monitoring and control equipment
JP2000099413A (en) Remote transfer device and its method
CN116244140A (en) Multi-process and multi-thread monitoring method, device, computer equipment and medium
JPH03253945A (en) Abnormality recovery processing function confirming system for data processing system
JPS5844552A (en) Equivalently decentralized information process system
JPH01286070A (en) Data processing system
JP3169488B2 (en) Communication control device
JPH08305675A (en) Multi-processor system and its operation management method
CN115328737A (en) Multi-controller hot plug recording method, device and storage medium
JPH0646093A (en) Long time storage supervisory system for memory resource