JPH03263142A - Memory managing method - Google Patents
Memory managing methodInfo
- Publication number
- JPH03263142A JPH03263142A JP6293390A JP6293390A JPH03263142A JP H03263142 A JPH03263142 A JP H03263142A JP 6293390 A JP6293390 A JP 6293390A JP 6293390 A JP6293390 A JP 6293390A JP H03263142 A JPH03263142 A JP H03263142A
- Authority
- JP
- Japan
- Prior art keywords
- block
- memory
- management table
- bit
- unused
- 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
- 238000000034 method Methods 0.000 title description 2
- 238000007726 management method Methods 0.000 claims description 32
- 230000007423 decrease Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機システムのメモリ管理方法に間する。[Detailed description of the invention] [Industrial application field] The present invention relates to a memory management method for a computer system.
従来のメモリ管理方法では、ブロックの使用状況(使用
中/未使用)の管理をブロックのアドレスを管理するブ
ロック管理テーブルの中に含ませ、未使用ブロックを検
索するときは、ブロック管理テーブルを検索していた。In conventional memory management methods, management of block usage status (used/unused) is included in a block management table that manages block addresses, and when searching for an unused block, the block management table is searched. Was.
上述した従来のメモリ管理方法では、ブロックの使用中
/未使用の管理をブロックのアドレスを管理するブロッ
ク管理テーブルの中に含ませ、未使用ブロックを検索す
るときは、ブロック管理テーブルを上から順番に調べ、
ブロックの未使用を示すフラグのオン・オフを検圧する
ことによって行っていたため、未使用ブロックがブロッ
ク管理テーブルの後の方にしかない場合、検索に時間が
かかり、この結果メモリ確保に対する要求の効率が低下
することを免れない。In the conventional memory management method described above, the management of whether a block is in use or not is included in the block management table that manages the address of the block, and when searching for an unused block, the block management table is searched in order from the top. Investigate,
This was done by checking whether a flag indicating whether a block was unused was turned on or off, so if an unused block was located at the end of the block management table, it would take time to search, and as a result, the efficiency of requests for memory allocation would be reduced. It is inevitable that it will decline.
本発明のメモリ管理方法はブロック単位でメモリを管理
し、前記メモリのブロックのアドレス管理をブロック管
理テーブルで行い、前記メモリのブロックの使用状況の
管理を前記ブロック管理テ−プルとは別に設けた前記ブ
ロックをビットに対応させたテーブル上で前記ビットの
オン・オフ状態により行う構成である。The memory management method of the present invention manages memory in units of blocks, manages addresses of the memory blocks using a block management table, and manages usage status of the memory blocks separately from the block management table. This is performed based on the on/off state of the bits on a table in which the blocks correspond to bits.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
本発明の一実施例の構成を示す第1・図を参照すると、
このメモリ管理方法においては、メモリ3をブロック管
理テーブル2及びブロック使用状況管理テーブル1によ
りブロック単位に管理する。Referring to Figure 1, which shows the configuration of an embodiment of the present invention,
In this memory management method, the memory 3 is managed in units of blocks using a block management table 2 and a block usage status management table 1.
ここで、1ブロツクは何バイトでもよい、ブロック使用
状況管理テーブル1はメモリブロック対応に1ビツトが
割り当てられ、このビットのオン(“1”)/オフ(“
0”)によって対応するブロックの使用中/未使用の状
況が把握できる。また、そのビット位置が対応するメモ
リブロックの先頭アドレスを管理するブロック管理テー
ブル2のインデックスに対応しており、ブロック使用状
況管理テーブル1のiビット目はブロック管理テーブル
2のi番目のエントリが管理するメモリブロックの使用
中/未使用を示している。Here, one block can be any number of bytes. In the block usage management table 1, one bit is allocated for each memory block, and this bit can be turned on (“1”) or off (“1”).
0") allows you to know whether the corresponding block is in use or not. Also, the bit position corresponds to the index of the block management table 2 that manages the start address of the corresponding memory block, and the block usage status The i-th bit of the management table 1 indicates whether the memory block managed by the i-th entry of the block management table 2 is in use or not.
第2図は同実施例においてメモリ3の未使用ブロックを
確保するときの手順を示す、まず、ブロック使用状況管
理テーブル1をサーチしくSl)、未使用ブロックの有
無を判定する(S2)、即ち、ブロック使用状況管理テ
ーブル1中にオンビットがあるか否かを調べる。もし、
未使用ブロックが無ければエラーリターンする(S3)
、また、未使用ブロックが有れば、ブロック使用状況管
理テーブル1の中のオンピットのビット位置を調べ、そ
れをブロック番号としてレジスタ等に記憶する(S4)
、続いて、そのブロックが使用中になったことを示すた
め、ブロック使用状況管理テーブル1のブロック番号対
応のビット位置をオンにする(S5)、次に、ブロック
管理テーブル2のブロック番号対応位置のエントリを見
ることにより、確保したメモリブロックのブロックアド
レスを得る(S6)。FIG. 2 shows the procedure for securing an unused block in the memory 3 in the same embodiment. First, the block usage status management table 1 is searched (Sl), and the presence or absence of an unused block is determined (S2), i.e. , check whether there is an on bit in the block usage status management table 1. if,
If there are no unused blocks, return error (S3)
Also, if there is an unused block, check the on-pit bit position in the block usage status management table 1 and store it in a register etc. as a block number (S4).
Then, to indicate that the block is in use, turn on the bit position corresponding to the block number in block usage management table 1 (S5), and then turn on the bit position corresponding to the block number in block management table 2. By looking at the entry, the block address of the secured memory block is obtained (S6).
以上説明したように本発明によれば、1ブロツクを1ビ
ツトに対応させてそのビットのオン・オフによってブロ
ックの使用状況を識別するブロック使用状況管理テーブ
ルを設けることにより、メモリの未使用ブロックの検索
が高速にできる。また、ビット位置がブロックアドレス
を管理するブロック管理テーブルのインデックスとなる
ので、該当メモリブロックへのアクセスも速やかに行え
る。As explained above, according to the present invention, by providing a block usage status management table in which one block corresponds to one bit and the usage status of the block is identified by turning on/off that bit, unused blocks of memory can be saved. Search can be done quickly. Furthermore, since the bit position serves as an index of the block management table that manages block addresses, the corresponding memory block can be accessed quickly.
第1図及び第2図は本発明の一実施例を示す図である。
1・・・ブロック使用状況管理テーブル、2・・・ブロ
ック管理テーブル、3・・・メモリ。FIGS. 1 and 2 are diagrams showing one embodiment of the present invention. 1...Block usage status management table, 2...Block management table, 3...Memory.
Claims (1)
のアドレス管理をブロック管理テーブルで行い、前記メ
モリのブロックの使用状況の管理を前記ブロック管理テ
ーブルとは別に設けた前記ブロックをビットに対応させ
たテーブル上で前記ビットのオン・オフ状態により行う
ことを特徴とするメモリ管理方法。A table that manages memory in units of blocks, manages addresses of the memory blocks using a block management table, and manages the usage status of the memory blocks separately from the block management table, in which the blocks correspond to bits. A memory management method characterized in that the above is performed based on the on/off state of the bit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6293390A JPH03263142A (en) | 1990-03-13 | 1990-03-13 | Memory managing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6293390A JPH03263142A (en) | 1990-03-13 | 1990-03-13 | Memory managing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03263142A true JPH03263142A (en) | 1991-11-22 |
Family
ID=13214586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6293390A Pending JPH03263142A (en) | 1990-03-13 | 1990-03-13 | Memory managing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03263142A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06348584A (en) * | 1993-06-01 | 1994-12-22 | Internatl Business Mach Corp <Ibm> | Data processing system |
-
1990
- 1990-03-13 JP JP6293390A patent/JPH03263142A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06348584A (en) * | 1993-06-01 | 1994-12-22 | Internatl Business Mach Corp <Ibm> | Data processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7058642B2 (en) | Method and data structure for a low memory overhead database | |
US8402248B2 (en) | Explicitly regioned memory organization in a network element | |
JPS5898893A (en) | Information processing device | |
KR960018907A (en) | Apparatus and Method for Efficiently Sharing Virtual Storage Conversions | |
JP2002123424A5 (en) | ||
JPS61101851A (en) | Dynamic resource managing system of buffer memory area | |
JPH03263142A (en) | Memory managing method | |
US5410663A (en) | Method and system for cache memory congruence class management in a data processing system | |
JP2008511882A (en) | Virtual address cache and method for sharing data using unique task identifiers | |
JPH10240695A (en) | Operation using local storage device of plural unprocessed requests in sci system | |
JPS63163939A (en) | Control method for cache memory | |
JPH02193232A (en) | System for retrieving free area in file | |
JPH1091527A (en) | Storage device and storage medium | |
JPS6068443A (en) | Address converter | |
JP3157673B2 (en) | Virtual storage system | |
JPS63217446A (en) | Buffer control system | |
JPH01205250A (en) | Method for controlling cache memory | |
JPH04101272A (en) | Data element retrieving method | |
KR900010565A (en) | Information processing device | |
JPH06208502A (en) | Memory control method | |
JPH01223544A (en) | Page control processing system in data processing system | |
CA2293938A1 (en) | Memory pool control circuit and memory pool control method | |
JPH0315775B2 (en) | ||
JPH05225059A (en) | Cache memory management system | |
JPH06348658A (en) | Memory management system for multiprocessor system |