JP2917797B2 - Buffer expansion mechanism - Google Patents

Buffer expansion mechanism

Info

Publication number
JP2917797B2
JP2917797B2 JP2135094A JP2135094A JP2917797B2 JP 2917797 B2 JP2917797 B2 JP 2917797B2 JP 2135094 A JP2135094 A JP 2135094A JP 2135094 A JP2135094 A JP 2135094A JP 2917797 B2 JP2917797 B2 JP 2917797B2
Authority
JP
Japan
Prior art keywords
buffer area
buffer
expansion
time
time interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2135094A
Other languages
Japanese (ja)
Other versions
JPH07230406A (en
Inventor
研司 伊藤
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP2135094A priority Critical patent/JP2917797B2/en
Publication of JPH07230406A publication Critical patent/JPH07230406A/en
Application granted granted Critical
Publication of JP2917797B2 publication Critical patent/JP2917797B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置における
バッファ拡張機構に関し、特に、情報処理装置の状態に
応じてバッファ拡張を抑制するバッファ拡張機構に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer expansion mechanism in an information processing apparatus, and more particularly to a buffer expansion mechanism for suppressing buffer expansion according to the state of the information processing apparatus.

【0002】[0002]

【従来の技術】従来の情報処理装置では、プログラムの
必要とする記憶領域に応じて、記憶装置内においてバッ
ファ領域をプログラムの実行中に動的に拡張している。
例えば、特開平2−27452号公報には、オンライン
ネットワークシステムにおいて回線制御プログラムが送
受信バッファ等を動的に獲得または解放する技術が記載
されている。この従来技術では、送受信バッファを必要
とする時点で動的に獲得処理を行う一方、送受信バッフ
ァを解放する際には解放要求後一定時間未使用となって
いるものの中から実際に解放するものを選択している。
2. Description of the Related Art In a conventional information processing apparatus, a buffer area in a storage device is dynamically expanded during execution of a program in accordance with a storage area required by the program.
For example, Japanese Patent Application Laid-Open No. 2-27452 describes a technique in which a line control program dynamically acquires or releases a transmission / reception buffer or the like in an online network system. In this conventional technique, the acquisition process is performed dynamically when the transmission / reception buffer is required, and when the transmission / reception buffer is released, the one that is actually released from among those that have been unused for a certain period of time after the release request is released. You have selected.

【0003】[0003]

【発明が解決しようとする課題】上述の従来技術では、
バッファの取得が一時に集中して要求された場合には、
その処理のために記憶装置を占有してしまい、システム
全体の性能を低下させてしまうおそれがある。例えば、
通信プログラムにおいて、画像データのような大量のデ
ータを送信する場合、この送信データを格納するための
バッファ領域が大量に必要となる。この場合、大量のバ
ッファ領域の取得を一時に集中して行ってしまうと、他
のプログラムからの記憶装置へのアクセスが阻害される
ことになるため、何らかの制限をすることが望ましい。
一方、オペレーティングシステムを立ち上げる際などに
は、オペレーティングシステムのワーク用のバッファ領
域などを確保するが、この際のバッファ取得は必要不可
欠なものであり制限する必要性はない。
In the above-mentioned prior art,
If buffer acquisition is requested at one time,
There is a possibility that the storage device is occupied for the processing, and the performance of the entire system is reduced. For example,
When transmitting a large amount of data such as image data in a communication program, a large buffer area for storing the transmission data is required. In this case, if the acquisition of a large amount of buffer area is intensively performed at one time, access to the storage device from other programs will be hindered.
On the other hand, when starting up the operating system, a buffer area for the work of the operating system or the like is secured, but the buffer acquisition at this time is indispensable and does not need to be limited.

【0004】本発明の目的は、上述のような問題を解消
し、連続的に集中して行われるバッファ領域の拡張を制
限し、システム全体の処理性能低下を防止することにあ
る。また、バッファ取得が必要不可欠なものである場合
には上記制限をやめてバッファ取得を円滑に進めること
をも目的とする。さらに、本発明では、これら拡張の制
限やその制限の緩和について判断する際に必要な計算
を、その判断の度にしなくても、既に得られている値か
らこれらを判断できるようにすることを目的としてい
る。
[0004] It is an object of the present invention to solve the above-mentioned problems, to limit the continuous expansion of the buffer area, and to prevent a reduction in the processing performance of the entire system. It is another object of the present invention to eliminate the above restriction and to smoothly acquire a buffer when the acquisition of a buffer is indispensable. Furthermore, the present invention is intended to make it possible to judge them from the values already obtained without having to perform the calculation necessary for judging the limitation of these expansions and the relaxation of the limitation each time. The purpose is.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
本発明のバッファ拡張機構は、記憶手段とこの記憶手段
においてバッファ領域を拡張するバッファ領域拡張手段
とを含む情報処理装置において、直前に前記バッファ領
域が拡張されてからの経過時間を生成するバッファ領域
拡張経過時間生成手段と;バッファ領域を拡張する際の
最小時間間隔を格納するバッファ領域拡張抑制時間間隔
格納手段と;このバッファ領域拡張抑制時間間隔格納手
段に格納された最小時間間隔をバッファ領域拡張経過時
間生成手段で生成された経過時間が満たしていない場合
には、バッファ領域の拡張を抑制する旨バッファ領域拡
張手段に伝えるバッファ領域拡張抑制手段とを含む。
According to another aspect of the present invention, there is provided an information processing apparatus including a storage unit and a buffer area expansion unit for expanding a buffer area in the storage unit. Buffer area expansion elapsed time generation means for generating an elapsed time since the buffer area is expanded; buffer area expansion suppression time interval storage means for storing a minimum time interval when the buffer area is expanded; and buffer area expansion suppression If the minimum time interval stored in the time interval storage means is not satisfied with the elapsed time generated by the buffer area expansion elapsed time generation means, the buffer area expansion means is notified to the buffer area expansion means to suppress the expansion of the buffer area. Suppression means.

【0006】また、現時刻取得部は現在の時刻を示すタ
イマを含んでもよく、バッファ領域拡張時刻格納部は直
前に前記バッファ領域を拡張した時刻を格納するレジス
タを含んでもよく、バッファ領域拡張時間間隔取得部は
現時刻取得部の示す現在の時刻からバッファ領域拡張時
刻格納部に格納された時刻を減算して、直前に前記バッ
ファ領域が拡張されてからの経過時間を算出する減算器
を含んでもよく、バッファ領域拡張経過時間格納部はバ
ッファ領域拡張時間間隔取得部で算出された経過時間を
格納するレジスタを含んでもよく、バッファ領域拡張抑
制時間間隔格納手段はバッファ領域を拡張する際の最小
時間間隔を格納するレジスタを含んでもよい。なお、上
記現時刻取得部の時刻は情報処理装置のマシンクロック
などを利用してもよい。
[0006] The current time acquisition unit may include a timer indicating the current time, and the buffer area extension time storage unit may include a register for storing the time immediately before the buffer area was extended. The interval acquisition unit includes a subtractor that subtracts the time stored in the buffer area extension time storage unit from the current time indicated by the current time acquisition unit, and calculates the elapsed time since the last time the buffer area was extended. Alternatively, the buffer area expansion elapsed time storage unit may include a register for storing the elapsed time calculated by the buffer area expansion time interval obtaining unit, and the buffer area expansion suppression time interval storage unit may store the minimum time when the buffer area is expanded. A register for storing the time interval may be included. The time of the current time acquisition unit may use a machine clock of the information processing device.

【0007】また、バッファ領域拡張手段でバッファ領
域の拡張がされたことを検知するバッファ領域使用量取
得手段と;このバッファ領域使用量取得手段によってバ
ッファ領域の使用量を格納されるバッファ領域使用量格
納手段と;このバッファ領域使用量格納手段に格納され
た使用量からバッファ領域拡張抑制時間間隔格納手段に
格納される最小時間間隔を算出するバッファ領域拡張抑
制時間間隔算出手段と;バッファ領域の拡張を抑制しな
いバッファ領域の使用量の最大値を格納するバッファ領
域拡張非抑制条件格納手段とを含んでもよい。また、バ
ッファ領域拡張抑制手段はバッファ領域使用量格納手段
に格納された使用量がバッファ領域拡張非抑制条件格納
手段に格納された値よりも小さければバッファ領域の拡
張を抑制しなくてもよい。
A buffer area usage obtaining means for detecting that the buffer area has been expanded by the buffer area expanding means; and a buffer area usage storing the buffer area usage by the buffer area usage obtaining means. Storage means; buffer area expansion suppression time interval calculation means for calculating the minimum time interval stored in the buffer area expansion suppression time interval storage means from the usage amount stored in the buffer area usage amount storage means; And a buffer area expansion non-suppression condition storage unit that stores the maximum value of the used amount of the buffer area that does not suppress the buffer area. Further, the buffer area expansion suppressing means does not have to suppress the expansion of the buffer area if the usage amount stored in the buffer area usage amount storage means is smaller than the value stored in the buffer area expansion non-suppression condition storage means.

【0008】また、バッファ領域拡張経過時間生成手段
は、現在の時刻を示す現時刻取得部と、直前にバッファ
領域を拡張した時刻を格納するバッファ領域拡張時刻格
納部と、現時刻取得部の示す現在の時刻と前記バッファ
領域拡張時刻格納部に格納された時刻とから直前に前記
バッファ領域が拡張されてからの経過時間を算出するバ
ッファ領域拡張時間間隔取得部と、このバッファ領域拡
張時間間隔取得部で算出された経過時間を格納するバッ
ファ領域拡張経過時間格納部とを含んでもよい。
[0008] The buffer area extension elapsed time generation means includes a current time acquisition unit that indicates the current time, a buffer area extension time storage unit that stores the time when the buffer area was extended immediately before, and a current time acquisition unit. A buffer area extension time interval acquisition unit that calculates an elapsed time since the buffer area was immediately extended from a current time and a time stored in the buffer area extension time storage unit; A buffer area extension elapsed time storage unit for storing the elapsed time calculated by the unit.

【0009】また、バッファ領域拡張抑制時間間隔格納
手段はバッファ領域を拡張する際の最小時間間隔を格納
するレジスタを含んでもよく、バッファ領域使用量格納
手段はバッファ領域の使用量を格納するレジスタを含ん
でもよく、バッファ領域拡張非抑制条件格納手段はバッ
ファ領域の拡張を抑制しないバッファ領域の使用量の最
大値を格納するレジスタを含んでもよい。
The buffer area expansion suppression time interval storage means may include a register for storing a minimum time interval when the buffer area is expanded, and the buffer area usage storage means includes a register for storing the usage of the buffer area. The buffer area expansion non-suppression condition storage means may include a register for storing the maximum value of the usage amount of the buffer area which does not suppress the expansion of the buffer area.

【0010】[0010]

【実施例】次に本願発明のバッファ拡張機構の一実施例
について図面を参照して詳細に説明する。
Next, an embodiment of a buffer expansion mechanism of the present invention will be described in detail with reference to the drawings.

【0011】図1を参照すると、本願発明の一実施例で
あるバッファ拡張機構は、記憶手段100と、記憶手段
100においてバッファを使用するバッファ使用プロセ
ス230と、記憶手段100においてバッファ領域を拡
張するバッファ領域拡張手段210と、バッファ領域の
中からバッファ要素を取得するバッファ要素取得手段2
20とを含んでなっている。さらに、このバッファ拡張
機構は、使用中のバッファ量を得るバッファ領域使用量
取得手段310と、前回バッファが拡張されてから現時
刻までの時間間隔を算出するバッファ領域拡張時間間隔
取得手段320と、現在の時刻を得る現時刻取得手段3
30と、使用中のバッファ量からバッファ領域の拡張を
抑制する時間間隔を算出するバッファ領域拡張抑制時間
間隔算出手段340と、バッファ領域の拡張を抑制する
か否かを判断するバッファ領域拡張抑制手段350とを
含んでなっている。さらに、このバッファ拡張機構は、
使用中のバッファ量を格納するバッファ領域使用量格納
手段410と、バッファ領域の拡張を抑制しない条件値
としてバッファ使用量の上限値を格納するバッファ領域
拡張非抑制条件格納手段420と、バッファ領域の拡張
を抑制する条件値として前回のバッファ領域拡張からの
時間間隔を格納するバッファ領域拡張抑制時間間隔格納
手段430と、前回のバッファ領域拡張からの経過時間
を格納するバッファ領域拡張経過時間格納手段440
と、前回のバッファ領域拡張時刻を格納するバッファ領
域拡張時刻格納手段450と含んでなっている。
Referring to FIG. 1, a buffer expansion mechanism according to an embodiment of the present invention includes a storage unit 100, a buffer use process 230 that uses a buffer in the storage unit 100, and a buffer area in the storage unit 100. Buffer area expansion means 210 and buffer element acquisition means 2 for acquiring a buffer element from the buffer area
20. The buffer expansion mechanism further includes a buffer area usage acquisition unit 310 that obtains a used buffer amount, a buffer area expansion time interval acquisition unit 320 that calculates a time interval from the previous buffer expansion to the current time, Current time acquisition means 3 for obtaining the current time
30, a buffer area expansion suppression time interval calculating means 340 for calculating a time interval for suppressing the expansion of the buffer area based on the used buffer amount, and a buffer area expansion suppressing means for determining whether or not the expansion of the buffer area is to be suppressed. 350. In addition, this buffer expansion mechanism
Buffer area usage storage means 410 for storing the used buffer amount; buffer area expansion non-suppression condition storage means 420 for storing the upper limit value of the buffer usage as a condition value not to suppress the expansion of the buffer area; Buffer area expansion suppression time interval storage means 430 for storing a time interval from the previous buffer area expansion as a condition value for suppressing expansion, and buffer area expansion elapsed time storage means 440 for storing the elapsed time since the previous buffer area expansion.
And a buffer area extension time storage unit 450 for storing the previous buffer area extension time.

【0012】図2を参照すると、記憶手段100は、複
数のバッファ領域110を含み、これらバッファ領域1
10はさらに複数のバッファ要素111からなってい
る。本発明では、バッファ領域110を単位として記憶
手段100内でのバッファ領域の拡張を行い、このバッ
ファ領域のバッファ要素111を単位として各バッファ
使用プロセス230に割り当てるものとする。オペレー
ティングシステムはこのバッファ領域110を単位とし
てメモリを管理するものと仮定する。
Referring to FIG. 2, the storage means 100 includes a plurality of buffer areas 110, and these buffer areas 1
10 further comprises a plurality of buffer elements 111. In the present invention, it is assumed that the buffer area is expanded in the storage unit 100 in units of the buffer area 110 and allocated to each buffer using process 230 in units of the buffer element 111 of the buffer area. It is assumed that the operating system manages the memory in units of the buffer area 110.

【0013】図1を参照すると、バッファ使用プロセス
230は、バッファを使用するために、バッファ要素取
得手段220に対してバッファを取得する旨を通知す
る。バッファ要素取得手段220は、バッファ使用プロ
セス230からの通知を受け、記憶手段100に確保さ
れているバッファ領域110に使用可能な未使用のバッ
ファ要素111がないか調べ、必要な数のバッファ要素
111があればそのバッファ使用プロセス230にバッ
ファ要素111を所定量分占有させる。この際、必要な
数の未使用のバッファ要素111がなければ、バッファ
領域拡張手段210に対してバッファ領域の拡張を要求
する。
Referring to FIG. 1, the buffer use process 230 notifies the buffer element obtaining means 220 of obtaining a buffer in order to use the buffer. The buffer element acquisition unit 220 receives the notification from the buffer use process 230, checks whether there is an unused buffer element 111 available in the buffer area 110 reserved in the storage unit 100, and checks the necessary number of buffer elements 111. If there is, the buffer use process 230 occupies the buffer element 111 by a predetermined amount. At this time, if there is no necessary number of unused buffer elements 111, the buffer area expansion unit 210 is requested to expand the buffer area.

【0014】バッファ領域の拡張が要求されたバッファ
領域拡張手段210は、まずバッファ拡張をしてよいか
否かをチェックする。このチェックのための判断は、バ
ッファ領域拡張抑制手段350で行う。このバッファ領
域拡張抑制手段350は、バッファ領域使用量格納手段
410、バッファ領域拡張非抑制条件格納手段420、
バッファ領域拡張抑制時間間隔格納手段430およびバ
ッファ領域拡張経過時間格納手段440を参照して、バ
ッファ領域の拡張を抑制するか否かを判断する。なお、
これら格納手段410乃至440はレジスタにより構成
することができる。
The buffer area expansion means 210, which has been requested to expand the buffer area, first checks whether or not the buffer can be expanded. The determination for this check is made by the buffer area expansion suppression means 350. The buffer area expansion suppression means 350 includes a buffer area usage storage means 410, a buffer area expansion non-suppression condition storage means 420,
With reference to the buffer area expansion suppression time interval storage means 430 and the buffer area expansion elapsed time storage means 440, it is determined whether or not the expansion of the buffer area is to be suppressed. In addition,
These storage means 410 to 440 can be constituted by registers.

【0015】バッファ領域拡張経過時間格納手段440
およびバッファ領域拡張抑制時間間隔格納手段430
は、所定の時間間隔よりも短い時間間隔でバッファ領域
の拡張が要求されたことを検知し、そのバッファ領域の
拡張を抑制するために使用される。バッファ領域拡張経
過時間格納手段440は、前回のバッファ領域拡張時か
らの経過時間を格納するものであり、この値はバッファ
領域拡張時間間隔取得手段320により設定される。こ
のバッファ領域拡張時間間隔取得手段320は、現時刻
取得手段330の値からバッファ領域拡張時刻格納手段
450の値を減算することにより前回のバッファ領域拡
張時からの経過時間を算出する。このためにバッファ領
域拡張時間間隔取得手段320は、減算器を含んでもよ
い。また、現時刻取得手段330は、タイマを含んで構
成することができる。なお、このバッファ領域拡張時間
間隔取得手段320は、次回のバッファ領域拡張可否の
チェックのために、バッファ領域が実際に拡張された時
に、その時刻を現時刻取得手段330から取得してバッ
ファ領域拡張時刻格納手段450に格納しておく。
Buffer area extension elapsed time storage means 440
And buffer area expansion suppression time interval storage means 430
Is used to detect that expansion of a buffer area is requested at a time interval shorter than a predetermined time interval, and to suppress expansion of the buffer area. The buffer area expansion elapsed time storage means 440 stores the elapsed time since the previous buffer area expansion, and this value is set by the buffer area expansion time interval acquisition means 320. The buffer area extension time interval acquisition means 320 calculates the elapsed time from the previous buffer area extension time by subtracting the value of the buffer area extension time storage means 450 from the value of the current time acquisition means 330. To this end, the buffer area extension time interval acquisition means 320 may include a subtractor. Further, the current time acquisition means 330 can be configured to include a timer. The buffer area extension time interval acquisition means 320 acquires the time from the current time acquisition means 330 when the buffer area is actually extended for checking whether the buffer area can be extended next time. It is stored in the time storage means 450.

【0016】バッファ領域拡張抑制時間間隔格納手段4
30に格納される値は、バッファ領域の拡張を行う時間
間隔の最小値を条件として与えるものであり、これより
もバッファ領域拡張経過時間格納手段440の値が小さ
い場合にはバッファ領域の拡張が抑制される。このバッ
ファ領域拡張抑制時間間隔格納手段430に格納される
時間間隔の値はバッファ領域拡張抑制時間間隔算出手段
340により算出される。バッファ領域拡張抑制時間間
隔算出手段340は、バッファ領域使用量格納手段41
0に格納されているバッファ使用量に基づいて、このバ
ッファ使用量が大きくなる程バッファ領域拡張抑制時間
間隔格納手段430に格納される値が大きくなるように
値を設定する。この具体的な算出方法としては、例え
ば、バッファ使用量を入力とする一次関数によって求め
る方法や、あらかじめバッファ使用量毎に時間間隔が設
定された表を表引きすることにより求める方法などが考
えられる。
Buffer area expansion suppression time interval storage means 4
The value stored in 30 is given as a condition of the minimum value of the time interval for expanding the buffer area. If the value of the buffer area expansion elapsed time storage means 440 is smaller than this value, the expansion of the buffer area is not performed. Is suppressed. The value of the time interval stored in the buffer area expansion suppression time interval storage means 430 is calculated by the buffer area expansion suppression time interval calculation means 340. The buffer area expansion suppression time interval calculation means 340 is a buffer area usage storage means 41.
Based on the buffer usage stored in 0, a value is set such that the larger the buffer usage, the larger the value stored in the buffer area expansion suppression time interval storage means 430. As a specific calculation method, for example, a method of obtaining by a linear function with the buffer usage as an input, a method of obtaining a table in which a time interval is set in advance for each buffer usage, and the like can be considered. .

【0017】このようにバッファ領域拡張経過時間格納
手段440とバッファ領域拡張抑制時間間隔格納手段4
30とを設定することにより、バッファ領域の拡張が要
求された場合に、バッファ領域拡張経過時間格納手段4
40の値があらかじめ設定されたバッファ領域拡張抑制
時間間隔格納手段430の値に満たないときにはバッフ
ァ領域の拡張を抑制する。すなわち、前回のバッファ領
域の拡張から一定時間間隔経過していないときにはバッ
ファ領域の拡張をしないようにすることにより、連続的
かつ集中的なバッファ領域の拡張を回避することができ
る。
As described above, the buffer area expansion elapsed time storage means 440 and the buffer area expansion suppression time interval storage means 4
By setting the value to 30, when the buffer area expansion is requested, the buffer area expansion elapsed time storage means 4
When the value of 40 is less than the value of the preset buffer area expansion suppression time interval storage means 430, the expansion of the buffer area is suppressed. In other words, by not expanding the buffer area when a predetermined time interval has not elapsed since the previous expansion of the buffer area, continuous and intensive expansion of the buffer area can be avoided.

【0018】一方、バッファ領域使用量格納手段410
とバッファ領域拡張非抑制条件格納手段420は上記バ
ッファ領域拡張の抑制をやめさせるか否かを判断するた
めに使用される。バッファ領域使用量格納手段410
は、現在使用中のバッファ領域の量を格納するものであ
り、バッファ領域の拡張時にバッファ領域使用量取得手
段310によって更新される。バッファ領域拡張非抑制
条件格納手段420は、バッファ領域拡張の抑制をやめ
るために後述のようにあらかじめ設定された条件値を格
納するものである。バッファ領域拡張抑制手段350は
このバッファ領域使用量格納手段410の値がバッファ
領域拡張非抑制条件格納手段420の値よりも小さけれ
ば、上記バッファ領域拡張の抑制をしない。そのような
状況下では、システムの立ち上げなどで必要不可欠なバ
ッファ取得がなされる場合があるためこれを抑制するこ
とは却ってシステム全体の性能を低下させる原因になる
と考えられること、および、記憶手段の容量にも余裕が
ある状態では他のプロセスとの実メモリの奪い合いが起
こり難いことによる。
On the other hand, buffer area usage storage means 410
The buffer area expansion non-suppression condition storage means 420 is used to determine whether to stop the buffer area expansion suppression. Buffer area usage storage means 410
Is used to store the amount of buffer area currently in use, and is updated by the buffer area usage acquisition unit 310 when the buffer area is expanded. The buffer area expansion non-suppression condition storage unit 420 stores a condition value set in advance as described later to stop the suppression of the buffer area expansion. If the value of the buffer area usage amount storage means 410 is smaller than the value of the buffer area expansion non-suppression condition storage means 420, the buffer area expansion suppression means 350 does not suppress the buffer area expansion. In such a situation, an indispensable buffer acquisition may be performed when the system is started up. Therefore, it is considered that suppressing the buffer acquisition is considered to be a cause of deteriorating the performance of the entire system. This is because if there is enough space in the memory, contention for real memory with other processes is unlikely to occur.

【0019】バッファ領域拡張非抑制条件格納手段42
0に格納される条件値は、現在使用中のバッファ領域の
量がその条件値に満たない場合に上記バッファ領域の拡
張を抑制するのをやめるために使用される。従って、こ
の条件値は、その情報処理装置の特性を考慮した上で決
定しなければならない。例えば、使用するオペレーティ
ングシステムがワーク用領域としてどれだけのメモリ量
を要求しているか、使用するアプリケーションがワーク
用領域としてどれだけのメモリ量を要求しているか、ま
たは、当該情報処理装置に接続される各接続端末に表示
データや入出力データ用領域としてどれだけのメモリ量
が前提とされて何台接続されているか、などが判断指標
となる。
Buffer area expansion non-suppression condition storage means 42
The condition value stored in 0 is used to stop suppressing the expansion of the buffer region when the amount of the buffer region currently in use is less than the condition value. Therefore, the condition value must be determined in consideration of the characteristics of the information processing device. For example, how much memory is required by the operating system to be used as a work area, how much memory is required by an application to be used as a work area, or if an operating system is connected to the information processing apparatus. The determination index is, for example, how much memory is assumed as the display data and input / output data area for each connection terminal and how many are connected.

【0020】このバッファ領域使用量格納手段410と
バッファ領域拡張非抑制条件格納手段420の両者に設
定される値は、バッファ領域拡張抑制手段350で比較
対象となるため、両者間で同一の単位を提供できること
が要求される。例えば、メモリ使用量として比較しても
よいし、固定長のバッファ領域であればバッファ領域の
数で比較してもかまわない。
Since the values set in both the buffer area usage storage means 410 and the buffer area expansion non-suppression condition storage means 420 are to be compared by the buffer area expansion suppression means 350, the same unit is used for both. It must be able to provide. For example, the comparison may be made as the amount of memory used, or as long as the buffer area has a fixed length, the number may be compared.

【0021】このようにバッファ領域拡張非抑制条件格
納手段420をあらかじめ設定しておくことにより、バ
ッファ領域拡張抑制手段350がバッファ領域拡張非抑
制条件格納手段420とバッファ領域使用量格納手段4
10とを比較して上記バッファ領域拡張の抑止をやめる
ようにすることができる。すなわち、バッファ領域使用
量格納手段410の値がバッファ領域拡張非抑制条件格
納手段420の値よりも小さい場合には、たとえバッフ
ァ領域拡張経過時間格納手段440とバッファ領域拡張
抑制時間間隔格納手段430との結果からバッファ領域
の拡張を抑止すべき判断がなされても、その抑止はしな
い。
By setting the buffer area expansion non-suppression condition storage means 420 in advance in this way, the buffer area expansion non-restriction condition storage means 420 and the buffer area usage amount storage means 4
By comparing with 10, the suppression of the buffer area expansion can be stopped. That is, when the value of the buffer area usage storage unit 410 is smaller than the value of the buffer area expansion non-suppression condition storage unit 420, the buffer area expansion elapsed time storage unit 440 and the buffer area expansion suppression time interval storage unit 430 Even if it is determined from the result that the extension of the buffer area should be suppressed, the suppression is not performed.

【0022】上記バッファ領域拡張抑制手段350にお
けるチェックの結果、バッファ領域の拡張が抑制されて
いなければ、バッファ領域拡張手段210は、記憶手段
100においてバッファ領域110を新たに生成する。
これによって、バッファ要素取得手段220は、この生
成されたバッファ領域110の各バッファ要素111を
所要量分バッファ使用プロセス230に占有させる。
As a result of the check in the buffer area expansion suppressing means 350, if the buffer area expansion is not suppressed, the buffer area expanding means 210 newly creates the buffer area 110 in the storage means 100.
As a result, the buffer element obtaining means 220 causes the buffer use process 230 to occupy each buffer element 111 of the generated buffer area 110 by a required amount.

【0023】次に、本発明のバッファ拡張機構における
処理について図3乃至図5を参照しながら説明する。
Next, the processing in the buffer expansion mechanism of the present invention will be described with reference to FIGS.

【0024】図3を参照すると、バッファ使用プロセス
230からの要求に基づきバッファ要素取得手段220
からバッファ領域拡張手段210にバッファ領域の拡張
要求が起きると、まず、バッファ領域拡張手段210は
バッファ領域の拡張がバッファ領域拡張抑制手段350
によって抑制されていないかどうかをチェックする(ス
テップ610)。そして、抑制されていないと判断(ス
テップ620)した場合には、バッファ領域拡張手段2
10が記憶手段100においてバッファ領域110を新
たに生成する(ステップ630)。このバッファ領域1
10の各バッファ要素111は、バッファ要素取得手段
220を通じてバッファ使用プロセス230に占有され
る。
Referring to FIG. 3, the buffer element obtaining means 220 receives a request from the buffer using process 230.
When a buffer area expansion request is issued from the buffer area expansion unit 210 to the buffer area expansion unit 210, the buffer area expansion unit 210
It is checked whether or not it has been suppressed (step 610). If it is determined that the suppression is not suppressed (step 620), the buffer area expansion unit 2
10 newly generates the buffer area 110 in the storage means 100 (step 630). This buffer area 1
The ten buffer elements 111 are occupied by the buffer use process 230 through the buffer element acquisition means 220.

【0025】一方、バッファ領域の拡張が抑制されてい
ると判断(ステップ620)した場合には、バッファ領
域拡張手段210からバッファ要素取得手段220を通
じてバッファ使用プロセス230に、バッファ取得でき
ない旨が伝えられる(ステップ640)。これにより、
バッファ使用プロセス230はその後再度バッファ取得
の要求をすることになる。オペレーティングシステム
は、当該バッファ使用プロセス230に代えて他のプロ
セスをディスパッチするかもしれない。
On the other hand, if it is determined that the expansion of the buffer area is suppressed (step 620), the buffer area expansion means 210 informs the buffer use process 230 through the buffer element obtaining means 220 that the buffer cannot be obtained. (Step 640). This allows
The buffer use process 230 will then request buffer acquisition again. The operating system may dispatch another process instead of the buffer using process 230.

【0026】図4を参照すると、図3のステップ610
によりバッファ拡張抑制チェック処理が起動されると、
まず、バッファ領域拡張時間間隔取得手段320は上述
のように現時刻取得手段330の値からバッファ領域拡
張時刻格納手段450の値を減算することにより前回の
バッファ領域拡張時からの経過時間を算出する(ステッ
プ611)。そして、その算出された経過時間をバッフ
ァ領域拡張経過時間格納手段440に格納する(ステッ
プ612)。
Referring to FIG. 4, step 610 of FIG.
When the buffer expansion suppression check process is started by
First, the buffer area extension time interval acquisition means 320 calculates the elapsed time from the previous buffer area extension time by subtracting the value of the buffer area extension time storage means 450 from the value of the current time acquisition means 330 as described above. (Step 611). Then, the calculated elapsed time is stored in the buffer area expansion elapsed time storage means 440 (step 612).

【0027】次にバッファ領域拡張抑制手段350は上
述のように、バッファ領域使用量格納手段410、バッ
ファ領域拡張非抑制条件格納手段420、バッファ領域
拡張抑制時間間隔格納手段430およびバッファ領域拡
張経過時間格納手段440の値を使用してバッファ領域
の拡張が抑制されるべきか否かを判断する(ステップ6
13)。すなわち、バッファ領域拡張経過時間格納手段
440の値がバッファ領域拡張抑制時間間隔格納手段4
30の値よりも小さい場合には、バッファ領域の拡張が
抑制される。但し、バッファ領域使用量格納手段410
の値がバッファ領域拡張非抑制条件格納手段420の値
よりも小さければ、この抑制は行われない。このバッフ
ァ領域拡張の抑制の有無はバッファ領域拡張抑制手段3
50からバッファ領域拡張手段210に通知される(ス
テップ614)。
Next, as described above, the buffer area expansion suppression means 350 includes the buffer area usage storage means 410, the buffer area expansion non-suppression condition storage means 420, the buffer area expansion suppression time interval storage means 430, and the buffer area expansion elapsed time. It is determined whether the expansion of the buffer area should be suppressed using the value of the storage unit 440 (step 6).
13). That is, the value of the buffer area expansion elapsed time storage means 440 is stored in the buffer area expansion suppression time interval storage means 4.
If the value is smaller than 30, the expansion of the buffer area is suppressed. However, buffer area usage storage means 410
Is smaller than the value of the buffer area expansion non-suppression condition storage means 420, this suppression is not performed. The presence / absence of suppression of the buffer area expansion is determined by buffer area expansion suppression
50 notifies the buffer area extension means 210 (step 614).

【0028】図5を参照すると、図3のステップ630
により起動されたバッファ領域の拡張処理においては、
上記のバッファ領域拡張後、バッファ領域拡張手段21
0からバッファ領域使用量取得手段310にバッファを
拡張した旨が通知される(ステップ631)。この通知
を受けたバッファ領域使用量取得手段310は、バッフ
ァ領域拡張に係る使用量によって、バッファ領域使用量
格納手段410を更新する(ステップ632)。
Referring to FIG. 5, step 630 of FIG.
In the expansion process of the buffer area started by
After the above buffer area expansion, the buffer area expansion means 21
From 0, the buffer area usage acquisition unit 310 is notified that the buffer has been expanded (step 631). The buffer area usage acquisition unit 310 that has received the notification updates the buffer area usage storage 410 with the usage related to the buffer area expansion (step 632).

【0029】次に、このバッファ領域使用量格納手段4
10の更新に伴い、バッファ領域拡張抑制時間間隔算出
手段340はバッファ領域の拡張を抑制すべき時間間隔
を算出し直す(ステップ633)。そして、バッファ領
域拡張抑制時間間隔算出手段340はこの算出された値
によってバッファ領域拡張抑制時間間隔格納手段430
を更新する(ステップ634)。
Next, the buffer area use amount storage means 4
With the update of 10, the buffer area expansion suppression time interval calculation means 340 recalculates the time interval at which the expansion of the buffer area should be suppressed (step 633). Then, the buffer area expansion suppression time interval calculation means 340 uses the calculated value to store the buffer area expansion suppression time interval storage means 430.
Is updated (step 634).

【0030】また、バッファ領域拡張時間間隔取得手段
320は、現時刻を現時刻取得手段330から取得する
(ステップ635)。バッファ領域拡張時間間隔取得手
段320は、この現時刻すなわちバッファ領域拡張時刻
を、バッファ領域拡張時刻格納手段450に格納する
(ステップ636)。このバッファ領域拡張時刻格納手
段450の値は、次にバッファ領域拡張の抑制の有無が
チェックされる際に参照される。
The buffer area extension time interval acquiring means 320 acquires the current time from the current time acquiring means 330 (step 635). The buffer area extension time interval acquisition means 320 stores the current time, that is, the buffer area extension time, in the buffer area extension time storage means 450 (step 636). The value of the buffer area extension time storage means 450 is referred to next time when the presence or absence of the suppression of the buffer area extension is checked.

【0031】[0031]

【発明の効果】以上の説明で明らかなように、本発明に
よると、プログラムの実行中に動的にバッファ領域が拡
張される際に、バッファ領域の拡張をする時間間隔に一
定の制限を与えることにより、連続的に集中してバッフ
ァ領域の拡張が行われることを回避することができる。
また、システムの立ち上げ時のようにバッファ領域の使
用量が少なくバッファ領域の拡張が優先される場合には
上記バッファ領域拡張の制限をしないことにより、シス
テムの状態に応じたバッファ領域の拡張を行うことがで
きる。さらに、バッファ領域使用量格納手段,バッファ
領域拡張非抑制条件格納手段,バッファ領域拡張抑制時
間間隔格納手段およびバッファ領域拡張経過時間格納手
段を設けたことにより、上記拡張やその拡張の緩和につ
いて判断する際に各格納手段の値を使用することができ
るため、判断の度に各値を算出し直さないで済むという
効果もある。
As is apparent from the above description, according to the present invention, when the buffer area is dynamically expanded during execution of the program, a certain limit is imposed on the time interval for expanding the buffer area. This can prevent the buffer area from being continuously concentrated and expanded.
In addition, when the buffer area usage is small and the expansion of the buffer area is prioritized, such as when the system is started up, the expansion of the buffer area according to the system state is not performed by not restricting the expansion of the buffer area. It can be carried out. Furthermore, the provision of the buffer area usage amount storage means, the buffer area expansion non-suppression condition storage means, the buffer area expansion suppression time interval storage means, and the buffer area expansion elapsed time storage means determine the expansion and relaxation of the expansion. Since the values of the respective storage means can be used at this time, there is also an effect that it is not necessary to recalculate the respective values each time a judgment is made.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のバッファ拡張機構の一実施例の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a buffer expansion mechanism of the present invention.

【図2】本発明におけるバッファ領域の構成を示す図で
ある。
FIG. 2 is a diagram showing a configuration of a buffer area according to the present invention.

【図3】本発明におけるバッファ領域の拡張要求に対す
る処理の流れを示す流れ図である。
FIG. 3 is a flowchart showing the flow of processing in response to a buffer area expansion request according to the present invention.

【図4】本発明におけるバッファ領域の拡張が抑制され
ているか否かをチェックする処理の流れを示す流れ図で
ある。
FIG. 4 is a flowchart showing a flow of processing for checking whether or not expansion of a buffer area is suppressed according to the present invention.

【図5】本発明におけるバッファ領域の拡張をする際の
処理の流れを示す流れ図である。
FIG. 5 is a flowchart showing a flow of processing when expanding a buffer area in the present invention.

【符号の説明】[Explanation of symbols]

100 記憶手段 110 バッファ領域 111 バッファ要素 210 バッファ領域拡張手段 220 バッファ要素取得手段 230 バッファ使用プロセス 310 バッファ領域使用量取得手段 320 バッファ領域拡張時間間隔取得手段 330 現時刻取得手段 340 バッファ領域拡張抑制時間間隔算出手段 350 バッファ領域拡張抑制手段 410 バッファ領域使用量格納手段 420 バッファ領域拡張非抑制条件格納手段 430 バッファ領域拡張抑制時間間隔格納手段 440 バッファ領域拡張経過時間格納手段 450 バッファ領域拡張時刻格納手段 REFERENCE SIGNS LIST 100 storage means 110 buffer area 111 buffer element 210 buffer area expansion means 220 buffer element acquisition means 230 buffer usage process 310 buffer area usage acquisition means 320 buffer area expansion time interval acquisition means 330 current time acquisition means 340 buffer area expansion suppression time interval Calculation means 350 Buffer area expansion suppression means 410 Buffer area usage storage means 420 Buffer area expansion non-suppression condition storage means 430 Buffer area expansion suppression time interval storage means 440 Buffer area expansion elapsed time storage means 450 Buffer area expansion time storage means

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 記憶手段と、この記憶手段においてバッ
ファ領域を拡張するバッファ領域拡張手段とを含む情報
処理装置におけるバッファ拡張機構において、 直前に前記バッファ領域が拡張されてからの経過時間を
生成するバッファ領域拡張経過時間生成手段と 前記バッファ領域を拡張する際の最小時間間隔を格納す
るバッファ領域拡張抑制時間間隔格納手段と このバッファ領域拡張抑制時間間隔格納手段に格納され
た最小時間間隔を前記バッファ領域拡張経過時間生成手
段で生成された経過時間が満たしていない場合には、前
記バッファ領域の拡張を抑制する旨前記バッファ領域拡
張手段に伝えるバッファ領域拡張抑制手段と 前記バッファ領域拡張手段で前記バッファ領域の拡張が
されたことを検知するバッファ領域使用量取得手段と このバッファ領域使用量取得手段によって前記バッファ
領域の使用量を格納されるバッファ領域使用量格納手段
このバッファ領域使用量格納手段に格納された使用量
大きくなる程前記バッファ領域拡張抑制時間間隔格納手
段に格納される最小時間間隔が大きくなるように算出す
るバッファ領域拡張抑制時間間隔算出手段と 前記バッファ領域の拡張を抑制しない前記バッファ領域
の使用量の最大値を格納するバッファ領域拡張非抑制条
件格納手段とを含み、 前記バッファ領域拡張抑制手段は、前記バッファ領域使
用量格納手段に格納された使用量が前記バッファ領域拡
張非抑制条件格納手段に格納された値よりも小さければ
前記バッファ領域の拡張を抑制しないことを特徴とする
請求項1記載のバッファ拡張機構。
1. A buffer expansion mechanism in an information processing apparatus including a storage means and a buffer area expansion means for expanding a buffer area in the storage means, wherein an elapsed time since the last time the buffer area was expanded is generated. a buffer region extension elapsed time generating means, and the buffer region growing suppression time interval storage means for storing the minimum time interval when expanding the buffer area, the minimum time interval stored in the buffer region extension suppression time interval storing means when said buffer region extension elapsed time generating means elapsed time generated by does not meet, the buffer area extension suppression means for transmitting extended to suppress effect the buffer region expanding means of the buffer area, the buffer area extension means Buffer area usage acquisition means for detecting that the buffer area has been expanded A buffer region using amount storage means stores the amount of the buffer area by the buffer space usage acquisition unit, usage stored in the buffer area using amount storage means
A buffer region growing suppression time interval calculating unit that the minimum time interval is calculated to be larger to be stored in the buffer area extension suppression time interval storage means enough to increase, the amount of the buffer area that does not inhibit the extension of the buffer area Buffer area expansion non-suppression condition storing means for storing the maximum value of the buffer area expansion non-suppression condition storing means, 2. The buffer expansion mechanism according to claim 1, wherein if the value is smaller than the stored value, expansion of the buffer area is not suppressed.
【請求項2】 前記バッファ領域拡張経過時間生成手段
は、現在の時刻を示す現時刻取得部と、直前に前記バッ
ファ領域を拡張した時刻を格納するバッファ領域拡張時
刻格納部と、前記現時刻取得部の示す現在の時刻と前記
バッファ領域拡張時刻格納部に格納された時刻とから直
前に前記バッファ領域が拡張されてからの経過時間を算
出するバッファ領域拡張時間間隔取得部と、このバッフ
ァ領域拡張時間間隔取得部で算出された経過時間を格納
するバッファ領域拡張経過時間格納部とを含むことを特
徴とする請求項1記載のバッファ拡張機構。
2. The buffer area extension elapsed time generation unit includes: a current time acquisition unit that indicates a current time; a buffer area extension time storage unit that stores a time immediately before the buffer area is extended; A buffer area extension time interval acquisition section that calculates an elapsed time since the buffer area was extended immediately before the current time indicated by the section and the time stored in the buffer area extension time storage section; 2. The buffer expansion mechanism according to claim 1, further comprising: a buffer area expansion elapsed time storage unit that stores the elapsed time calculated by the time interval acquisition unit.
【請求項3】 前記現時刻取得部は、現在の時刻を示す
タイマを含み;前記バッファ領域拡張時刻格納部は、直
前に前記バッファ領域を拡張した時刻を格納するレジス
タを含み;前記バッファ領域拡張時間間隔取得部は、前
記現時刻取得部の示す現在の時刻から前記バッファ領域
拡張時刻格納部に格納された時刻を減算して、直前に前
記バッファ領域が拡張されてからの経過時間を算出する
減算器を含み;前記バッファ領域拡張経過時間格納部
は、前記バッファ領域拡張時間間隔取得部で算出された
経過時間を格納するレジスタを含み;前記バッファ領域
拡張抑制時間間隔格納手段は、前記バッファ領域を拡張
する際の最小時間間隔を格納するレジスタを含み;前記
バッファ領域使用量格納手段は、前記バッファ領域の使
用量を格納するレジスタを含み;前記バッファ領域拡張
非抑制条件格納手段は、前記バッファ領域の拡張を抑制
しない前記バッファ領域の使用量の最大値を格納するレ
ジスタを含むことを特徴とする請求項2記載のバッファ
拡張機構。
3. The current time acquisition unit includes a timer indicating a current time; the buffer area extension time storage unit includes a register that stores a time at which the buffer area was extended immediately before; The time interval acquisition unit subtracts the time stored in the buffer area extension time storage unit from the current time indicated by the current time acquisition unit, and calculates the elapsed time since the last time the buffer area was extended. The buffer area expansion elapsed time storage unit includes a register for storing the elapsed time calculated by the buffer area expansion time interval acquisition unit; the buffer area expansion suppression time interval storage unit includes: A register for storing a minimum time interval when expanding the buffer area; the buffer area usage storage means includes a register for storing the usage of the buffer area. 3. The buffer expansion according to claim 2, wherein the buffer area expansion non-suppression condition storage unit includes a register for storing a maximum value of the used amount of the buffer area which does not suppress the expansion of the buffer area. mechanism.
JP2135094A 1994-02-18 1994-02-18 Buffer expansion mechanism Expired - Lifetime JP2917797B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2135094A JP2917797B2 (en) 1994-02-18 1994-02-18 Buffer expansion mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2135094A JP2917797B2 (en) 1994-02-18 1994-02-18 Buffer expansion mechanism

Publications (2)

Publication Number Publication Date
JPH07230406A JPH07230406A (en) 1995-08-29
JP2917797B2 true JP2917797B2 (en) 1999-07-12

Family

ID=12052653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2135094A Expired - Lifetime JP2917797B2 (en) 1994-02-18 1994-02-18 Buffer expansion mechanism

Country Status (1)

Country Link
JP (1) JP2917797B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
発明協会公開技報公技番号93−32083号

Also Published As

Publication number Publication date
JPH07230406A (en) 1995-08-29

Similar Documents

Publication Publication Date Title
US5628013A (en) Apparatus and method for allocating processing time in a frame-based computer system
US6539415B1 (en) Method and apparatus for the allocation of audio/video tasks in a network system
US5748959A (en) Method of conducting asynchronous distributed collective operations
JP3490742B2 (en) Memory management device
US20040181791A1 (en) Task switching apparatus, method and program
JP2007058601A (en) Task execution device and method
JP2005056067A (en) Dma transfer controller
JP2917797B2 (en) Buffer expansion mechanism
US5388261A (en) Apparatus and method for handling frame overruns in a digital signal processing system
JP2001117786A (en) Process scheduling device and process scheduling method
CN110008681A (en) Access control method, equipment and system
JP2002027477A (en) Mpeg image processor and data transfer method for the same
JPH11353291A (en) Multiprocessor system and medium recording task exchange program
JPH09204311A (en) Information processing system
JPH0728748A (en) Bus control mechanism and computer system
JP2021149293A (en) Information processing device, method, and program
JP3374925B2 (en) Resource reservation management device
JP2583169B2 (en) Operation program switching method for communication processing device
JP2004220309A (en) Multiprocessor system
JP2007128396A (en) Interrupt control method and information processor
JPH11143723A (en) Device and method for timer management
CN116954504A (en) Cache data synchronization method and device, electronic equipment and storage medium
JP2006244293A (en) Tag execution control method and device
JP2001268607A (en) Resource audit processing system and processing method for exchange
JPH09284815A (en) Resource assignment and release 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: 19990323