JPS63292252A - Storage area management device - Google Patents
Storage area management deviceInfo
- Publication number
- JPS63292252A JPS63292252A JP12749187A JP12749187A JPS63292252A JP S63292252 A JPS63292252 A JP S63292252A JP 12749187 A JP12749187 A JP 12749187A JP 12749187 A JP12749187 A JP 12749187A JP S63292252 A JPS63292252 A JP S63292252A
- Authority
- JP
- Japan
- Prior art keywords
- area
- block
- allocation
- storage area
- request source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 101000800590 Homo sapiens Transducin beta-like protein 2 Proteins 0.000 description 10
- 102100033248 Transducin beta-like protein 2 Human genes 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 102100026338 F-box-like/WD repeat-containing protein TBL1Y Human genes 0.000 description 5
- 101000835691 Homo sapiens F-box-like/WD repeat-containing protein TBL1X Proteins 0.000 description 5
- 101000835690 Homo sapiens F-box-like/WD repeat-containing protein TBL1Y Proteins 0.000 description 5
- 101000837456 Homo sapiens Transducin beta-like protein 3 Proteins 0.000 description 5
- 102100028683 Transducin beta-like protein 3 Human genes 0.000 description 5
- 238000000034 method Methods 0.000 description 5
- 230000015654 memory Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 1
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
発明の目的
[産業上の利用分野]
本発明は、データ処理システムにおける記憶領域を複数
個の要求元が利用できるよう領域管理を行なう記憶領域
管理装置に関する。DETAILED DESCRIPTION OF THE INVENTION Object of the Invention [Field of Industrial Application] The present invention relates to a storage area management device that manages an area in a data processing system so that a plurality of requesters can use the storage area.
[従来の技術]
こうした記憶領域管理装置として、従来、最初から静的
に記憶領域を割り付ける装置と要求元が必要とする場合
のみ動的に記憶領域を割り付ける装置とがあるが、記憶
領域の有効利用という点において前記動的に割り付け装
置の方が効率的である。[Prior Art] Conventionally, such storage area management devices include devices that statically allocate storage areas from the beginning and devices that dynamically allocate storage areas only when required by a request source. The dynamically allocated device is more efficient in terms of utilization.
この動的に割り付ける装置について、以下、第9図に基
づいて説明する。同図に示すように、記憶領域A1が所
定の大きさのブロックA2にn分割され、各ブロックA
2−1〜A2−nに対応する数のセルからなる記憶領域
管理テーブルA3が設けられ、要求元の割り付け要求す
る領域を記憶領域A1にブロック単位で割り付けると共
に、この割り付けられたブロックに対応する記憶領域管
理テーブルTBL中のセルに割り付け済みでおることを
示す情報(例えば値「1」を書き込む〉を書き込むよう
構成されていた。This dynamic allocation device will be explained below based on FIG. 9. As shown in the figure, the storage area A1 is divided into n blocks A2 of a predetermined size, and each block A
A storage area management table A3 consisting of cells corresponding to numbers 2-1 to A2-n is provided, which allocates the area requested by the requestor in block units to the storage area A1, and also provides a table corresponding to the allocated block. It was configured to write information indicating that the cell has been allocated (for example, a value "1" is written) in the cell in the storage area management table TBL.
[発明が解決しようとする問題点]
しかしながら、前記従来の技術は、以下に示す問題を有
しており、猶一層の改善が望まれていた。[Problems to be Solved by the Invention] However, the conventional technology has the following problems, and further improvements have been desired.
即ち、要求元の割り付け要求する領域が1つのブロック
容量の整数倍に一致しない、例えば各ブロック容量が1
0にバイトで要求量が24にバイトである場合、記憶領
域管理テーブルA3には対応する3つのセルに割り付け
済みであることを示す情報が書き込まれるが、実際は第
10図に示すように3つ目のブロックA2−3に6にバ
イトの空き領域A4が生じることになり、このため複数
の要求元が順次割り付けを行なってゆくと、ブロック内
の空き領域A4がいたるところに生じることになり、記
憶領域を有効に利用することができない問題を有してい
た。なお、記憶領域のブロックを細分化することにより
前記問題を軽減することはできるが、要求元の要求する
領域がブロックの大きさの整数倍に一致しない限り、完
全にこの問題を解決することはできず、またブロックを
細分化することにより領域管理が複雑化する。In other words, the area requested by the requester for allocation does not match an integral multiple of one block capacity, for example, if each block capacity is 1
If 0 bytes and the requested amount are 24 bytes, information indicating that the corresponding three cells have been allocated is written to the storage area management table A3, but in reality there are three cells as shown in Figure 10. A 6-byte free area A4 will be created in the second block A2-3. Therefore, if multiple request sources sequentially allocate, free areas A4 in the block will occur everywhere. There was a problem in that the storage area could not be used effectively. Although the above problem can be alleviated by subdividing the storage area blocks, it is not possible to completely solve this problem unless the area requested by the request source matches an integral multiple of the block size. This is not possible, and area management becomes complicated by subdividing blocks.
本発明は、前記問題点に鑑みてなされたもので、領域管
理を複雑化することなく記憶領域を有効に利用すること
のできる記憶領域管理装置を提供することを目的として
いる。The present invention has been made in view of the above problems, and an object of the present invention is to provide a storage area management device that can effectively utilize storage areas without complicating area management.
及服り璽メ
[問題点を解決するための手段]
かかる目的を達成するための本発明の記憶領域管理装置
は、第1図に示すように、
記憶領域M1を所定の大きざのブロックM2に分解して
、領域要求元M3が割り付け要求する領域を前記記憶領
域M1にブロック単位で割り付ける第1割り付け手段M
4と、前記第1割り付け手段M4によって割り付けられ
たブロックM2を示すデータを作成して表示する第1表
示手段M5と、を備えた記憶領域管理装置において、前
記第1表示手段M5にて表示されたブロック間2中で前
記割り付け要求した領域が満ださていない空き領域M6
を示すデータを作成して表示する第2表示手段M7と、
前記第2表示手段M7にて表示されたデータに基づいて
前記空き領域M6を検出し、他の領域要求元M3が割り
付け要求する領域の一部もしくは全部を前記空き領域M
6に割り付ける第2割り付け手段M8と、を設けたこと
を要旨としている。[Means for solving the problem] The storage area management device of the present invention for achieving the above object, as shown in FIG. 1, divides the storage area M1 into blocks M2 of a predetermined size. a first allocation means M that allocates the area requested by the area requestor M3 to the storage area M1 in units of blocks;
4, and a first display means M5 for creating and displaying data indicating the block M2 allocated by the first allocation means M4, the data displayed on the first display means M5 is provided. Free area M6 between blocks 2 that is not filled with the area requested for allocation.
a second display means M7 for creating and displaying data indicating the
The free area M6 is detected based on the data displayed on the second display means M7, and part or all of the area requested for allocation by another area request source M3 is allocated to the free area M.
The gist is that a second allocation means M8 is provided for allocating the data to the second allocation unit M8.
[作用]
前記のように構成された本発明の記憶領域管理装置は、
第1割り付け手段M4によって、領域要求元M3から割
り付け要求されたデータを記憶領域M1にブロックM2
単位で割り付けると共に第1表示手段M5によって前記
割り付けられたブロックを表示しているが、更に、第2
表示手段M7によって前記割り付けのなされた各ブロッ
ク中で前記領域要求元の割り付け要求した領域の満たさ
れていない空き領域M6を表示し、第2割り付け手段M
8によって前記第2表示手段M7の表示結果に基づいた
空き領域M6の検出がなされ、他の領域要求元M3か割
り付け要求するデータの一部もしくは全部をその空き領
域M6に割り付ける。[Operation] The storage area management device of the present invention configured as described above has the following features:
The first allocation means M4 transfers the data requested for allocation from the area requestor M3 to the storage area M1 in the block M2.
The blocks are allocated in units and the allocated blocks are displayed by the first display means M5.
The display means M7 displays the unfilled free space M6 of the area requested by the area requestor in each of the allocated blocks, and the second allocation means M
8, the free area M6 is detected based on the display result of the second display means M7, and part or all of the data requested by another area request source M3 is allocated to the free area M6.
[実施例] 以下、本発明の好適な一実施例を図面と共に説明する。[Example] Hereinafter, a preferred embodiment of the present invention will be described with reference to the drawings.
第2図は本発明の一実施例としての記憶領域管理装置の
構成を示すブロック図である。同図に示すように、記憶
領域管理装置は、データ処理装置1と内部メモリとして
の記憶領域3とから構成される。データ処理装置1は、
逐時命令をフェッチして実行するものであって、領域要
求部5および領域管理部7等を備える。領域要求部5は
、m個の要求元11を備え、データ処理装@1の制御の
ちとに、利用者の所望のデータ処理を実行するものであ
って、データ処理装置に際して作業域を確保するために
所望の大きさの領域の割り付けを要求し、その割り付け
られた領域の参照を要求し、あるいは使用後にその割り
付けられた領域の解放(返却)を要求する。領域管理部
7は、領域要求部5から要求される領域を統一的に管理
するものであり、前記割り付け要求に応じて領域の割り
付けを管理する割り付け処理管理部13、前記参照要求
に応じて割り付けられた領域の参照及び更新を管理する
参照処理管理部15および前記解放要求に応じて割り付
けられた領域の解放を管理する解放処理管理部17から
構成される。FIG. 2 is a block diagram showing the configuration of a storage area management device as an embodiment of the present invention. As shown in the figure, the storage area management device includes a data processing device 1 and a storage area 3 as an internal memory. The data processing device 1 is
It fetches and executes instructions one by one, and includes an area requesting unit 5, an area managing unit 7, and the like. The area request unit 5 includes m request sources 11, executes the data processing desired by the user under the control of the data processing device @1, and secures a work area for the data processing device. requests the allocation of an area of a desired size, requests reference to the allocated area, or requests release (return) of the allocated area after use. The area management unit 7 uniformly manages areas requested by the area request unit 5, and includes an allocation processing management unit 13 that manages area allocation in response to the allocation request, and an allocation processing management unit 13 that manages area allocation in response to the reference request. It is composed of a reference processing management section 15 that manages references and updates of the allocated area, and a release processing management section 17 that manages the release of the allocated area in response to the release request.
記憶領域3は、所定の大きさのブロックBLにn分割さ
れて管理される記憶領域割り付けエリア21と、この管
理のために必要な記憶領域管理テーブルTBL1.ブロ
ック管理テーブルTBL2および要求元管理テーブルT
B13等を格納する記憶領域管理情報エリア23とから
構成される。The storage area 3 includes a storage area allocation area 21 that is divided into n blocks BL of a predetermined size and managed, and a storage area management table TBL1 . Block management table TBL2 and request source management table T
It is composed of a storage area management information area 23 that stores B13 and the like.
記憶領域管理テーブルTBL1は、第3図に示すように
、ブロック管理テーブルTBL2の格納位置を示すブロ
ック管理テーブルアドレス、要求元管理テーブルTBL
3の格納位置を示す要求元管理テーブルアドレス、記憶
領域割り付けエリア全体のブロック数n、これらブロッ
クBL内の少しも領域の割り付けられていない完全な空
きブロック数、記憶領域割り付けエリア全体の空きエリ
アサイズおよび1ブロツクBLのサイズを示すものであ
る。ブロック管理テーブルTBL2は、第4図に示すよ
うに、各ブロックBLに対応して、ブロック内空きエリ
アサイズと、要求元Nαおよびブロック内の割り付け相
対位置からなるm個の要求元情報項目とを示すものであ
る。要求元管理テーブルTBL3は、第5図に示すよう
に、各要求元に対応して、要求元割り付けエリアサイズ
と、ブロック全体を占有するブロックの数を示す全体占
有ブロック数と、割り付けられたブロックNOおよびそ
のブロック内に割り付けられた領域のサイズからなるn
個のブロック情報項目とを示すものである。As shown in FIG. 3, the storage area management table TBL1 includes a block management table address indicating the storage location of the block management table TBL2, and a request source management table TBL.
3, the request source management table address indicating the storage location of item 3, the number n of blocks in the entire storage area allocation area, the number of completely free blocks in these blocks BL to which no area has been allocated, and the free area size of the entire storage area allocation area. and the size of one block BL. As shown in FIG. 4, the block management table TBL2 stores, corresponding to each block BL, m request source information items consisting of the free area size within the block, the request source Nα, and the allocation relative position within the block. It shows. As shown in FIG. 5, the request source management table TBL3 stores, for each request source, the request source allocation area size, the total number of occupied blocks indicating the number of blocks occupying the entire block, and the allocated blocks. n consisting of NO and the size of the area allocated within that block
block information items.
次に、割り付け処理管理部13において実行される割り
付け処理管理ルーチンについて第6図のフローチャート
に基づいて説明する。Next, the allocation processing management routine executed by the allocation processing management section 13 will be explained based on the flowchart of FIG. 6.
割り付け処理管理ルーチンは、領域要求部5から要求容
量■を指定することにより実行開始されるもので、まず
前記要求容量■を読み込み(ステップ100)、要求元
管理テーブルTBL3により空き要求元Nαを検索する
(ステップ105)。The allocation processing management routine is started by specifying the requested capacity ■ from the area requesting unit 5. First, the requested capacity ■ is read (step 100), and the request source management table TBL3 is searched for the free request source Nα. (Step 105).
次いで前記要求容量(以下割り付け容量とも呼ぶ)■と
記憶領域管理テーブルTBLの空きエリアサイズとを比
較して、この要求する領域を記憶領域割り付けエリア2
1に割り付け可能か否かを判断する(ステップ110)
。可能と判断された場合、続いて割り付け容量がOより
大きいか否かを判断しくステップ120>、V>Oと判
断された場合に、記憶領域管理テーブルTBL1を参照
して少しも割り付けのなされていない完全な空きブロッ
ク数が0より大きいか否かを判断する(ステップ130
)。完全な空きブロックBLの数が0より大きい場合、
第4図に示すブロック管理テーブルTBL2を参照して
その空きブロックBLを検出しくブロック内空きエリア
サイズがブロックサイズ一杯であるものを検索するニス
テップ140)次いで、その空きブロックBLに前記割
り付け領域を確保すべく前記検出した空きブロックNα
に対応した要求元情報項目へ前記ステップ105で検索
した要求元Nαとブロック内のその割り付ける領域の相
対位置とを設定すると共に、同じくその空きブロックN
αに対応したブロック内空きエリアサイズを更新する(
ステップ150)。次いで、要求元管理テーブルTBL
a内の前記要求元Nαに対応したブロック情報項目へそ
の割り付けるブロックNαと割り付ける領域のサイズと
を設定すると共に、同じく要求元N0に対応した要求元
割り付けエリアサイズ、ブロック占有数を更新する(ス
テップ160)。続いて、記憶領域管理テーブルTBL
1の空きエリアサイズおよび空きブロック数を更新しく
ステップ170) 、その後、割り付け容量Vから1ブ
ロツクのサイズVBを減譚しくステップ180)、再び
処理をステップ120に戻す。Next, the requested capacity (hereinafter also referred to as allocated capacity) ■ is compared with the free area size of the storage area management table TBL, and the requested area is allocated to the storage area allocation area 2.
Determine whether it can be assigned to 1 (step 110)
. If it is determined that it is possible, it is then determined in step 120 whether the allocated capacity is larger than O, and if it is determined that V>O, the storage area management table TBL1 is referred to and it is determined whether the allocated capacity is larger than O or not. Determine whether the number of complete free blocks is greater than 0 (step 130).
). If the number of completely free blocks BL is greater than 0,
Referring to the block management table TBL2 shown in FIG. 4, the free block BL is searched for, and the free area size within the block is full to the block size (step 140). Next, the allocated area is allocated to the free block BL. The detected vacant block Nα to be secured
The request source Nα retrieved in step 105 and the relative position of the area to be allocated within the block are set in the request source information item corresponding to the empty block N.
Update the free area size in the block corresponding to α (
Step 150). Next, request source management table TBL
Set the block Nα to be allocated and the size of the area to be allocated to the block information item corresponding to the request source Nα in a, and also update the request source allocated area size and block occupancy number corresponding to the request source N0 (step 160). Next, the storage area management table TBL
The free area size of 1 and the number of free blocks are updated (step 170), then the size VB of 1 block is subtracted from the allocated capacity V (step 180), and the process returns to step 120 again.
一方、ステップ130で空きブロック数がO以下と判断
された場合、第4図に示すブロック管理テーブルTBL
2を参照して少しでも空き領域を有するブロックBLを
検出する(ブロック内空きエリアサイズがブロックサイ
ズ1杯に満たないものを検出するニステップ190)。On the other hand, if it is determined in step 130 that the number of free blocks is O or less, the block management table TBL shown in FIG.
2, a block BL having even a small amount of free space is detected (step 190 of detecting a block in which the free area size in the block is less than one full block size).
次いで、前記検出した空き領域に所望の領域を割り付け
るべく、ステップ150.160と同様の要領でブロッ
ク管理テーブルTBL2および要求元管理テーブルTB
L3を更新しくステップ200,210>、次いで記憶
領域管理テーブルTBL1の空きエリアサイズを更新す
る(ステップ220〉。ステップ220処理後、割り付
け容量Vから前記ステップ190ないし220で割り付
けた領域の容量vXを減算しくステップ230> 、再
び処理をステップ120に戻す。Next, in order to allocate a desired area to the detected free area, the block management table TBL2 and the request source management table TB are created in the same manner as steps 150 and 160.
L3 is updated in steps 200 and 210>, and then the free area size of the storage area management table TBL1 is updated (step 220>). After step 220, the capacity vX of the area allocated in steps 190 to 220 is calculated from the allocated capacity V. After step 230>, the process returns to step 120 again.
他方、ステップ110で割り付け不可能と判断された場
合、割り付け不可能でおることを当該要求元11に通知
しくステップ240)、その後、処理をr I?ETU
RN Jに移行し本ルーチンを一旦終了する。また、ス
テップ120で割り付け容ff1VがO以下と判断され
た場合、要求した容量が全て割り付けられたことと、前
記ステップ105で検索した管理テーブル上の要求元N
αとを前記要求元11に通知しくステップ250> 、
同じく本ルーチンを一旦終了する。On the other hand, if it is determined in step 110 that allocation is not possible, the request source 11 is notified of the fact that allocation is impossible (step 240), and then the process is performed. ETU
The program moves to RN J and ends this routine once. Further, if it is determined in step 120 that the allocated capacity ff1V is less than or equal to O, it is determined that all the requested capacity has been allocated and that the request source N on the management table searched in step 105 is confirmed.
step 250> to notify the request source 11 of α;
Similarly, this routine is temporarily ended.
次に、参照処理管理部15において実行される参照処理
管理ルーチンについて第7図のフローチャートに基づい
て説明する。Next, the reference processing management routine executed by the reference processing management section 15 will be explained based on the flowchart of FIG. 7.
参照処理管理ルーチンは、参照もしくは更新を要求する
要求元Nαと、参照もしくは更新すべきデータの、その
要求元の要求領域における相対位置とを領域要求部5か
ら指定することにより実行開始されるもので、まず前記
要求元Nαと相対位置とを読み込み(ステップ300)
、次いで前記相対位置で示す領域が要求元の要求領域
の範囲内にあるか否かを判断する(ステップ310)。The reference processing management routine is started when the area requesting unit 5 specifies the request source Nα requesting reference or update and the relative position of the data to be referenced or updated in the requested area of the request source. First, the request source Nα and the relative position are read (step 300).
Then, it is determined whether the area indicated by the relative position is within the range of the requested area of the request source (step 310).
ここで範囲内と判断されると、続いて前記相対位置で示
す領域がどこのブロック内に該当するかを、要求元管理
テーブルTBL3の該当する要求元ブロックの情報項目
を順次参照して検索しくステップ320、ステップ33
0.ステップ340) 、該当するブロックBLが見付
かった場合に、次いで、ブロック管理テーブルTBL2
から所望の要求元の割り付け相対位置を検索し、前記要
求元から指定された相対位置が記憶領域割り付けエリア
のどのアドレスに位置するかを計算する(ステップ35
0)。その後、処理は[RETURNJへ1友けて本ル
ーチンの処理を一旦終了する。一方、ステップ310で
前記相対位置で示す領域が範囲外にあると判断された場
合、参照を止めさせるべく要求元11へ領域外参照であ
ることを通知しくステップ360)、本ルーチンの処理
を一旦終了する。If it is determined that it is within the range, then search for which block the area indicated by the relative position corresponds to by sequentially referring to the information items of the corresponding request source block in the request source management table TBL3. Step 320, Step 33
0. Step 340) If the corresponding block BL is found, then block management table TBL2
The allocation relative position of the desired request source is searched from , and it is calculated at which address in the storage area allocation area the relative position specified by the request source is located (step 35
0). After that, the process goes to [RETURNJ] and temporarily ends the process of this routine. On the other hand, if it is determined in step 310 that the area indicated by the relative position is outside the range, the request source 11 is notified of the out-of-area reference in order to stop the reference (step 360), and the processing of this routine is temporarily stopped. finish.
次に解放処理管理部17において実行される解放処理管
理ルーチンについて第8図のフローチャートに基づいて
説明する。Next, the release processing management routine executed by the release processing management section 17 will be explained based on the flowchart of FIG. 8.
解放処理管理ルーチンは、割り付けた領域が不要となっ
た場合に領域要求部5から要求元Nαを指定することに
より実行開始されるもので、まず前記要求元Nαを読み
込む(ステップ400)。次いで、要求元管理テーブル
TBL3の前記要求元Nαに該当する最初のブロック情
報を内部ポインタでポイントしくステップ410)、続
くブロック情報項目に関し順次以下の処理を施す。The release processing management routine is started by specifying a request source Nα from the area requesting unit 5 when the allocated area is no longer needed, and first reads the request source Nα (step 400). Next, the internal pointer points to the first block information corresponding to the request source Nα in the request source management table TBL3 (step 410), and the following processing is sequentially performed on the subsequent block information items.
まず該当するブロック全体を前記指示された要求元11
が専有しているか否かを、ブロック管理テーブルT8L
2の割り付け相対位置を参照して判断しくステップ43
0) 、占有していると判断された場合に、ブロック管
理テーブルTBL2の該当する要求元11の要求元情報
項目を初期化しくステップ440.ステップ450)
、同じくブロック管理テーブルTBL2の該当するブロ
ック内空きエリアサイズを更新する(ステップ460〉
一方、ステップ430で該当するブロック全体を前記指
示された要求元が占有していないと判断された場合、ブ
ロック管理テーブルTBL2の該当するブロックの該当
要求元情報項目を検索しくステップ470.ステップ4
80) 、該当要求元情報項目より第4図の右側にある
要求元情報項目を左へずらして割り付け相対位置を更新
するくステップ490)。次いで前記ステップ490で
ずらした要求元情報項目に対応して記憶領域割り付けエ
リアのブロック内のデータを再配置しくステップ500
) 、ブロック管理テーブルTBL2の該当ブロックに
対応するブロック内空きエリアサイズを更新する(ステ
ップ510)。ステップ46Oもしくはステップ510
の実行後、続いて指示された要求元Nαに該当した次の
ブロック情報項目をポイントしステップ430ないし5
20の処理を繰り返す。First, the entire corresponding block is transferred to the specified request source 11.
Block management table T8L
Step 43: Refer to the allocation relative position in step 2.
0) If it is determined that the request source 11 is occupied, the request source information item of the corresponding request source 11 in the block management table TBL2 is initialized in step 440. step 450)
, similarly updates the free area size in the corresponding block in the block management table TBL2 (step 460).
On the other hand, if it is determined in step 430 that the specified request source does not occupy the entire corresponding block, the request source information item of the corresponding block in the block management table TBL2 is searched for in step 470. Step 4
80), the request source information item on the right side of FIG. 4 is shifted to the left from the corresponding request source information item to update the relative allocation position (step 490). Next, step 500 rearranges the data in the block of the storage area allocation area in accordance with the request source information item shifted in step 490.
), updates the block free area size corresponding to the corresponding block in the block management table TBL2 (step 510). Step 46O or Step 510
After executing , it points to the next block information item corresponding to the specified request source Nα, and steps 430 to 5
Repeat step 20.
当該要求元11に関する夫々のブロック情報項目に対し
てステップ430ないし510の処理が施されると、ブ
ロック情報項目は終了したと判断され(ステップ420
) 、続いて記憶領域管理テーブルTBL1の空きエリ
アサイズ、空きブロック数が更新され(ステップ530
) 、次いで要求元管理テーブルTBL3の当該要求元
Nαに対応した要求元割り付けエリアサイズ、ブロック
占有数。When each block information item related to the request source 11 is processed in steps 430 to 510, it is determined that the block information item is completed (step 420).
), then the free area size and the number of free blocks in the storage area management table TBL1 are updated (step 530).
), and then the request source allocation area size and block occupancy number corresponding to the request source Nα in the request source management table TBL3.
ブロック情報項目等の各項をクリアしくステップ540
)、その後処理をrRETtlRNJ ニ移し、本ルー
チンの処理を一旦終了する。Clear each item such as block information item etc. Step 540
), the processing is then transferred to rRETtlRNJ, and the processing of this routine is temporarily terminated.
以上、本発明の一実施例である記憶領域管理装置の構成
を詳述してきたが、この記憶領域管理装置の割り付け処
理管理部によれば、当初空きブロックBLに順に領域を
割り付け、空きブロックBしがなくなると、続いて領域
の割り付けられているブロックBL中で空きの領域を有
するブロックBLを捜しこの空き領域に要求する領域を
割り付けるようなされている。このため、従来、空きブ
ロックBLがないために割り付けることができなかった
領域要求に対しても、夫々のブロックBLに分割された
空き領域の総和よりも要求量vが少なければ必ず割り付
けることができ、記憶領域3を有効に利用することがで
きる。また、こうした効果を有する記憶領域管理装置で
あっても、参照処理管理部15、解放処理管理部17に
みられるよう参照、解放管理が複雑化することなく簡単
である。The configuration of the storage area management device that is an embodiment of the present invention has been described in detail above.According to the allocation processing management unit of this storage area management device, areas are initially allocated to free blocks BL in order, When the area is exhausted, a block BL having an empty area is searched among the blocks BL to which areas have been allocated, and the requested area is allocated to this empty area. Therefore, even if an area request could not be allocated because there is no free block BL, it can always be allocated if the requested amount v is smaller than the sum of the free areas divided into each block BL. , the storage area 3 can be used effectively. Further, even in a storage area management device having such an effect, reference and release management are not complicated and simple as seen in the reference processing management section 15 and the release processing management section 17.
なお本発明の記憶領域管理装置は、前記実施例に何等限
定されるものでなく、前記実施例のような内部メモリに
替えて、例えば半導体ディスクメモリ、直接アクセス装
置等に対しても適用可能である。Note that the storage area management device of the present invention is not limited to the above-mentioned embodiments, and can be applied to, for example, semiconductor disk memories, direct access devices, etc. instead of the internal memory as in the above-mentioned embodiments. .
発明の効果
以上詳述してきた本発明の記憶領域管理装置は、従来空
きブロックがないために割り付けることができなかった
領域要求に対しても夫々のブロック内の空き領域を利用
することにより割り付け可能で、記憶領域を有効に利用
することができる。更に、こうした効果を奏するにもか
かわらずその割り付けの管理を始め、参照、解放管理等
の種々の領域管理を簡単に行なうことができる。Effects of the Invention The storage area management device of the present invention, which has been described in detail above, can allocate space requests that could not be allocated due to lack of free blocks by using the free space within each block. This allows you to use storage space effectively. Furthermore, in spite of these advantages, various area management such as allocation management, reference, and release management can be easily performed.
第1図は本発明の基本的構成を示すブロック図、第2図
は本発明の一実施例の構成を示すブロック図、第3図は
記憶領域管理テーブルの説明図、第4図はブロック管理
テーブルの説明図、第5図は要求元管理テーブルの説明
図、第6図は割り付け処理管理部にて実行される処理を
示すフローチャート、第7図は参照処理管理部にて実行
される処理を示すフローチャート、第8図は解放処理管
理部にて実行される処理を示すフローチャート、第9図
は従来技術を説明するための説明図、第10図は従来技
術の問題を説明するための説明図、である。
1・・・データ処理装置 3・・・記憶領域5・・・領
域要求部 7・・・領域管理部13・・・割り付け
処理管理部
21・・・記憶領域割り付けエリア
23・・・記憶領域管理情報エリア
BL・・・ブロックFigure 1 is a block diagram showing the basic configuration of the present invention, Figure 2 is a block diagram showing the configuration of an embodiment of the present invention, Figure 3 is an explanatory diagram of a storage area management table, and Figure 4 is block management. An explanatory diagram of the table, FIG. 5 is an explanatory diagram of the request source management table, FIG. 6 is a flowchart showing the processing executed by the allocation processing management section, and FIG. 7 is a flowchart showing the processing executed by the reference processing management section. FIG. 8 is a flowchart showing the processing executed by the release processing management unit, FIG. 9 is an explanatory diagram for explaining the prior art, and FIG. 10 is an explanatory diagram for explaining the problems of the prior art. , is. 1... Data processing device 3... Storage area 5... Area request unit 7... Area management unit 13... Allocation processing management unit 21... Storage area allocation area 23... Storage area management Information area BL...block
Claims (1)
求元が割り付け要求する領域を前記記憶領域にブロック
単位で割り付ける第1割り付け手段と、 前記第1割り付け手段によって割り付けられたブロック
を示すデータを作成して表示する第1表示手段と、 を備えた記憶領域管理装置において、 前記第1表示手段にて表示されたブロック中で前記割り
付け要求した領域が満たされていない空き領域を示すデ
ータを作成して表示する第2表示手段と、 前記第2表示手段にて表示されたデータに基づいて前記
空き領域を検出し、他の領域要求元が割り付け要求する
領域の一部もしくは全部を前記空き領域に割り付ける第
2割り付け手段と、 を設けたことを特徴とする記憶領域管理装置。[Scope of Claims] A first allocation means for dividing a storage area into blocks of a predetermined size and allocating an area requested by an area requester for allocation in the storage area in block units; and allocation by the first allocation means. a first display means for creating and displaying data indicating the allocated block; and a storage area management device comprising: a first display means for creating and displaying data indicating the allocated block; a second display means for creating and displaying data indicating a free space; and a second display means for detecting the free space based on the data displayed by the second display means, and detecting the free space and displaying one of the spaces requested for allocation by another space request source. A storage area management device comprising: second allocation means for allocating part or all of the data to the free area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12749187A JPS63292252A (en) | 1987-05-25 | 1987-05-25 | Storage area management device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12749187A JPS63292252A (en) | 1987-05-25 | 1987-05-25 | Storage area management device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63292252A true JPS63292252A (en) | 1988-11-29 |
Family
ID=14961270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12749187A Pending JPS63292252A (en) | 1987-05-25 | 1987-05-25 | Storage area management device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63292252A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0336868A (en) * | 1989-07-03 | 1991-02-18 | Matsushita Graphic Commun Syst Inc | Information communication equipment |
-
1987
- 1987-05-25 JP JP12749187A patent/JPS63292252A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0336868A (en) * | 1989-07-03 | 1991-02-18 | Matsushita Graphic Commun Syst Inc | Information communication equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2055295C (en) | Logical mapping of data objects using data spaces | |
CA2107387C (en) | Method and system for reducing memory allocation requests | |
JP2675967B2 (en) | Method and method for dynamically dividing cache | |
US6625710B2 (en) | System, method, and apparatus for providing linearly scalable dynamic memory management in a multiprocessing system | |
US5987582A (en) | Method of obtaining a buffer contiguous memory and building a page table that is accessible by a peripheral graphics device | |
US9086920B2 (en) | Device for managing data buffers in a memory space divided into a plurality of memory elements | |
US20140359248A1 (en) | Memory allocation improvements | |
EP0523863B1 (en) | Digital data processor for high level instructions | |
US6545684B1 (en) | Accessing data stored in a memory | |
GB2265734A (en) | Free memory cell management system | |
US5414826A (en) | System and method for memory management in microcomputer | |
JPH05210637A (en) | Method of simultaneously controlling access | |
US6831652B1 (en) | Method and system for storing graphics data | |
US20060112254A1 (en) | Satisfying memory allocation requests from memory pool or lookaside lists based on memory size requested to be allocated | |
WO2017142525A1 (en) | Allocating a zone of a shared memory region | |
CN117724991B (en) | Dynamic memory management method, system, terminal and storage medium of embedded system | |
US6144995A (en) | Data transfer method for logical computers | |
JPS63292252A (en) | Storage area management device | |
US7219210B2 (en) | Memory allocation to multiple computing units | |
US5761738A (en) | Computer system which stores management or control information in different address space but same offset as corresponding data | |
JP2583403B2 (en) | Backing store management method | |
JP2903605B2 (en) | File area management processing method | |
CN116301620A (en) | Data access method, data processing method and file system | |
JPH0869399A (en) | File management device | |
JP2735400B2 (en) | Asynchronous I/O control method |