JP3349949B2 - Buffer management method and its program recording medium - Google Patents
Buffer management method and its program recording mediumInfo
- Publication number
- JP3349949B2 JP3349949B2 JP08368598A JP8368598A JP3349949B2 JP 3349949 B2 JP3349949 B2 JP 3349949B2 JP 08368598 A JP08368598 A JP 08368598A JP 8368598 A JP8368598 A JP 8368598A JP 3349949 B2 JP3349949 B2 JP 3349949B2
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- block
- management information
- program
- size
- 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 - Fee Related
Links
Description
【0001】[0001]
【発明の属する技術分野】本発明はバッファ管理方式お
よびそのプログラム記録媒体に関し、特にサイズが異な
る複数種類のバッファを一元管理するバッファ管理方式
およびそのプログラム記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer management system and a program recording medium thereof, and more particularly to a buffer management system for centrally managing a plurality of types of buffers having different sizes and a program recording medium thereof.
【0002】[0002]
【従来の技術】従来のバッファ管理方式では、バッファ
サイズは固定種類の固定長で提供されており、バッファ
管理プログラムがこのバッファを、各バッファサイズ毎
にプールバッファ(各プログラムに提供可能なバッファ
群)としてチェインし、その先頭と最後のバッファのア
ドレス、およびプールバッファ数を管理情報としてい
る。バッファを使用する各プログラムは、バッファ取得
要求(バッファサイズと個数を指定)をバッファ管理プ
ログラムに発行し、該当バッファサイズのプールバッフ
ァからバッファを取得する。使用後の不必要なバッファ
は、バッファ返却要求を発行することにより、該当バッ
ファサイズのプールバッファへ返却する。2. Description of the Related Art In a conventional buffer management system, a buffer size is provided in a fixed type of fixed length, and a buffer management program allocates this buffer to a pool buffer (a buffer group that can be provided to each program) for each buffer size. ), And the addresses of the first and last buffers and the number of pool buffers are used as management information. Each program that uses the buffer issues a buffer acquisition request (designating the buffer size and number) to the buffer management program, and acquires a buffer from the pool buffer of the buffer size. Unnecessary buffers after use are returned to the pool buffer of the corresponding buffer size by issuing a buffer return request.
【0003】このとき、バッファに格納するデータが小
さければ小さいほど、バッファに占める未使用領域は大
きくなる。バッファはシステム内の記憶領域であるた
め、バッファに占める未使用領域が大きくなるほど、シ
ステム資源を無駄に使用することになる。このようなシ
ステム資源の無駄使いは、資源不足を誘発し、それに伴
う資源空き待ち時間の発生等によるシステム動作の劣化
につながる。At this time, the smaller the data to be stored in the buffer, the larger the unused area in the buffer. Since the buffer is a storage area in the system, the larger the unused area in the buffer is, the more the system resources are wasted. Such waste of system resources leads to resource shortage, which leads to deterioration of system operation due to occurrence of resource idle waiting time and the like.
【0004】また、逆に大量のデータを複数の小さなバ
ッファに格納する場合、バッファに占める使用領域の割
合は向上するが、使用するバッファ個数だけデータの移
送作業を行う必要があるため、移送効率を低下(システ
ム動作の劣化につながる)させることになる。Conversely, when a large amount of data is stored in a plurality of small buffers, the ratio of the used area in the buffer is improved, but the data must be transferred by the number of used buffers. (Which leads to deterioration of system operation).
【0005】しかし、バッファを使用する各プログラム
が扱うユーザデータはシステムごとに異なるので、バッ
ファに格納するデータ長もシステムごとに異なると考え
られる(あるシステムでは会話型プログラムによるコマ
ンド=短いデータ=の送受信がメインであったり、ある
システムではファイル転送など長いデータの送受信がメ
インだったり等)。However, since the user data handled by each program that uses the buffer differs from system to system, the length of data stored in the buffer is also considered to be different from system to system (in some systems, a command by an interactive program = short data = (For example, transmission / reception is main, and some systems mainly transmit / receive long data such as file transfer.)
【0006】すなわち、従来のバッファ管理方式は各シ
ステムの運用形態を考慮していないので、システム形態
によっては、バッファ(システム資源)の無駄使いの発
生や移送効率の低下により、システム性能を劣化させる
ことが多い。That is, the conventional buffer management method does not consider the operation form of each system, so that depending on the system form, the system performance is degraded due to the wasteful use of buffers (system resources) and the decrease in transfer efficiency. Often.
【0007】[0007]
【発明が解決しようとする課題】上記のように、従来の
バッファ管理方式は、バッファを使用する業務プログラ
ムの運用状況に基因して、バッファ領域に無駄な未使用
領域を発生させたり、時間がかかるデータ転送を繰り返
す必要がある。したがって、システムの性能を著しく低
下させることがあるという欠点がある。As described above, according to the conventional buffer management method, a wasteful unused area is generated in the buffer area or time is reduced depending on the operation status of the business program using the buffer. It is necessary to repeat such data transfer. Therefore, there is a disadvantage that the performance of the system may be significantly reduced.
【0008】本発明の目的は、上記の欠点を改善し、業
務プログラムのバッファ取得要求に対応して最適なサイ
ズのバッファを提供するようにしてシステムの性能を向
上させるバッファ管理方式およびそのプログラム記録媒
体を提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to improve the system performance by improving the above drawbacks and providing a buffer having an optimum size in response to a buffer acquisition request of a business program, and a program recording method thereof. To provide a medium.
【0009】[0009]
【課題を解決するための手段】本発明のバッファ管理方
式は、サイズが異なる複数種類のバッファの制御情報を
保持するバッファ管理情報ファイルを備え前記バッファ
を一元管理するバッファ管理方式において、前記バッフ
ァ管理情報ファイルにあらかじめ格納されている制御情
報に基づいて主記憶の特定の領域を初期化するバッファ
領域初期化手段と、バッファを使用して業務を処理する
プログラムが送出するバッファ取得要求に従ってその要
求に最も適したサイズのバッファを選出し前記プログラ
ムに引き渡すバッファ取得手段と、前記プログラムが送
出するバッファ返却要求に従って指定されたバッファを
未使用バッファとして返却しその管理情報を更新するバ
ッファ返却手段と、前記バッファ取得手段および前記バ
ッファ返却手段に指示されてバッファのブロックの拡張
および縮退を実行しその管理情報を更新するブロック変
更手段と、前記バッファ管理情報ファイルを定期的に参
照してバッファサイズごとにその使用状況を監視し前記
使用状況に対応してその管理指標を更新するバッファ使
用頻度検査手段とを有して構成される。A buffer management system according to the present invention includes a buffer management information file for holding control information of a plurality of types of buffers having different sizes, and a buffer management system for centrally managing the buffers. A buffer area initialization means for initializing a specific area of the main memory based on control information stored in advance in an information file; and a buffer acquisition request sent by a program for processing a job using a buffer. Buffer acquisition means for selecting a buffer of the most suitable size and transferring the buffer to the program, buffer return means for returning a designated buffer as an unused buffer according to a buffer return request sent by the program and updating its management information, Buffer acquisition means and the buffer return means Block changing means for executing the expansion and contraction of the indicated buffer block and updating the management information thereof, and periodically referring to the buffer management information file to monitor the usage status of each buffer size and monitor the usage status. And a buffer use frequency check unit for updating the management index in response.
【0010】さらに、本発明のバッファ管理方式におい
て、前記バッファ取得手段はバッファを使用して業務を
処理するバッファ使用プログラムに要求されたサイズに
最も適したバッファサイズを選出する第1の処理と、前
記第1の処理が選出したバッファサイズのブロック制御
エリアを参照し必要分のバッファの有無を検査する第2
の処理と、前記第2の処理において必要分のバッファが
ないとき前記ブロック変更手段にブロック拡張要求を発
行し前記第1の処理に戻る第3の処理と、前記第2の処
理において必要分のバッファがあるときそのバッファを
チェインに連結し前記バッファ使用プログラムに引き渡
す第4の処理とを備える。Further, in the buffer management method according to the present invention, the buffer acquisition means selects a buffer size most suitable for a size required by a buffer use program that processes a business using the buffer; A second process for checking the presence or absence of necessary buffers by referring to a block control area of a buffer size selected by the first process;
A third processing for issuing a block expansion request to the block changing means when there is no necessary buffer in the second processing, and returning to the first processing; And a fourth process of connecting the buffer to a chain when the buffer is present and delivering the buffer to the buffer using program.
【0011】さらに、本発明のバッファ管理方式におい
て、前記バッファ返却手段はバッファを使用して業務を
処理するバッファ使用プログラムに返却要求されたバッ
ファが属するブロックを調べる第5の処理と、前記バッ
ファをその属するブロックに返却する第6の処理と、前
記第6の処理を終了したときすべてのバッファが返却さ
れているブロックがある場合には前記ブロック変更手段
に前記ブロックのブロック縮退要求を発行する第7の処
理と、前記バッファ使用プログラムに要求されたバッフ
ァの返却が終了したことを通知する第8の処理とを備え
る。Further, in the buffer management system according to the present invention, the buffer return means includes a fifth process for examining a block to which the buffer requested to be returned belongs by a buffer use program for processing a business using the buffer; A sixth process for returning to the block to which the block belongs, and issuing a block degeneration request for the block to the block changing means when there is a block in which all buffers have been returned when the sixth process is completed. 7 and an eighth process for notifying the buffer use program that the requested buffer has been returned.
【0012】さらに、本発明のバッファ管理方式におい
て、前記ブロック変更手段は前記バッファ取得手段が発
行したブロック拡張要求に従って、前記バッファ管理情
報ファイルに格納されている要求されたバッファサイズ
のしきい値上限ブロック数およびブロック拡張プライオ
リティを参照し、ブロック拡張可能であれば未使用のブ
ロックを要求されたバッファに分割し、そのブロックの
ブロック制御エリアの制御情報を変更する第9の処理
と、前記バッファ返却手段が発行したブロック縮退要求
に従って、前記バッファ管理情報ファイルに格納されて
いる要求されたバッファサイズのしきい値下限ブロック
数およびブロック縮退プライオリティを参照し、ブロッ
ク縮退可能であればそのブロックを未使用のブロックに
変更し、そのブロックのブロック制御エリアの制御情報
を変更する第10の処理とを備える。Further, in the buffer management method according to the present invention, the block changing means may be configured to execute a block expansion request issued by the buffer acquisition means and to set a threshold upper limit of a requested buffer size stored in the buffer management information file. A ninth process of referring to the number of blocks and the block expansion priority, dividing an unused block into a requested buffer if block expansion is possible, and changing control information of a block control area of the block, and returning the buffer In accordance with the block degeneration request issued by the means, reference is made to the threshold lower limit block number and the block degeneration priority of the requested buffer size stored in the buffer management information file, and if block degeneration is possible, the block is not used. Change the block to And a tenth process of changing the control information of the block control area.
【0013】さらに、本発明のバッファ管理方式におい
て、前記バッファ使用頻度検査手段はバッファ領域のセ
グメント制御エリアおよびブロック制御エリアを一定時
間ごとに参照し、その制御情報を前記バッファ管理情報
ファイルに書込む第11の処理と、前記バッファ管理情
報ファイルに格納されたバッファサイズごとの管理情報
に基づいてバッファサイズごとにブロック拡張/縮退プ
ライオリティ,しきい値上限/下限ブロック数,および
初期化時ブロック数を求め前記バッファ管理情報ファイ
ルに書込む第12の処理とを備える。Further, in the buffer management system according to the present invention, the buffer use frequency checking means refers to the segment control area and the block control area of the buffer area at regular time intervals, and writes the control information into the buffer management information file. Eleventh processing, and based on the management information for each buffer size stored in the buffer management information file, the block expansion / degeneration priority, threshold upper / lower block count, and initialization block count for each buffer size. And twelfth processing for writing in the buffer management information file.
【0014】また、本発明の記録媒体は、サイズが異な
る複数種類のバッファの制御情報を保持するバッファ管
理情報ファイルを備え前記バッファを一元管理するコン
ピュータシステムにあって、前記バッファ管理情報ファ
イルにあらかじめ格納されている制御情報に基づいて主
記憶の特定の領域を初期化するバッファ領域初期化ステ
ップと、バッファを使用して業務を処理するプログラム
が送出するバッファ取得要求に従ってその要求に最も適
したサイズのバッファを選出し前記プログラムに引き渡
すバッファ取得ステップと、前記プログラムが送出する
バッファ返却要求に従って指定されたバッファを未使用
バッファとして返却しその管理情報を更新するバッファ
返却ステップと、前記バッファ取得ステップおよび前記
バッファ返却ステップに指示されてバッファのブロック
の拡張および縮退を実行しその管理情報を更新するブロ
ック変更ステップと、前記バッファ管理情報ファイルを
定期的に参照してバッファサイズごとにその使用状況を
監視し前記使用状況に対応してその管理指標を更新する
バッファ使用頻度検査ステップとを実行させるプログラ
ムを記録したコンピュータ読み取り可能な記録媒体であ
る。Further, Con recording medium of the present invention, which centrally manages the buffer comprises a buffer management information file that holds the control information for different types of buffer size
A computer system, wherein a buffer area initialization step of initializing a specific area of main memory based on control information stored in advance in the buffer management information file; and A buffer acquisition step of selecting a buffer having a size most suitable for the request in accordance with the buffer acquisition request to be transmitted and transferring the buffer to the program; and returning a designated buffer as an unused buffer according to the buffer return request transmitted by the program, and managing the buffer. A buffer return step of updating the buffer management information file, a block change step of performing expansion and contraction of a block of a buffer instructed by the buffer acquisition step and the buffer return step, and updating the management information thereof, and periodically updating the buffer management information file. Refer to Monitoring the usage for each Ffasaizu in correspondence with the usage program to execute a buffer usage inspection step of updating the management index
Computer-readable recording medium
You .
【0015】さらに、本発明の記録媒体において、前記
バッファ取得ステップはバッファを使用して業務を処理
するバッファ使用プログラムに要求されたサイズに最も
適したバッファサイズを選出する第1のステップと、前
記第1のステップが選出したバッファサイズのブロック
制御エリアを参照し必要分のバッファの有無を検査する
第2のステップと、前記第2のステップにおいて必要分
のバッファがないとき前記ブロック変更ステップにブロ
ック拡張要求を発行し前記第1のステップに戻る第3の
ステップと、前記第2のステップにおいて必要分のバッ
ファがあるときそのバッファをチェインに連結し前記バ
ッファ使用プログラムに引き渡す第4のステップとを実
行させるプログラムである。Further, in the recording medium of the present invention, the buffer obtaining step is a first step of selecting a buffer size most suitable for a size requested by a buffer using program for processing a business using a buffer; A second step of checking the presence or absence of a necessary buffer by referring to the block control area of the buffer size selected in the first step; and, if there is no necessary buffer in the second step, the block is changed to the block changing step. A third step of issuing an extension request and returning to the first step, and a fourth step of connecting the buffer to a chain and transferring the buffer to the buffer use program when there is a necessary buffer in the second step. Real
It is a program to be executed .
【0016】さらに、本発明の記録媒体において、前記
バッファ返却ステップはバッファを使用して業務を処理
するバッファ使用プログラムに返却要求されたバッファ
が属するブロックを調べる第5のステップと、前記バッ
ファをその属するブロックに返却する第6のステップ
と、前記第6のステップを終了したときすべてのバッフ
ァが返却されているブロックがある場合には前記ブロッ
ク変更ステップに前記ブロックのブロック縮退要求を発
行する第7のステップと、前記バッファ使用プログラム
に要求されたバッファの返却が終了したことを通知する
第8のステップとを実行させるプログラムである。Further, in the recording medium according to the present invention, the buffer returning step includes a fifth step of examining a block to which the buffer requested to be returned belongs by a buffer use program for processing a business using the buffer; A sixth step of returning to the block to which it belongs, and a seventh step of issuing a block degeneration request for the block to the block changing step if there is a block in which all buffers have been returned when the sixth step is completed. a step of a program for executing an eighth step of return of the requested buffer in the buffer used program notifies the completion.
【0017】さらに、本発明の記録媒体において、前記
ブロック変更ステップは前記バッファ取得ステップが発
行したブロック拡張要求に従って、前記バッファ管理情
報ファイルに格納されている要求されたバッファサイズ
のしきい値上限ブロック数およびブロック拡張プライオ
リティを参照し、ブロック拡張可能であれば未使用のブ
ロックを要求されたバッファに分割し、そのブロックの
ブロック制御エリアの制御情報を変更する第9のステッ
プと、前記バッファ返却ステップが発行したブロック縮
退要求に従って、前記バッファ管理情報ファイルに格納
されている要求されたバッファサイズのしきい値下限ブ
ロック数およびブロック縮退プライオリティを参照し、
ブロック縮退可能であればそのブロックを未使用のブロ
ックに変更し、そのブロックのブロック制御エリアの制
御情報を変更する第10のステップとを実行させるプロ
グラムである。Further, in the recording medium according to the present invention, the block changing step is a threshold upper limit block of a requested buffer size stored in the buffer management information file in accordance with a block expansion request issued by the buffer acquisition step. A ninth step of referring to the number and the block expansion priority, dividing the unused block into a requested buffer if the block can be expanded, and changing control information of a block control area of the block, and the buffer returning step According to the block degeneration request issued by, refer to the threshold lower limit block number and block degeneration priority of the requested buffer size stored in the buffer management information file,
If block degeneration is possible, the block is changed to an unused block, and the tenth step of changing control information in the block control area of the block is executed.
Gram .
【0018】さらに、本発明の記録媒体において、前記
バッファ使用頻度検査ステップはバッファ領域のセグメ
ント制御エリアおよびブロック制御エリアを一定時間ご
とに参照し、その制御情報を前記バッファ管理情報ファ
イルに書込む第11のステップと、前記バッファ管理情
報ファイルに格納されたバッファサイズごとの管理情報
に基づいてバッファサイズごとにブロック拡張/縮退プ
ライオリティ,しきい値上限/下限ブロック数,および
初期化時ブロック数を求め前記バッファ管理情報ファイ
ルに書込む第12のステップとを実行させるプログラム
である。Further, in the recording medium of the present invention, the buffer use frequency inspection step refers to a segment control area and a block control area of a buffer area at regular time intervals, and writes the control information into the buffer management information file. Eleven steps and, based on the management information for each buffer size stored in the buffer management information file, obtain the block expansion / degeneration priority, threshold upper / lower limit block count, and initialization block count for each buffer size. program for executing a twelfth step of writing to the buffer management information file
It is .
【0019】すなわち、一般的なオペレーティングシス
テムにおける資源管理では、要求に応じたメモリ資源を
提供し、不要になったメモリ資源を再使用可能とするべ
く管理している。また、ミドルシステム内のバッファ管
理プログラムは、高速化やミドルの保守性の向上を目的
にシステムの資源管理からまとめて獲得したメモリ資源
を一定のバッファに分割・管理しミドルシステム内プロ
グラムに提供している。このとき、バッファは1種類も
しくは数種類存在し、要求側が必要とするバッファ種別
と個数をバッファ管理プログラムに通知して獲得する。That is, in the resource management in a general operating system, a memory resource is provided according to a request, and unnecessary memory resources are managed so as to be reusable. The buffer management program in the middle system divides and manages memory resources acquired from the system resource management into fixed buffers for the purpose of speeding up and improving the maintainability of the middle, and provides them to the programs in the middle system. ing. At this time, one or several types of buffers are present, and the type and number of buffers required by the requesting side are notified to the buffer management program and acquired.
【0020】このようなバッファ管理プログラムにおい
て、システムから獲得したメモリ資源をバッファブロッ
クという単位に分割して、このバッファブロックをプー
ル管理するとともに各バッファ種別に分配する。そして
システムの運用状況(各種バッファの使用状況)に応じ
て、割当のバッファブロック数を動的に拡張(プール管
理のバッファブロックを各種バッファに割当)・縮退
(バッファとして割り当てしたバッファブロックが一定
時間使用されていない場合、そのバッファブロックをプ
ール化)し、バッファ資源の有効利用を可能にする。In such a buffer management program, memory resources acquired from the system are divided into units called buffer blocks, and the buffer blocks are pool-managed and distributed to each buffer type. The number of allocated buffer blocks is dynamically expanded according to the operation state of the system (the usage state of various buffers) (the buffer blocks of the pool management are allocated to various buffers) and degenerated (the buffer blocks allocated as buffers are kept for a certain period of time). If not used, the buffer blocks are pooled) to enable efficient use of buffer resources.
【0021】また、システム運用時、この拡張・縮体の
履歴を運用ログとして採取し、それに基づいて各種バッ
ファへのバッファブロックの割当量を決定するとともに
バッファサイズとバッファ種別の数を決定し、ユーザシ
ステムに応じた運用を可能にする。Also, during system operation, the history of the expansion / contraction is collected as an operation log, and based on this, the allocation amount of buffer blocks to various buffers is determined, and the buffer size and the number of buffer types are determined. Enable operation according to the user system.
【0022】[0022]
【発明の実施の形態】以下、本発明について図面を参照
しながら説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.
【0023】図1は本発明の実施の一形態を示す説明図
である。同図において、本発明によるバッファ管理方式
10は、サイズが異なる複数種類のバッファの制御情報
を保持するバッファ管理情報ファイル40を備え前記バ
ッファを一元管理するバッファ管理方式において、前記
バッファ管理情報ファイルにあらかじめ格納されている
制御情報に基づいて主記憶の特定の領域を初期化するバ
ッファ領域初期化手段1と、バッファを使用して業務を
処理するプログラム(バッファ使用プログラム20)が
送出するバッファ取得要求に従ってその要求に最も適し
たサイズのバッファを選出し前記プログラムに引き渡す
バッファ取得手段2と、前記プログラムが送出するバッ
ファ返却要求に従って指定されたバッファを未使用バッ
ファとして返却しその管理情報を更新するバッファ返却
手段3と、前記バッファ取得手段および前記バッファ返
却手段に指示されてバッファのブロックの拡張および縮
退を実行しその管理情報を更新するブロック変更手段4
と、前記バッファ管理情報ファイルを定期的に参照して
バッファサイズごとにその使用状況を監視し前記使用状
況に対応してその管理指標を更新するバッファ使用頻度
検査手段5とを有する。FIG. 1 is an explanatory diagram showing an embodiment of the present invention. In FIG. 1, a buffer management system 10 according to the present invention includes a buffer management information file 40 for holding control information of a plurality of types of buffers having different sizes, and a buffer management system for centrally managing the buffers. A buffer area initialization means 1 for initializing a specific area of the main memory based on control information stored in advance, and a buffer acquisition request sent by a program (buffer use program 20) for processing business using a buffer. A buffer acquisition means 2 for selecting a buffer having a size most suitable for the request and transferring the buffer to the program, and a buffer for returning a designated buffer as an unused buffer and updating its management information in accordance with a buffer return request sent by the program. Return means 3 and the buffer It is instructed to the means and the buffer returning unit performs expansion and degeneration of block buffer block changing means 4 for updating the management information
And a buffer use frequency checker 5 that periodically refers to the buffer management information file, monitors the use status of each buffer size, and updates the management index according to the use status.
【0024】なお、セグメント30はオペレーティング
システムによってバッファ領域として割り当てられた主
記憶領域である。The segment 30 is a main storage area allocated as a buffer area by the operating system.
【0025】図2は上記のバッファ領域初期化手段1の
動作を示す説明図である。FIG. 2 is an explanatory diagram showing the operation of the buffer area initializing means 1 described above.
【0026】バッファ領域初期化手段1は、システム起
動時に一度だけ動作し、システム内の記憶領域の内バッ
ファ領域として確保された領域(セグメント30)をさ
らに一定のサイズに分割(ブロックと呼ぶ)する。この
ブロック31がバッファの割り当て単位となる。The buffer area initializing means 1 operates only once at the time of system startup, and further divides an area (segment 30) secured as a buffer area of a storage area in the system into a certain size (called a block). . This block 31 is a buffer allocation unit.
【0027】さらに、バッファ管理情報ファイル内の情
報(初期化時のブロック数)を元にブロックをバッファ
サイズに分割してチェイニング(線形リスト方式により
連鎖)し、その先頭アドレスと最終アドレスをブロック
内の制御エリアに格納する。ブロックをどのバッファサ
イズに分割するか(バッファサイズ毎にいくつのブロッ
クを割り当てるか)の情報はバッファ情報管理ファイル
より読み込む。Further, based on the information (the number of blocks at the time of initialization) in the buffer management information file, the blocks are divided into buffer sizes and chained (chained by a linear list method), and the start address and the end address are assigned to the blocks. Stored in the control area inside Information on which buffer size the block is divided into (how many blocks are allocated for each buffer size) is read from the buffer information management file.
【0028】また、ブロック31には、そのブロック内
のバッファ31bを制御するためのブロック制御エリア
31aを確保しそこに制御情報として、バッファ種別,
バッファの先頭アドレス,最終アドレス,ブロック内の
プールバッファ個数,未使用バッファ個数を格納する。Further, in the block 31, a block control area 31a for controlling the buffer 31b in the block is secured, and the control information includes buffer type,
Stores the start address and end address of the buffer, the number of pool buffers in the block, and the number of unused buffers.
【0029】なお、セグメント制御エリア30aでは、
各ブロックがどのバッファ種別により使用されているか
の制御情報をもつ。バッファ種別に関してはシステム定
義により設定する。In the segment control area 30a,
Each block has control information indicating which buffer type is used by each block. The buffer type is set by the system definition.
【0030】上記の制御情報を整理すると、セグメント
制御エリア30aには全ブロック数,各ブロックのアド
レス,各ブロックのバッファ種別が保持され、ブロック
制御エリア31aにはバッファ種別,バッファ数,未使
用バッファ数,先頭バッファアドレス,最終バッファア
ドレス,取得要求回数,取得要求間隔,返却要求回数,
返却要求間隔が保持される。When the above control information is organized, the segment control area 30a holds the total number of blocks, the address of each block, and the buffer type of each block, and the block control area 31a stores the buffer type, the number of buffers, and the unused buffer. Number, first buffer address, last buffer address, acquisition request count, acquisition request interval, return request count,
The return request interval is maintained.
【0031】図3は上記のバッファ取得手段2の動作を
示す流れ図である。同図において、バッファ取得手段2
はバッファを使用して業務を処理するバッファ使用プロ
グラムに要求されたサイズに最も適したバッファサイズ
を選出する第1の処理(S21)と、前記第1の処理が
選出したバッファサイズのブロック制御エリアを参照し
必要分のバッファの有無を検査する第2の処理(S2
2)と、前記第2の処理において必要分のバッファがな
いとき前記ブロック変更手段4にブロック拡張要求を発
行し前記第1の処理に戻る第3の処理(S23)と、前
記第2の処理において必要分のバッファがあるときその
バッファをチェインに連結し前記バッファ使用プログラ
ムに引き渡す第4の処理(S24)とを備える。FIG. 3 is a flowchart showing the operation of the buffer acquisition means 2 described above. In FIG.
Is a first process (S21) for selecting a buffer size most suitable for a size requested by a buffer use program that processes a job using a buffer, and a block control area for the buffer size selected by the first process. Processing (S2) for checking whether there is a necessary buffer with reference to
2), a third process (S23) for issuing a block expansion request to the block changing means 4 when there is no necessary buffer in the second process, and returning to the first process, and the second process And a fourth process (S24) for connecting the buffer to the chain when there is a necessary buffer and transferring the buffer to the buffer using program.
【0032】上記のバッファ取得手段2は、各バッファ
使用プログラムからのバッファ取得要求の発行により動
作する。バッファ取得要求は、「バッファのサイズと個
数」でなく「必要サイズとその個数(規定値は一つ)」
を指定する。The buffer acquisition means 2 operates by issuing a buffer acquisition request from each buffer using program. Buffer acquisition request is not "buffer size and number" but "necessary size and number (the specified value is one)"
Is specified.
【0033】バッファ取得要求が発行されると、現存の
バッファサイズから要求されたサイズを格納するのに最
も適したバッファサイズを選択する。When a buffer acquisition request is issued, a buffer size most suitable for storing the requested size is selected from the existing buffer sizes.
【0034】次に、セグメントの制御情報から該当バッ
ファサイズで分割されたブロック制御エリアを参照し、
必要個数分のバッファの有無をチェックする。Next, referring to the block control area divided by the corresponding buffer size from the control information of the segment,
Check if the required number of buffers exist.
【0035】バッファが存在する場合は要求された個数
のバッファのチェインをはずし、バッファ取得要求発行
元のプログラムにバッファと「バッファサイズおよび個
数」を渡すとともに、ブロック制御エリアの情報(取得
要求回数、取得要求間隔)の更新およびセグメント情報
エリアの要求サイズ履歴に要求されたサイズを書き込
む。If a buffer exists, the requested number of buffers are unchained, the buffer and the "buffer size and number" are passed to the program that issued the buffer acquisition request, and the information of the block control area (the number of acquisition requests, Update the acquisition request interval) and write the requested size in the requested size history in the segment information area.
【0036】このとき、一つのブロックで必要個数に満
たなかった場合は、同一バッファサイズで分割されたほ
かのブロックのバッファをチェインリンクし要求を完了
させる。At this time, if one block does not have the required number, the buffers of other blocks divided by the same buffer size are chain-linked to complete the request.
【0037】同一バッファ種別の他の全てのブロックを
参照しても必要個数のバッファに満たなかった場合、ブ
ロック変更手段4にブロック拡張要求を発行し、再度バ
ッファサイズ算出を行い(このとき獲得できなかったバ
ッファサイズは対象から外す。)、代替えのバッファサ
イズによるバッファ獲得を行う。If the required number of buffers is less than the required number of buffers even when referring to all other blocks of the same buffer type, a block expansion request is issued to the block changing means 4 and the buffer size is calculated again (at this time, the buffer size cannot be obtained). The buffer size that did not exist is excluded from the target.), And the buffer is acquired using the alternative buffer size.
【0038】本取得方法では要求元プログラムに対して
は必ずしも連続領域のバッファを渡すとは限らない。た
とえば3Kバイトのバッファを1つと要求された場合、
2Kバイトのバッファを2個として渡すこともある。こ
れは資源不足の状態を極力減らし、バッファ領域(セグ
メント)を有効活用するためである。In this acquisition method, the buffer of the continuous area is not always passed to the requesting program. For example, if you request one 3K byte buffer,
In some cases, two 2K-byte buffers are passed. This is to reduce the resource shortage state as much as possible and to effectively utilize the buffer area (segment).
【0039】図4は上記のバッファ取得手段2の動作例
を示す説明図である。同図では、バッファ使用プログラ
ムから3000バイトのバッファ取得要求があったと
き、代替として2048バイトのバッファ2個をバッフ
ァ使用プログラムに引き渡す例を示している。FIG. 4 is an explanatory diagram showing an operation example of the buffer acquisition means 2 described above. FIG. 7 shows an example in which when a buffer acquisition request of 3000 bytes is issued from the buffer using program, two buffers of 2048 bytes are transferred to the buffer using program as an alternative.
【0040】図5はバッファ返却手段3の動作を示す流
れ図である。同図において、バッファ返却手段はバッフ
ァを使用して業務を処理するバッファ使用プログラムに
返却要求されたバッファが属するブロックを調べる第5
の処理(S31)と、前記バッファをその属するブロッ
クに返却する第6の処理(S32)と、前記第6の処理
を終了したときすべてのバッファが返却されているブロ
ックがある場合には前記ブロック変更手段4に前記ブロ
ックのブロック縮退要求を発行する第7の処理(S3
3)と、前記バッファ使用プログラムに要求されたバッ
ファの返却が終了したことを通知する第8の処理(S3
4)とを備える。FIG. 5 is a flowchart showing the operation of the buffer return means 3. In the figure, a buffer return means examines a block to which a buffer requested to return belongs to a buffer using program which processes a business using the buffer.
(S31), a sixth process (S32) for returning the buffer to the block to which the buffer belongs, and a block for which all buffers have been returned when the sixth process is completed. Seventh processing for issuing a block degeneration request for the block to the changing unit 4 (S3
3) and an eighth process for notifying that the return of the buffer requested to the buffer using program has been completed (S3).
4).
【0041】上記のバッファ返却手段3は、バッファ返
却要求で受け取ったバッファをどのブロックに返却すべ
きかを判断し、該当ブロックのプールバッファの最後に
チェインするとともにブロック制御エリアの情報(返却
要求回数、返却要求間隔)を更新する。このとき、ブロ
ック内の全バッファが返却されれば、ブロック変更手段
4にブロック縮退要求を発行する。The buffer return means 3 determines to which block the buffer received in the buffer return request is to be returned, chains the buffer to the end of the pool buffer of the corresponding block, and transmits information of the block control area (return request count, (Return request interval) is updated. At this time, if all buffers in the block are returned, a block degeneration request is issued to the block changing means 4.
【0042】図6はバッファ返却手段3の動作例を示す
説明図である。同図では、ブロック33の全バッファが
返却されたので、ブロック縮退要求を発行する例を示し
ている。FIG. 6 is an explanatory diagram showing an operation example of the buffer return means 3. The figure shows an example in which a block degeneration request is issued because all the buffers in the block 33 have been returned.
【0043】次に、ブロック変更手段4は前記バッファ
取得手段が発行したブロック拡張要求に従って、前記バ
ッファ管理情報ファイルに格納されている要求されたバ
ッファサイズのしきい値上限ブロック数およびブロック
拡張プライオリティを参照し、ブロック拡張可能であれ
ば未使用のブロックを要求されたバッファに分割し、そ
のブロックのブロック制御エリアの制御情報を変更する
第9の処理と、前記バッファ返却手段が発行したブロッ
ク縮退要求に従って、前記バッファ管理情報ファイルに
格納されている要求されたバッファサイズのしきい値下
限ブロック数およびブロック縮退プライオリティを参照
し、ブロック縮退可能であればそのブロックを未使用の
ブロックに変更し、そのブロックのブロック制御エリア
の制御情報を変更する第10の処理とを備える。Next, the block changing means 4 changes the threshold upper limit number of blocks and the block expansion priority of the requested buffer size stored in the buffer management information file in accordance with the block expansion request issued by the buffer acquisition means. A ninth process of referring to and allocating an unused block to a requested buffer if the block can be extended, and changing control information of a block control area of the block; and a block degeneration request issued by the buffer return means. In accordance with the reference to the lower limit number of blocks and the block reduction priority of the requested buffer size stored in the buffer management information file, if block degeneration is possible, the block is changed to an unused block, Change control information in block control area of block And a tenth process that.
【0044】上記のブロック変更手段4は、ブロック拡
張要求を受け付けるとバッファ管理情報ファイル内のブ
ロック拡張プライオリティとしきい値上限ブロック数と
を参照し、拡張可能であれば、未使用ブロックを要求さ
れたバッファサイズで分割・チェイニングし、ブロック
制御エリアに必要情報を格納する。When the block change unit 4 receives the block expansion request, it refers to the block expansion priority and the threshold upper limit block number in the buffer management information file. If expansion is possible, an unused block is requested. Divide and chain by buffer size and store necessary information in block control area.
【0045】ブロック縮退要求を受け付けるとバッファ
管理情報ファイル内のブロック縮退プライオリティとし
きい値下限ブロック数とを参照し、縮退可能であれば該
当ブロックを未使用とし、ブロック制御エリアの使用バ
ッファ種別を未使用に更新する。縮退不可であれば、縮
退は行わない。When a block degeneration request is received, the block degeneration priority and the threshold lower limit block number in the buffer management information file are referred to. If degeneration is possible, the corresponding block is unused, and the type of buffer used in the block control area is not determined. Update to use. If degeneration is not possible, degeneration is not performed.
【0046】ここでプライオリティとはブロック拡張要
求/ブロック縮退要求の頻度を表すものであり、ある一
時点での要求回数(n)/時間(t)で表す。このプラ
イオリティの値が高い場合は要求頻度が高いと判断し、
拡張/縮退を促す。Here, the priority indicates the frequency of block expansion requests / block degeneration requests, and is expressed by the number of requests (n) / time (t) at a certain point in time. If this priority value is high, it is determined that the request frequency is high,
Encourage expansion / reduction.
【0047】図7はブロック拡張要求によるブロック変
更手段4の動作例を示す説明図であり、未使用のブロッ
ク31が拡張される例を示している。FIG. 7 is an explanatory diagram showing an operation example of the block changing means 4 in response to a block expansion request, and shows an example in which an unused block 31 is expanded.
【0048】また、図8はブロック縮退要求によるブロ
ック変更手段4の動作例を示す説明図であり、すべての
バッファが返却されたブロック31が縮退されて未使用
の領域となる例を示している。FIG. 8 is an explanatory diagram showing an operation example of the block changing means 4 in response to a block degeneration request, and shows an example in which a block 31 in which all buffers are returned is degenerated into an unused area. .
【0049】図9はバッファ使用頻度検査手段5の動作
を示す流れ図である。同図において、バッファ使用頻度
検査手段5はバッファ領域のセグメント制御エリアおよ
びブロック制御エリアを一定時間ごとに参照し、その制
御情報を前記バッファ管理情報ファイルに書込む第11
の処理(S51)と、前記バッファ管理情報ファイルに
格納されたバッファサイズごとの管理情報に基づいてバ
ッファサイズごとにブロック拡張/縮退プライオリテ
ィ,しきい値上限/下限ブロック数,および初期化時ブ
ロック数を求め前記バッファ管理情報ファイルに書込む
第12の処理(S52)とを備える。FIG. 9 is a flowchart showing the operation of the buffer use frequency checking means 5. In the figure, the buffer use frequency checking means 5 refers to the segment control area and the block control area of the buffer area at regular intervals, and writes the control information into the buffer management information file.
(S51), and based on the management information for each buffer size stored in the buffer management information file, the block expansion / degeneration priority, threshold upper / lower block count, and initialization block count for each buffer size And a twelfth process (S52) of writing the same in the buffer management information file.
【0050】図10は上記の処理(S51)を示す説明
図であり、図11は上記処理(S52)を示す説明図で
ある。FIG. 10 is an explanatory diagram showing the above process (S51), and FIG. 11 is an explanatory diagram showing the above process (S52).
【0051】上記のバッファ使用頻度検査手段5は、一
定時間毎に動作し、各ブロック制御エリア内のバッファ
種別,バッファ取得/返却要求の回数・間隔およびセグ
メント情報エリア内のブロック拡張/縮退回数,間隔を
もとに、各バッファサイズの取得/返却要求頻度および
ブロック拡張/縮退頻度を算出する。The above-mentioned buffer use frequency checking means 5 operates at regular intervals, and determines the type of buffer in each block control area, the number and interval of buffer acquisition / return requests, the number of block expansion / degeneration in the segment information area, The acquisition / return request frequency and the block expansion / degeneration frequency of each buffer size are calculated based on the intervals.
【0052】そして、あらかじめ設定した計算式に基づ
いて各バッファサイズのブロック拡張プライオリティ,
ブロック縮退プライオリティ,しきい値下限ブロック
数,しきい値上限ブロック数,初期化時必要ブロック数
を算出し、制御情報とともにバッファ管理情報ファイル
に書き込む。また、セグメント情報エリア内の要求サイ
ズ履歴をもとに次回起動時の初期値(バッファサイズ/
ブロック個数)を算出し、履歴情報とともにバッファ管
理情報ファイルに書き込む。The block expansion priority of each buffer size is calculated based on a previously set calculation formula.
The block degeneration priority, the threshold lower limit block number, the threshold upper limit block number, and the required number of blocks at initialization are calculated and written into the buffer management information file together with the control information. Also, based on the request size history in the segment information area, the initial value (buffer size /
(The number of blocks) and writes it to the buffer management information file together with the history information.
【0053】なお、上記のバッファ管理方式10は主記
憶に保持されたプログラムを実行することによって動作
する。このプログラムはオペレーティングシステムの一
部またはミドルウェアであり、通常、ハードディスクに
格納されており、システムの運用時に主記憶にロードさ
れ実行される。The buffer management system 10 operates by executing a program stored in the main memory. This program is a part of the operating system or middleware, and is usually stored in a hard disk, and is loaded into a main memory and executed when the system is operated.
【0054】[0054]
【発明の効果】以上、詳細に説明したように、本発明に
よるバッファ管理方式は、バッファサイズを複数種類用
意し、各サイズの使用状況に応じてバッファサイズに割
り当てられるブロック数を変更することができるので、
その時々の運用に応じて最適なバッファを使用できる。
また、バッファの使用状況に基づいて、次の起動時のバ
ッファサイズとその容量および何種類のバッファサイズ
を用意するかを決定するので、各運用形態に適合したバ
ッファを使用することができる。As described above in detail, in the buffer management system according to the present invention, a plurality of types of buffer sizes are prepared, and the number of blocks allocated to the buffer size is changed according to the usage of each size. So you can
The optimal buffer can be used according to the operation at each time.
In addition, the buffer size and its capacity at the next start-up and the number of buffer sizes to be prepared are determined based on the buffer usage status, so that a buffer suitable for each operation mode can be used.
【0055】したがって、システム資源の有効活用およ
びシステム効率の向上に効果がある。また、資源不足の
発生を減少させ、システムの安定稼働にも寄与する。Therefore, it is effective in effective utilization of system resources and improvement of system efficiency. It also reduces the occurrence of resource shortages and contributes to stable operation of the system.
【図1】本発明の実施の一形態を示す説明図。FIG. 1 is an explanatory diagram showing one embodiment of the present invention.
【図2】バッファ領域初期化手段の動作を示す説明図。FIG. 2 is an explanatory diagram showing the operation of a buffer area initialization unit.
【図3】バッファ取得手段の動作を示す流れ図。FIG. 3 is a flowchart showing the operation of a buffer acquisition unit.
【図4】バッファ取得手段の動作例を示す流れ図。FIG. 4 is a flowchart showing an operation example of a buffer acquisition unit.
【図5】バッファ返却手段の動作を示す流れ図。FIG. 5 is a flowchart showing the operation of the buffer return means.
【図6】バッファ返却手段の動作例を示す流れ図。FIG. 6 is a flowchart showing an operation example of a buffer return means.
【図7】ブロック変更手段によるブロック拡張例を示す
説明図。FIG. 7 is an explanatory diagram showing an example of block expansion by a block changing unit.
【図8】ブロック変更手段によるブロック縮退例を示す
説明図。FIG. 8 is an explanatory diagram showing an example of block degeneration by a block changing unit.
【図9】バッファ使用頻度検査手段の動作を示す流れ
図。FIG. 9 is a flowchart showing the operation of a buffer use frequency inspection unit.
【図10】バッファの制御情報の収集動作を示す説明
図。FIG. 10 is an explanatory diagram showing an operation of collecting buffer control information.
【図11】バッファ管理情報の生成動作を示す説明図。FIG. 11 is an explanatory diagram showing an operation of generating buffer management information.
1 バッファ領域初期化手段 2 バッファ取得手段 3 バッファ返却手段 4 ブロック変更手段 5 バッファ使用頻度検査手段 10 バッファ管理方式 20 バッファ使用プログラム 30 セグメント 30a セグメント制御エリア 31 ブロック 31a ブロック制御エリア 31b バッファ 40 バッファ管理情報ファイル DESCRIPTION OF SYMBOLS 1 Buffer area initialization means 2 Buffer acquisition means 3 Buffer return means 4 Block change means 5 Buffer use frequency inspection means 10 Buffer management system 20 Buffer use program 30 Segment 30a Segment control area 31 Block 31a Block control area 31b Buffer 40 Buffer management information File
Claims (10)
御情報を保持するバッファ管理情報ファイルを備え前記
バッファを一元管理するバッファ管理方式において、前
記バッファ管理情報ファイルにあらかじめ格納されてい
る制御情報に基づいて主記憶の特定の領域を初期化する
バッファ領域初期化手段と、バッファを使用して業務を
処理するプログラムが送出するバッファ取得要求に従っ
てその要求に最も適したサイズのバッファを選出し前記
プログラムに引き渡すバッファ取得手段と、前記プログ
ラムが送出するバッファ返却要求に従って指定されたバ
ッファを未使用バッファとして返却しその管理情報を更
新するバッファ返却手段と、前記バッファ取得手段およ
び前記バッファ返却手段に指示されてバッファのブロッ
クの拡張および縮退を実行しその管理情報を更新するブ
ロック変更手段と、前記バッファ管理情報ファイルを定
期的に参照してバッファサイズごとにその使用状況を監
視し前記使用状況に対応してその管理指標を更新するバ
ッファ使用頻度検査手段とを有することを特徴とするバ
ッファ管理方式。1. A buffer management system comprising a buffer management information file for holding control information of a plurality of types of buffers having different sizes, in a buffer management system for centrally managing the buffers, based on control information stored in advance in the buffer management information file. Buffer area initializing means for initializing a specific area of the main memory, and selecting a buffer having a size most suitable for the request in accordance with a buffer acquisition request sent by a program for processing business using the buffer. Buffer transfer means for delivering, buffer return means for returning a specified buffer as an unused buffer in accordance with a buffer return request sent by the program and updating its management information, and buffer transfer means instructed by the buffer obtainment means and buffer return means. Expand and shrink blocks of buffers And a buffer that updates the management information by periodically executing the buffer management information file, monitors the buffer usage information for each buffer size, and updates the management index according to the usage status. A buffer management system comprising: a use frequency check unit.
て、前記バッファ取得手段はバッファを使用して業務を
処理するバッファ使用プログラムに要求されたサイズに
最も適したバッファサイズを選出する第1の処理と、前
記第1の処理が選出したバッファサイズのブロック制御
エリアを参照し必要分のバッファの有無を検査する第2
の処理と、前記第2の処理において必要分のバッファが
ないとき前記ブロック変更手段にブロック拡張要求を発
行し前記第1の処理に戻る第3の処理と、前記第2の処
理において必要分のバッファがあるときそのバッファを
チェインに連結し前記バッファ使用プログラムに引き渡
す第4の処理とを備えることを特徴とするバッファ管理
方式。2. The buffer management method according to claim 1, wherein said buffer acquisition means selects a buffer size most suitable for a size requested by a buffer use program for processing a business using a buffer. And checking the presence or absence of necessary buffers by referring to the block control area of the buffer size selected by the first processing.
A third processing for issuing a block expansion request to the block changing means when there is no necessary buffer in the second processing, and returning to the first processing; And a fourth process of connecting the buffer to a chain when the buffer is present and delivering the buffer to the buffer using program.
て、前記バッファ返却手段はバッファを使用して業務を
処理するバッファ使用プログラムに返却要求されたバッ
ファが属するブロックを調べる第5の処理と、前記バッ
ファをその属するブロックに返却する第6の処理と、前
記第6の処理を終了したときすべてのバッファが返却さ
れているブロックがある場合には前記ブロック変更手段
に前記ブロックのブロック縮退要求を発行する第7の処
理と、前記バッファ使用プログラムに要求されたバッフ
ァの返却が終了したことを通知する第8の処理とを備え
ることを特徴とするバッファ管理方式。3. The buffer management method according to claim 1, wherein said buffer return means checks a block to which a buffer requested to return belongs to a buffer use program for processing a business using the buffer; A sixth process of returning a buffer to a block to which the buffer belongs, and issuing a block degeneration request for the block to the block changing means if there is a block in which all buffers have been returned when the sixth process is completed A buffer management method, comprising: a seventh process for notifying that the return of the buffer requested by the buffer using program has been completed.
て、前記ブロック変更手段は前記バッファ取得手段が発
行したブロック拡張要求に従って、前記バッファ管理情
報ファイルに格納されている要求されたバッファサイズ
のしきい値上限ブロック数およびブロック拡張プライオ
リティを参照し、ブロック拡張可能であれば未使用のブ
ロックを要求されたバッファに分割し、そのブロックの
ブロック制御エリアの制御情報を変更する第9の処理
と、前記バッファ返却手段が発行したブロック縮退要求
に従って、前記バッファ管理情報ファイルに格納されて
いる要求されたバッファサイズのしきい値下限ブロック
数およびブロック縮退プライオリティを参照し、ブロッ
ク縮退可能であればそのブロックを未使用のブロックに
変更し、そのブロックのブロック制御エリアの制御情報
を変更する第10の処理とを備えることを特徴とするバ
ッファ管理方式。4. The buffer management system according to claim 1, wherein said block changing means has a threshold of a requested buffer size stored in said buffer management information file in accordance with a block expansion request issued by said buffer acquisition means. A ninth process of referring to the value upper limit block number and the block extension priority, dividing an unused block into a requested buffer if block extension is possible, and changing control information of a block control area of the block; In accordance with the block degeneration request issued by the buffer return means, referring to the threshold lower limit number of blocks and the block degeneration priority of the requested buffer size stored in the buffer management information file, if the block degeneration is possible, the block is degenerated. Change to an unused block and use that block And a tenth process for changing control information of the block control area.
て、前記バッファ使用頻度検査手段はバッファ領域のセ
グメント制御エリアおよびブロック制御エリアを一定時
間ごとに参照し、その制御情報を前記バッファ管理情報
ファイルに書込む第11の処理と、前記バッファ管理情
報ファイルに格納されたバッファサイズごとの管理情報
に基づいてバッファサイズごとにブロック拡張/縮退プ
ライオリティ,しきい値上限/下限ブロック数,および
初期化時ブロック数を求め前記バッファ管理情報ファイ
ルに書込む第12の処理とを備えることを特徴とするバ
ッファ管理方式。5. The buffer management method according to claim 1, wherein said buffer use frequency checking means refers to a segment control area and a block control area of a buffer area at regular intervals, and stores the control information in said buffer management information file. Eleventh processing for writing, block expansion / degeneration priority, threshold upper / lower limit number of blocks, and initialization block for each buffer size based on the management information for each buffer size stored in the buffer management information file A twelfth process of obtaining a number and writing the number in the buffer management information file.
御情報を保持するバッファ管理情報ファイルを備え前記
バッファを一元管理するコンピュータシステムにあっ
て、前記バッファ管理情報ファイルにあらかじめ格納さ
れている制御情報に基づいて主記憶の特定の領域を初期
化するバッファ領域初期化ステップと、バッファを使用
して業務を処理するプログラムが送出するバッファ取得
要求に従ってその要求に最も適したサイズのバッファを
選出し前記プログラムに引き渡すバッファ取得ステップ
と、前記プログラムが送出するバッファ返却要求に従っ
て指定されたバッファを未使用バッファとして返却しそ
の管理情報を更新するバッファ返却ステップと、前記バ
ッファ取得ステップおよび前記バッファ返却ステップに
指示されてバッファのブロックの拡張および縮退を実行
しその管理情報を更新するブロック変更ステップと、前
記バッファ管理情報ファイルを定期的に参照してバッフ
ァサイズごとにその使用状況を監視し前記使用状況に対
応してその管理指標を更新するバッファ使用頻度検査ス
テップとを実行させるプログラムを記録したコンピュー
タ読み取り可能な記録媒体。6. A computer system having a buffer management information file for holding control information of a plurality of types of buffers having different sizes, and for centrally managing the buffers.
Te, buffer acquisition and buffer area initialization step for initializing a particular area of the main memory based on the control information the is previously stored in the buffer management information file, a program for processing a work using a buffer sends out A buffer acquiring step of selecting a buffer having a size most suitable for the request according to the request and transferring the buffer to the program, and a buffer for returning a designated buffer as an unused buffer and updating its management information according to a buffer return request sent by the program A return step, a block change step in which the buffer acquisition step and the buffer return step are instructed to perform expansion and contraction of a buffer block and update its management information, and periodically refer to the buffer management information file. For each buffer size Computer which records a program for executing monitor usage in response to the usage and the buffer usage inspection step of updating the management index
Data readable recording medium .
バッファ取得ステップはバッファを使用して業務を処理
するバッファ使用プログラムに要求されたサイズに最も
適したバッファサイズを選出する第1のステップと、前
記第1のステップが選出したバッファサイズのブロック
制御エリアを参照し必要分のバッファの有無を検査する
第2のステップと、前記第2のステップにおいて必要分
のバッファがないとき前記ブロック変更ステップにブロ
ック拡張要求を発行し前記第1のステップに戻る第3の
ステップと、前記第2のステップにおいて必要分のバッ
ファがあるときそのバッファをチェインに連結し前記バ
ッファ使用プログラムに引き渡す第4のステップとを実
行させるプログラムを記録した記録媒体。7. The recording medium according to claim 6, wherein said buffer obtaining step includes a first step of selecting a buffer size most suitable for a size requested by a buffer use program for processing a business using a buffer. A second step of referring to a block control area of a buffer size selected by the first step to check whether there is a necessary buffer, and a step of changing the block when there is no necessary buffer in the second step. A third step of issuing a block expansion request to the first step and returning to the first step; and a fourth step of connecting the buffer to a chain and transferring the buffer to the buffer use program when there is a necessary buffer in the second step. And real
A recording medium on which a program to be executed is recorded .
バッファ返却ステップはバッファを使用して業務を処理
するバッファ使用プログラムに返却要求されたバッファ
が属するブロックを調べる第5のステップと、前記バッ
ファをその属するブロックに返却する第6のステップ
と、前記第6のステップを終了したときすべてのバッフ
ァが返却されているブロックがある場合には前記ブロッ
ク変更ステップに前記ブロックのブロック縮退要求を発
行する第7のステップと、前記バッファ使用プログラム
に要求されたバッファの返却が終了したことを通知する
第8のステップとを実行させるプログラムを記録した記
録媒体。8. The recording medium according to claim 6, wherein the buffer return step includes a fifth step of examining a block to which the buffer requested to be returned belongs by a buffer use program for processing a business using the buffer; A sixth step of returning to the block to which it belongs, and if there is a block in which all buffers have been returned when the sixth step has been completed, a block degeneration request for the block is issued to the block changing step A program storing a program for executing a seventh step and an eighth step of notifying that the return of the buffer requested by the buffer using program is completed.
Recording medium .
ブロック変更ステップは前記バッファ取得ステップが発
行したブロック拡張要求に従って、前記バッファ管理情
報ファイルに格納されている要求されたバッファサイズ
のしきい値上限ブロック数およびブロック拡張プライオ
リティを参照し、ブロック拡張可能であれば未使用のブ
ロックを要求されたバッファに分割し、そのブロックの
ブロック制御エリアの制御情報を変更する第9のステッ
プと、前記バッファ返却ステップが発行したブロック縮
退要求に従って、前記バッファ管理情報ファイルに格納
されている要求されたバッファサイズのしきい値下限ブ
ロック数およびブロック縮退プライオリティを参照し、
ブロック縮退可能であればそのブロックを未使用のブロ
ックに変更し、そのブロックのブロック制御エリアの制
御情報を変更する第10のステップとを実行させるプロ
グラムを記録した記録媒体。9. The recording medium according to claim 6, wherein said block changing step includes a threshold value of a requested buffer size stored in said buffer management information file in accordance with a block expansion request issued by said buffer obtaining step. A ninth step of referring to an upper limit block number and a block extension priority, dividing an unused block into a requested buffer if block extension is possible, and changing control information of a block control area of the block; According to the block degeneration request issued by the return step, with reference to the threshold lower limit block number and block degeneration priority of the requested buffer size stored in the buffer management information file,
If the block can be reduced, the block is changed to an unused block, and the tenth step of changing the control information of the block control area of the block is executed.
A recording medium on which gram is recorded .
記バッファ使用頻度検査ステップはバッファ領域のセグ
メント制御エリアおよびブロック制御エリアを一定時間
ごとに参照し、その制御情報を前記バッファ管理情報フ
ァイルに書込む第11のステップと、前記バッファ管理
情報ファイルに格納されたバッファサイズごとの管理情
報に基づいてバッファサイズごとにブロック拡張/縮退
プライオリティ,しきい値上限/下限ブロック数,およ
び初期化時ブロック数を求め前記バッファ管理情報ファ
イルに書込む第12のステップとを実行させるプログラ
ムを記録した記録媒体。10. Oite the recording medium according to claim 6, wherein the buffer usage test step refers to the segment control area and the block control area of the buffer area at regular time intervals, the buffer management information file that controls information An eleventh step of writing, into the buffer management information file, a block expansion / degeneration priority, a threshold upper / lower limit block number, and an initialization time for each buffer size based on the management information for each buffer size stored in the buffer management information file. program for executing a twelfth step of writing to the buffer management information file determined the number of blocks
A recording medium on which a system is recorded .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08368598A JP3349949B2 (en) | 1998-03-30 | 1998-03-30 | Buffer management method and its program recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP08368598A JP3349949B2 (en) | 1998-03-30 | 1998-03-30 | Buffer management method and its program recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11282744A JPH11282744A (en) | 1999-10-15 |
| JP3349949B2 true JP3349949B2 (en) | 2002-11-25 |
Family
ID=13809357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP08368598A Expired - Fee Related JP3349949B2 (en) | 1998-03-30 | 1998-03-30 | Buffer management method and its program recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3349949B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100702914B1 (en) * | 2005-02-14 | 2007-04-03 | 세이코 엡슨 가부시키가이샤 | File operation limiting system, computer readable recording medium having file operation limiting program recorded therein, file operation limiting method, electronics and printing apparatus |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100366760B1 (en) * | 2000-01-12 | 2003-01-08 | 주식회사 위즈맥스 | A method of combining multi media files |
| US8423643B2 (en) | 2003-11-19 | 2013-04-16 | International Business Machines Corporation | Autonomic assignment of communication buffers by aggregating system profiles |
-
1998
- 1998-03-30 JP JP08368598A patent/JP3349949B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100702914B1 (en) * | 2005-02-14 | 2007-04-03 | 세이코 엡슨 가부시키가이샤 | File operation limiting system, computer readable recording medium having file operation limiting program recorded therein, file operation limiting method, electronics and printing apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11282744A (en) | 1999-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6901427B2 (en) | How storage devices, computer systems and storage devices work | |
| US10402114B2 (en) | Information processing system, storage control apparatus, storage control method, and storage control program | |
| US8131783B2 (en) | Storage system, volume management method, and management computer | |
| JPH10187505A (en) | Information storage system and data arrangement method applied to the system | |
| JPH08101782A (en) | Storage management system and method | |
| US10592148B2 (en) | Information processing system, storage control apparatus, storage control method, and storage control program for evaluating access performance to a storage medium | |
| JP2009122733A (en) | Power control method, computer system, and program | |
| JP2003131908A (en) | Storage controller | |
| US20210263668A1 (en) | Information processing device and computer-readable recording medium recording storage control program | |
| EP3293625B1 (en) | Method and device for accessing file, and storage system | |
| US20100106908A1 (en) | Computer system, storage area allocation method, and management computer | |
| CN119781975A (en) | Memory adjustment method, switch, storage medium and electronic device | |
| EP0694831A2 (en) | Computer system having storage unit provided with data compression function andmethod of management of storage area thereof | |
| JP5810918B2 (en) | Scheduling apparatus, scheduling method and program | |
| JP3349949B2 (en) | Buffer management method and its program recording medium | |
| JPH11143779A (en) | Paging processing system for virtual storage device | |
| US7752405B2 (en) | Data recording apparatus, program product, and data recording method | |
| JP2019095881A (en) | Storage controller and program | |
| JP2005092308A (en) | Disk management method and computer system | |
| CN118550474A (en) | Separated key value pair storage system | |
| US20100262777A1 (en) | Storage apparatus and method for eliminating redundant data storage using storage apparatus | |
| CN102402397B (en) | Method and device for storing data | |
| JP5382471B2 (en) | Power control method, computer system, and program | |
| JP2007323393A (en) | Image processing apparatus and program | |
| JP2006039942A (en) | File management device in hierarchical storage system, and its file management method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20020827 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080913 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080913 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090913 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090913 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100913 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110913 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120913 Year of fee payment: 10 |
|
| LAPS | Cancellation because of no payment of annual fees |