JPS61253530A - Control system for idle area of external memory - Google Patents

Control system for idle area of external memory

Info

Publication number
JPS61253530A
JPS61253530A JP60095409A JP9540985A JPS61253530A JP S61253530 A JPS61253530 A JP S61253530A JP 60095409 A JP60095409 A JP 60095409A JP 9540985 A JP9540985 A JP 9540985A JP S61253530 A JPS61253530 A JP S61253530A
Authority
JP
Japan
Prior art keywords
bit
level
areas
bitmap
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60095409A
Other languages
Japanese (ja)
Inventor
Makio Tanaka
田中 真生雄
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60095409A priority Critical patent/JPS61253530A/en
Publication of JPS61253530A publication Critical patent/JPS61253530A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management

Abstract

PURPOSE:To shorten a searching time and to reduce the conversion into scraps with a hierarchical bit map by controlling the idle state with plural pairs of bits defined as a unit. CONSTITUTION:For the bit map 21 of level 0, the bits (x01-x0n) have the 1:1 correspondence to the areas (y1-yn) of fixed sizes forming an external memory 1 respectively with a bit defined as a unit. The bit values (0)2 and (1)2 means the presence and absence of an idle area respectively. The bit maps 22 and 23 of levels 1 and 2 define two bits as a unit and each of bits (x11-x1m and x21-x2l) corresponds to two units of the bit map of a level lower by 1 step. Then the bit values (00)2, (01)2, (10)2 and (11)2 mean that all areas are idle, an idle area exists at a level lower by 1 step, an idle area exists at a level lower by 2 steps and all areas are busy respectively.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、コンピュータの外部記憶の三領域の管理方式
に関し、容量的に幅広い適用が可能である。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a management method for three areas of external storage of a computer, and can be widely applied in terms of capacity.

〔発明の背景〕[Background of the invention]

従来、コンピュータの外部記憶の三領域の管理方式の1
つとして、ビットマツプによる方式が知られている。こ
の方式は外部記憶の空の有無を管理する部分(ビットマ
ツプ)が小さいということが利点であるが、外部記憶が
大容量化した場合には、空の探索の性能が問題となる。
Conventionally, one of the three management methods for the external storage of a computer
One known method is a bitmap method. This method has the advantage that the part (bitmap) that manages whether or not the external storage is empty is small, but when the capacity of the external storage increases, the performance of searching for empty space becomes a problem.

この問題の解決策としてビットマツプを階層化すること
が有効であるが、階層化した場合には、空状態を表わす
ビットマツプを構成する意味が複雑となり、このために
新たな問題が発生する。
Hierarchizing bitmaps is an effective solution to this problem, but when layering bitmaps, the meaning of configuring a bitmap representing an empty state becomes complicated, which creates new problems.

即ち、階層の垂直方向と水平方向の探索時間の短縮と最
適な大きさの空の探索とが相反する関係において、性能
と断片化の問題が発生する。
That is, performance and fragmentation problems occur when reducing the search time in the vertical and horizontal directions of the hierarchy and searching the optimally sized sky are in conflict with each other.

n1ck/John J 、 Donovaり著の「オ
ペレーティング・システム」コンピュータ協会、コンピ
ュータサイエンス研究書シリーズ、京都大学情報工学科
助教授 池田克夫訳の第6章 情報管理がある。
n1ck/John J, "Operating Systems" by Donova, Computer Association, Computer Science Research Book Series, Assistant Professor, Department of Information Engineering, Kyoto University, Chapter 6, translated by Katsuo Ikeda There is information management.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、大容量の外部記憶の領域割当時に問題
となる三領域の探索の性能と断片化に対して、有効な外
部記憶の三領域の管理方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an effective three-area management method for external storage to address the three-area search performance and fragmentation that are problems when allocating areas for large-capacity external storage.

〔発明の概要〕[Summary of the invention]

本発明は、複数ビット対を1単位として空状態を表現す
る階層化されたビットマツプを外部記憶の三領域の管理
に適用した。複数ピット対の値は以下に示す意味をもた
せである。
In the present invention, a hierarchical bitmap that expresses an empty state using a plurality of bit pairs as one unit is applied to the management of three areas of external storage. The values of multiple pit pairs have the meanings shown below.

複数ビット対の値を1→=0〜ル)、複数ビット対が属
するレベルをg(l=o〜n)とすれば、複数ビット対
の値の意味は、 (+)i=oのとき、複数ビット対が属するレベルに空
がある。
If the value of multiple bit pairs is 1→=0~l), and the level to which the multiple bit pairs belong is g(l=o~n), then the meaning of the value of multiple bit pairs is when (+)i=o , the level to which the multiple bit pairs belong is empty.

(2)  0 < Z <ルのとき、(1;−i)レベ
ルに空がある。
(2) When 0 < Z < ru, there is an empty level at (1;-i).

(5)i=rbのとき、複数ビット対の属するレベルに
空がない。
(5) When i=rb, there is no vacancy in the level to which the plural bit pairs belong.

ここで、ルは複数ビット対の最大値である。Here, ru is the maximum value of multiple bit pairs.

この複数ビット対表現による階層化したビットマツプを
外部記憶の三領域の管理に適用した場合、三領域の探索
に関して、垂直および水平方向の探索が短縮できる。ま
た最適なサイズの三領域が得やすいという利点がある。
When this hierarchical bitmap based on a plurality of bit pair representations is applied to the management of the three areas of external storage, the search in the vertical and horizontal directions can be shortened with respect to the search of the three areas. Another advantage is that it is easy to obtain three areas of optimal size.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を第1図、第2図。 An embodiment of the present invention is shown in FIGS. 1 and 2 below.

第3図、第4図および第5図により説明する。This will be explained with reference to FIGS. 3, 4, and 5.

第1図は、外部記憶とビットマツプの構成および両者の
関係を示す図である。2は階層化ビットマツプ全体であ
り、各レベルのビットマツプ、21.22および25よ
り構成されている。
FIG. 1 is a diagram showing the configuration of an external storage and a bitmap, and the relationship between the two. 2 is the entire hierarchical bitmap, which is composed of bitmaps 21, 22, and 25 at each level.

21はレベル00ビツトマツプであり、1ビツトを1単
位とし、各ビット(!at〜3:on )は、外部記憶
1を構成する固定サイズの領域(y+〜yrc)と1対
1に対応し、ビットの値は次の意味をもつ0 (0)2 :空あり。
21 is a level 00 bit map, where one bit is one unit, and each bit (!at~3:on) has a one-to-one correspondence with a fixed size area (y+~yrc) constituting the external storage 1. The bit values have the following meanings: 0 (0) 2: Empty.

(1)2 :空なし。(1) 2: No sky.

22および23は、それぞれレベル1およびレベル2の
ビットマツプであり、2ビツト対を1単位とし、各ビッ
ト(x11〜x+n、 ”21〜J2z)は1つ下のレ
ベルのビットマツプの2単位に対応し、ビットの値は次
の意味をもつ。
22 and 23 are bitmaps of level 1 and level 2, respectively, where one unit is a pair of two bits, and each bit (x11 to x+n, "21 to J2z) corresponds to two units of the bitmap at the next lower level. , the bit values have the following meanings.

(00)2 :すべて空あり。(00)2: All empty.

(01)2 : 1つ下のレベルに空あり。(01)2: There is an empty level one level below.

(10)2 : 2つ下のレベルに空がある。(10) 2: There is a sky two levels below.

(11)2:すべて使用中で空がない。(11) 2: All are in use and there are no vacancies.

第2図は、スピット対の値が(00)2のときのビット
マツプの状態を示した例であり、23および220ビツ
ト対の値(00)2は、21にそれぞれ4単位および2
単位の空があることを示し、21は外部記憶1と1対1
に対応しているので、外部記憶1に4単位および2単位
の三領域があることを意味している。
FIG. 2 is an example showing the state of the bitmap when the value of the spit pair is (00)2.
Indicates that there is a unit empty, 21 is one-to-one with external memory 1
This means that the external storage 1 has three areas of 4 units and 2 units.

第6図は、2ビツト対の値が(11)2のときのビット
マツプの状態を示した例であり、23およヒ22のビッ
ト対の値(11)2は、21にそれぞれ4単位および2
単位の使用中の値のビット(1)2があることを示し、
外部記憶1に4単位と2単位の使用中の領域があること
を意味している。
FIG. 6 is an example showing the state of the bitmap when the value of the 2-bit pair is (11)2, and the value (11)2 of the bit pair of 23 and 22 is 4 units and 2
indicates that there is bit (1) 2 of the value in use for the unit;
This means that there are 4 units and 2 units of area in use in external storage 1.

第4図は、2ビツト対の値が(01)2のときのビット
マツプの状態を示した例であり、23および22のビッ
ト対の値(01)2は、22および21にそれぞれ1単
位の空があることを示し、外部記憶1に1単位および2
単位の三領域があることを意味している。
Figure 4 is an example showing the state of the bitmap when the value of the 2-bit pair is (01)2. Indicates that there is space, 1 unit and 2 in external storage 1
This means that there are three areas of units.

第5図は、2ビツト対の値が(10)2のときのビット
マツプの状態を示した例であり、23のビット対の値(
1す2は、22に空がなく、22より下、即ち21に空
があることを示し、外部記憶1に1単位の空饋域かある
ことを意味している。
Figure 5 shows an example of the state of the bitmap when the value of 2 bit pairs is (10)2, and the value of 23 bit pairs (
1 to 2 indicates that there is no vacancy in 22 and that there is vacancy below 22, that is, in 21, and means that there is 1 unit of empty space in external storage 1.

第6図は、階層化ビットマツプより三領域を探し出すア
ルゴリズムの1例である。入力は、Tであり、rはどの
レベルの空ビツト対を割当てるかを示し、内容はレベル
である。出力はpであり、三領域の先頭の位置をレベル
0のビット対の位置で示す。第6図において、処理1は
初期値の設定であり、iと)で最高レベルの先頭のビッ
ト対を示す。kは各レベルの最後のビット対の位置を示
し、初期値は、最高レベルのビットマツプの最後のビッ
ト対の位置!である(lは図1の23のx2tのlに対
応する)。処理2はxすの値がrを満足する空があるか
どうかの判定である。処理6は処理2の判定で空がない
ときにxりを次のビット対に変更することを示す。処理
4は、レベルの終りのビット対まで処理したかの判定で
ある。処理5はxりが空として割当てできるかの判定で
ある。処理6は、Xすを1つ下のレベルに変更すること
を示す。処理7は三領域かなかったときの出力情報の設
定でありPが−1のとき窒がない。処理8は三領域があ
ったときの出力情報の設定であり、pは三領域のレベル
0におけるビットの位置を示す。
FIG. 6 is an example of an algorithm for searching three areas from a hierarchical bitmap. The input is T, r indicates which level of empty bit pair to allocate, and the content is level. The output is p, which indicates the position of the beginning of the three areas by the position of the level 0 bit pair. In FIG. 6, process 1 is initial value setting, and i and ) indicate the top bit pair of the highest level. k indicates the position of the last bit pair of each level, and the initial value is the position of the last bit pair of the highest level bitmap! (l corresponds to 23x2t in FIG. 1). Process 2 is to determine whether there is a sky where the value of x satisfies r. Process 6 indicates that when there is no vacancy as determined in process 2, x-ri is changed to the next bit pair. Processing 4 is a determination as to whether the bit pair at the end of the level has been processed. Process 5 is a determination as to whether x can be assigned as empty. Process 6 indicates changing the level of X to one level lower. Process 7 is the setting of output information when there are no three areas, and when P is -1, there is no output. Process 8 is the setting of output information when there are three areas, and p indicates the position of the bit at level 0 of the three areas.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、階層化されたビットマツプの最上位レ
ベルから下位レベルに対して空を探索すれば、最上位レ
ベルの探索時に、どのレベルに空があるかを、判別でき
る利点があり、探索時間の短縮が計れる効果がある。ま
た下のレベルに空があるかどうかの判別ができるという
点において、断片化の緩和が計れるという効果がある。
According to the present invention, if the sky is searched from the top level of a hierarchical bitmap to the lower levels, there is an advantage that when searching the top level, it is possible to determine at which level the sky is located. This has the effect of reducing time. It also has the effect of alleviating fragmentation in that it can be determined whether there is space at a lower level.

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

第1図は本発明の一実施例の外部記憶とビットマツプの
構成と両者の関係説明図、第2図。 第3図、第4図および第5図は、ビットマツプの2ビツ
ト対の値とビットマツプの状態の関係説明図、第6図は
階層化されたビットマツプより三領域を探し出すアルゴ
リズムの例を示す構成図である。 1・・・外部記憶、 番・・・階層化ビットマツプのレベル、r・・・割当て
るサイズ。 ′:、11−
FIG. 1 is an explanatory diagram of the structure of an external storage and a bitmap according to an embodiment of the present invention and the relationship between the two, and FIG. Figures 3, 4, and 5 are explanatory diagrams of the relationship between the values of 2-bit pairs of a bitmap and the state of the bitmap, and Figure 6 is a block diagram showing an example of an algorithm for searching three areas from a hierarchical bitmap. It is. 1...External storage, Number...Level of hierarchical bitmap, r...Size to be allocated. ':, 11-

Claims (1)

【特許請求の範囲】[Claims] 1、階層化されたビットマップにおいて、複数ビット対
を1単位として、空状態を管理することを特徴とする外
部記憶の三領域の管理方式。
1. A management method for three areas of external storage, which is characterized by managing empty states in a hierarchical bitmap, using multiple bit pairs as one unit.
JP60095409A 1985-05-07 1985-05-07 Control system for idle area of external memory Pending JPS61253530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60095409A JPS61253530A (en) 1985-05-07 1985-05-07 Control system for idle area of external memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60095409A JPS61253530A (en) 1985-05-07 1985-05-07 Control system for idle area of external memory

Publications (1)

Publication Number Publication Date
JPS61253530A true JPS61253530A (en) 1986-11-11

Family

ID=14136875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60095409A Pending JPS61253530A (en) 1985-05-07 1985-05-07 Control system for idle area of external memory

Country Status (1)

Country Link
JP (1) JPS61253530A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728693A (en) * 1993-06-30 1995-01-31 Microsoft Corp Variant buddy system for controlling disk space
WO2010143364A1 (en) * 2009-06-11 2010-12-16 株式会社エスグランツ Partition management device, partition management method, and program
JP2011216111A (en) * 2011-07-12 2011-10-27 S Grants Co Ltd Device, method and program for managing section
US9619151B2 (en) 2009-06-11 2017-04-11 Makoto Yoshioka Region management apparatus, region management method, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728693A (en) * 1993-06-30 1995-01-31 Microsoft Corp Variant buddy system for controlling disk space
WO2010143364A1 (en) * 2009-06-11 2010-12-16 株式会社エスグランツ Partition management device, partition management method, and program
JP2010287066A (en) * 2009-06-11 2010-12-24 S Grants Co Ltd Device, method and program for managing section
US9619151B2 (en) 2009-06-11 2017-04-11 Makoto Yoshioka Region management apparatus, region management method, and program
JP2011216111A (en) * 2011-07-12 2011-10-27 S Grants Co Ltd Device, method and program for managing section

Similar Documents

Publication Publication Date Title
JP2007523412A (en) Memory allocation
US10649967B2 (en) Memory object pool use in a distributed index and query system
CN108845958B (en) System and method for interleaver mapping and dynamic memory management
CN108664577B (en) File management method and system based on FLASH idle area
CN108647278B (en) File management method and system
JPS61253530A (en) Control system for idle area of external memory
CN112506813B (en) Memory management method and system
MXPA03007658A (en) Bt sorting method and apparatus for large volumes of seismic data.
JPH0277949A (en) File producing method
JPH0887433A (en) Block management system of file system
CN111026890A (en) Picture data storage method, system, device and storage medium based on index table
JP2613961B2 (en) Index division rate change processing method
JPS61216016A (en) Area control system for data base
JPH0247735A (en) Computer device
CN116483740B (en) Memory data migration method and device, storage medium and electronic device
JP5377001B2 (en) MEMORY MANAGEMENT SYSTEM, ELECTRONIC DEVICE, AND MEMORY MANAGEMENT PROGRAM
JPH0962564A (en) Buffer allocation control system
JPS63192126A (en) Processing system for space control of data set
JPH02252035A (en) System for allocating file in area of magnetic disk
JPH05197599A (en) File space management system
CN117909403A (en) Airborne database resource management method and device based on data characteristics
JPH0244438A (en) File area allocation system
JPS62274420A (en) Automatic allocating system for data set
CN113688063A (en) Method and equipment for allocating storage address for data in memory
JPS6364146A (en) Logical space control system