JPH06214874A - Memory managing system - Google Patents

Memory managing system

Info

Publication number
JPH06214874A
JPH06214874A JP424093A JP424093A JPH06214874A JP H06214874 A JPH06214874 A JP H06214874A JP 424093 A JP424093 A JP 424093A JP 424093 A JP424093 A JP 424093A JP H06214874 A JPH06214874 A JP H06214874A
Authority
JP
Japan
Prior art keywords
memory
information
area
storage area
management information
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
JP424093A
Other languages
Japanese (ja)
Inventor
Shuichi Sato
修一 佐藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP424093A priority Critical patent/JPH06214874A/en
Publication of JPH06214874A publication Critical patent/JPH06214874A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a memory managing system which improves the efficiency of the use by compressing invalid areas as much as possible while securing and releasing information storage areas on a memory as needed. CONSTITUTION:Corresponding to the secure request of information (x), a memory allocation controller 2 secures an empty area B on a memory 6 from the retrieved result of memory managing information 52 generated by a retrieving device 3, stores the address and the secured amount in memory managing information (y) corresponding to the information (x) on memory allocation managing information 51, sets a relevant flag under use, erases the address and the secured amount of memory managing information (b) corresponding to certain information (a) concerning the release request of this information (a) and sets the relevant flag to non-use. On the other hand, corresponding to a memory compaction request, this device 2 copies contents in the storage area settled in the relevant area to the empty area on the memory recognized through the retrieving device 3 by using a memory content copying device 4, and the address on memory managing information 52 is reloaded with the address of the copy destination.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、サービスを提供するた
めに必要な情報を記憶するエリアを、その情報が必要と
なった時点でメモリ上に確保し、不要となった時点でそ
の記憶エリアを上記メモリ上から解放する動的なメモリ
管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention secures an area for storing information necessary for providing a service in a memory when the information is needed and stores the area when the information is no longer needed. The present invention relates to a dynamic memory management method for releasing the above from the above memory.

【0002】[0002]

【従来の技術】あるサービスを提供するために必要な情
報をメモリに記憶するためのメモリ管理方式として、提
供すべきサービスに対応する全ての情報の記憶エリアを
予め一括確保しておく静的記憶管理方式と、ある一定の
記憶容量のメモリエリアを用意しておき、サービスを提
供する時点で必要なエリアをそのメモリエリア上に確保
し、かつ不要となった時点で対応する記憶エリアを解放
する動的記憶管理方式が知られている。
2. Description of the Related Art As a memory management system for storing information necessary for providing a certain service in a memory, static storage in which a storage area for all information corresponding to a service to be provided is secured in advance in advance. A management method and a memory area with a certain storage capacity are prepared, a necessary area is secured in the memory area when a service is provided, and the corresponding storage area is released when it is no longer needed. A dynamic memory management system is known.

【0003】このうち、静的記憶管理方式では、予め必
要な全エリアを最初から確保しておくことから、絶対的
なメモリ容量が増大し、しかもサービスを利用していな
いにも関わらずメモリが確保されることによって、メモ
リの利用効率低下を避けられなかった。これに対して、
動的記憶管理方式では、ある記憶容量を持つメモリ上で
記憶エリアの確保と解放を繰り返す方式のために、メモ
リの利用効率の観点からは圧倒的に有利である。
Of these, in the static storage management system, since all necessary areas are secured in advance from the beginning, the absolute memory capacity increases, and even if the service is not used, the memory capacity is increased. As a result of being secured, a decrease in memory usage efficiency cannot be avoided. On the contrary,
The dynamic storage management method is overwhelmingly advantageous in terms of memory utilization efficiency because it is a method of repeatedly securing and releasing a storage area on a memory having a certain storage capacity.

【0004】しかしながら、この動的記憶管理方式で
は、異なった容量の記憶エリアの確保と解放を繰り返す
ことによって、使用中のエリアと未使用のエリアが不連
続に現れ、使用中のエリアの間に小さな空きエリアが現
れるフラグメンテーションの発生を免れず、この点がメ
モリの利用効率向上の妨げとなっている。すなわち、フ
ラグメンテーションの発生時には、使用中エリアの間の
小さな空きエリアは利用価値のないエリアとしてメモリ
内に介在するため、メモリの浪費を助長し、要求された
必要エリアが確保できず、サービスの提供不能に陥る場
合がある。
However, in this dynamic storage management system, by repeatedly securing and releasing storage areas having different capacities, areas in use and unused areas appear discontinuously, and areas between the areas in use are in use. Fragmentation, in which a small free area appears, is unavoidable, which hinders the improvement of memory utilization efficiency. In other words, when fragmentation occurs, a small empty area between the areas in use intervenes in the memory as an area with no utility value, which promotes waste of memory and the required area cannot be secured, thus providing services. It may be impossible.

【0005】そこで、このフラグメンテーションに起因
するサービス不能の事態解決のためには、メモリ上の使
用中のエリアを未使用のエリアへ移動し、より大きな未
使用エリアを作成するいわゆるメモリコンパクションが
不可欠となる。ところが、このメモリコンパクションを
実施するに際しては、メモリ上における空きエリアと記
憶エリアのアドレスあるいは容量関係を把握する必要が
ある。
Therefore, in order to solve the denial of service situation caused by this fragmentation, so-called memory compaction for moving a used area on a memory to an unused area and creating a larger unused area is indispensable. Become. However, when carrying out this memory compaction, it is necessary to grasp the address or capacity relationship between the empty area and the storage area on the memory.

【0006】この点に関して、従来の動的メモリ管理方
式では、メモリを確保する際、どのサービスを提供する
ための情報がどのエリアに割り当てられたかが管理され
ておらず、上述したメモリ使用条件を把握するために
は、直接メモリにアクセスし、当該メモリ上に確保され
たエリアのアドレスを参照する以外になかった。
In this regard, in the conventional dynamic memory management system, when allocating a memory, it is not managed which information for providing which service is allocated to which area, and the above-mentioned memory use condition is grasped. The only way to do this is to access the memory directly and refer to the address of the area secured in the memory.

【0007】このため、この種の従来のメモリ管理方式
では、確保したエリアを解放する時点でしかメモリのコ
ンパクションを行うことができず、フラグメンテーショ
ンが増大する傾向が強かった。従って、記憶容量の極め
て小さい無効エリアの介在によって、メモリの利用効率
向上に限界を生じ、要求されたエリアが確保できず、メ
モリ不足からサービスを提供できなくなるケースが少な
くなかった。
Therefore, in the conventional memory management system of this type, the compaction of the memory can be performed only when the secured area is released, and the fragmentation tends to increase. Therefore, due to the existence of an invalid area having a very small storage capacity, there is a limit in improving the utilization efficiency of the memory, the requested area cannot be secured, and the service cannot be provided due to lack of memory.

【0008】[0008]

【発明が解決しようとする課題】このように、動的メモ
リ管理方式はメモリ利用効率の面で優れるが、異なった
容量の記憶エリアの確保と解放を繰り返すことによっ
て、使用中のエリアと未使用のエリアが不連続に現れ、
使用中のエリアの間に小さな空きエリアが現れるフラグ
メンテーションの発生を免れない。このフラグメンテー
ションは無効エリアを増大し、要求された必要エリアを
確保できない状況を招来せしめることから、メモリ効率
を更に高めようとした場合には、使用中のエリアを未使
用のエリアへ移動し、より大きな未使用エリアを作成す
るメモリのコンパクションをいかに効率よく行うかが鍵
となる。
As described above, the dynamic memory management system is excellent in memory utilization efficiency, but by repeatedly securing and releasing storage areas having different capacities, the areas in use and unused areas are not used. Areas appear discontinuously,
Inevitably the occurrence of fragmentation, where small empty areas appear between the areas in use. Since this fragmentation increases the invalid area and causes the situation where the required area required cannot be secured, if the memory efficiency is to be further improved, the used area is moved to the unused area, and The key is how to efficiently perform the compaction of the memory that creates a large unused area.

【0009】この種の従来の動的記憶管理方式では、メ
モリ上にある情報の記憶エリアを確保する際、どの情報
がどの記憶エリアに割り当てられたかが管理されておら
ず、直接メモリ上に確保されたエリアのアドレスを参照
することによってメモリ使用状況を把握するようにして
いたため、確保した記憶エリアを解放する時点でしかメ
モリのコンパクションを行えず、フラグメンテーション
の不完全な整理によって要求されたエリアが確保でき
ず、メモリ不足からサービス提供不能に陥る場合が少な
くないという問題点があった。
In the conventional dynamic storage management system of this type, when the storage area of the information in the memory is secured, it is not managed which information is allocated to which storage area, but is directly secured in the memory. Since the memory usage status is grasped by referring to the address of the reserved area, the memory can be compacted only at the time of releasing the reserved storage area, and the requested area is secured by the incomplete arrangement of fragmentation. There was a problem that it was not possible to do so, and there were not a few cases where the service could not be provided due to lack of memory.

【0010】本発明は上記問題点を除去し、ある情報の
記憶エリアを必要に応じてメモリ上に確保しかつ解放し
ながらメモリを動的に管理する場合に、フラグメンテー
ションの整理に完全を期し、無効エリアを極力圧縮した
より使用効率の高いメモリ管理方式を提供することを目
的とする。
The present invention eliminates the above problems, and when the memory is dynamically managed while securing and releasing a certain information storage area on the memory as necessary, the fragmentation is completely arranged, It is an object of the present invention to provide a memory management system which has a higher usage efficiency by compressing invalid areas as much as possible.

【0011】[0011]

【課題を解決するための手段】本発明は、ある情報が必
要とされた時点で当該情報の記憶エリアをメモリ上に確
保し、かつある情報が不要となった時点で前記メモリ上
から当該情報の記憶エリアを解放しつつ前記メモリを動
的に管理するメモリ管理方式において、メモリ上のどの
記憶エリアがどの情報のために確保されているかを管理
する管理情報を記憶する管理情報記憶手段と、記憶エリ
アの確保に際しては少なくとも当該記憶エリアのアドレ
スと確保量を前記管理情報上に記録するとともに、記憶
エリアの解放に際しては当該記憶エリアに対応する管理
情報を未使用の状態に更新する管理情報更新登録手段
と、前記管理情報記憶手段内の管理情報を参照して前記
メモリ内における記憶エリアの使用状況を検索する検索
手段とを具備し、前記メモリに対する情報の記憶エリア
の確保または解放を、前記検索手段による前記管理情報
の検索結果に基づいて実施するようにしたことを特徴と
する。
SUMMARY OF THE INVENTION The present invention secures a storage area for a certain piece of information in a memory at the time when the certain information is needed, and from the memory when the certain information becomes unnecessary. In a memory management system for dynamically managing the memory while releasing the storage area of the management memory, management information storage means for storing management information for managing which storage area on the memory is reserved for which information, At the time of securing the storage area, at least the address of the storage area and the secured amount are recorded on the management information, and at the time of releasing the storage area, the management information corresponding to the storage area is updated to an unused state. And a searching unit for searching the use status of the storage area in the memory with reference to the management information in the management information storage unit. To secure or release the storage area of the information to the memory, characterized by being adapted to implement based on the search result of the management information by the search means.

【0012】望ましくは、本発明は、メモリ内のあるエ
リアの内容を他のエリアに複写する複写手段を更に具備
し、所定のメモリコンパクション要求に対し、前記検索
手段の検索結果に基づき前記メモリ上の各記憶エリアが
連続となるように当該各記憶エリアの内容を未使用エリ
アに複写せしめ、かつ当該複写された記憶エリアに対応
するメモリ管理情報上のアドレスを複写先のアドレスに
書き換えるようにしたことを特徴とする。
Preferably, the present invention further comprises a copying means for copying the contents of a certain area in the memory to another area, and in response to a predetermined memory compaction request, the contents of the memory are stored in the memory based on the search result of the searching means. The contents of each storage area are copied to an unused area so that each storage area becomes continuous, and the address on the memory management information corresponding to the copied storage area is rewritten to the copy destination address. It is characterized by

【0013】[0013]

【作用】本発明では、メモリ上のどの記憶エリアがどの
情報のために確保されているかを管理する管理情報を用
い、メモリ上におけるある情報に関しての記憶エリアの
確保あるいは解放を、上記管理情報に従って処理するよ
うにしたものである。
According to the present invention, management information for managing which storage area on the memory is reserved for which information is used, and securing or releasing of the storage area for certain information on the memory is performed according to the management information. It is designed to be processed.

【0014】また、本発明では、メモリコンパクション
要求を受けた場合、上記管理情報を基にして、メモリの
空きエリアと確保済みの記憶エリアとの容量関係を把握
し、メモリ空きエリアに収まる容量内で他の記憶エリア
の内容を複写し、その際、複写した記憶エリアに対応す
る管理情報上のアドレスを複写先のアドレスに書き換え
る処理を、記憶エリアが連続となるまで繰り返し実施す
るようにしたものである。
Further, according to the present invention, when a memory compaction request is received, the capacity relationship between the free area of the memory and the secured storage area is grasped based on the management information, and the capacity within the free area of the memory is accommodated. Copying the contents of another storage area with, and then rewriting the address in the management information corresponding to the copied storage area to the copy destination address until the storage area becomes continuous Is.

【0015】なお、上記管理情報は、例えばメモリ上に
確保された記憶エリアのアドレスと確保された容量及び
使用状態を示すフラグ等からなるメモリ管理情報と、記
憶エリアを確保する必要のあった情報毎に前記メモリ管
理情報のどの情報と対応するか示すメモリ割り当て管理
情報とにより構成される。
The management information is, for example, memory management information including an address of a storage area reserved on the memory, a reserved capacity and a flag indicating a used state, and information required to reserve the storage area. Each of them is composed of memory allocation management information indicating which information of the memory management information corresponds.

【0016】本発明によれば、メモリを確保するに際、
従来の装置のように直接メモリ上に確保されたアドレス
を参照しなくても、上記管理情報にアクセスすること
で、どのサービスを提供する情報がメモリ上のどの記憶
エリアに確保されているかを管理することができ、メモ
リ確保の迅速化とフラグメンテーションの低減を図るこ
とができる。
According to the present invention, when allocating a memory,
It is possible to manage which service is provided in which storage area in the memory by accessing the management information without referring to the address secured in the memory as in the conventional device. Therefore, it is possible to speed up memory allocation and reduce fragmentation.

【0017】更に、どの情報がどのエリアに割り当てら
れたかを、直接メモリ上に確保されたエリアのアドレス
を利用せずに管理できる点を利用して、従来、メモリを
解放する時点でしか行えなかったメモリコンパクション
を、当該メモリの解放時点は言うに及ばず、各情報にア
クセスを行っていない例えばシステムの立ち上がり時点
等においても全エリアを対象として実施でき、散在する
小規模な未使用エリアを十分に圧縮しながら、メモリの
未使用エリアの不足によりサービス不能に陥る事態を大
幅に低減できるようになる。
Further, conventionally, it can be performed only at the time of releasing the memory by utilizing the fact that which information is assigned to which area can be managed without directly using the address of the area secured on the memory. Memory compaction can be performed not only at the time when the memory is released, but also at the time when the information is not accessed, such as when the system starts up. While compressing, it is possible to significantly reduce the situation where the service becomes unavailable due to lack of unused area in the memory.

【0018】[0018]

【実施例】以下、本発明の一実施例を添付図面を参照し
て詳細に説明する。図1は本発明のメモリ管理方式を適
用したメモリ制御システムの一実施例を示すブロック図
であり、その制御対象としては例えば交換システム内に
用意されたされたメモリ6が当てられている。このメモ
リ6上における情報記憶エリアの確保または解放の処理
を制御する周辺装置として、1は全体の制御を行うCP
U、2は各サービスの提供に必要な情報のメモリ6上に
おけるメモリ割り当て処理を制御するメモリ割り当て制
御装置、3はメモリ6上の空きエリアを後述するメモリ
管理情報を用いて検索する検索装置、4はメモリ6上の
指定された記憶エリアの内容を指定された未使用エリア
へ複写するメモリ内容複写装置、5はメモリ6における
情報記憶エリアの確保または解放を管理するために用い
る本発明特有のメモリ管理情報及びメモリ割り当て管理
情報を記憶する管理情報メモリである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a block diagram showing an embodiment of a memory control system to which the memory management system of the present invention is applied, and a control target thereof is, for example, a memory 6 prepared in a switching system. As a peripheral device for controlling the process of securing or releasing the information storage area on the memory 6, 1 is a CP for controlling the whole.
U and 2 are a memory allocation control device that controls a memory allocation process of information necessary for providing each service on the memory 6, and 3 is a search device that searches a free area on the memory 6 by using memory management information described later, Reference numeral 4 is a memory content copying device for copying the contents of a designated storage area on the memory 6 to a designated unused area, and 5 is a device specific to the present invention used for managing the securing or releasing of the information storage area in the memory 6. It is a management information memory for storing memory management information and memory allocation management information.

【0019】このメモリ制御システムは、ある情報が必
要とされた時点で当該情報の記憶エリアをメモリ6上に
確保し、かつある情報が不要となった時点でメモリ6上
から当該情報の記憶エリアを解放しつつ当該メモリ6を
動的に管理するメモリ管理方式によって運用されるが、
このメモリ管理用の制御パラメータとして、当該メモリ
制御システムでは上記管理情報メモリ5にメモリ管理情
報とメモリ割り当て管理情報とを保持している。
This memory control system secures a storage area of the information in the memory 6 when a certain information is required and stores the storage area of the information in the memory 6 when the certain information becomes unnecessary. It is operated by a memory management system that dynamically manages the memory 6 while releasing the
In the memory control system, the management information memory 5 holds the memory management information and the memory allocation management information as control parameters for the memory management.

【0020】図2は、図1に示したメモリ制御システム
の概念的構成を示したものであり、同図において、51
-1,51-2はサービスを提供するために必要な情報毎に
用意されたメモリ割り当て管理情報であり、52は上記
メモリ割り当て管理情報51-1,51-2をインデックス
として検索可能なメモリ管理情報である。
FIG. 2 shows a conceptual configuration of the memory control system shown in FIG. 1. In FIG.
-1, 51-2 are memory allocation management information prepared for each information required for providing a service, and 52 is a memory management that can be searched using the memory allocation management information 51-1, 51-2 as an index. Information.

【0021】更に、図3は上記メモリ管理情報の一構成
例を示したものであり、メモリ6の該当するエリアが確
保(使用中)されているか解放(未使用)されているか
の状態を示すフラグ、要求に基づきメモリ6上に確保さ
れた記憶エリアのメモリ確保量、メモリ6上の各記憶エ
リアのアドレスの少なくとも3つの情報をその構成要素
として持っている。
Further, FIG. 3 shows an example of the structure of the memory management information, and shows whether the corresponding area of the memory 6 is reserved (in use) or released (unused). It has at least three pieces of information, which are a flag, a memory reservation amount of a storage area reserved on the memory 6 based on a request, and an address of each storage area on the memory 6, as its constituent elements.

【0022】次に、このメモリ制御システムにおけるメ
モリ管理方式の基本的な処理動作を図2を参照して詳述
する。まず、あるサービスを提供するために必要な情報
xの確保要求がなされた場合、その要求をCPU1を介
して受け取った検索装置3はメモリ管理情報52中から
空きエリアを検索する。この検索の結果、未使用である
メモリエリアGが確保の対象された場合、当該検索結果
を受けたメモリ割り当て制御装置2では、メモリエリア
Gを要求された容量であるメモリエリアHと残りのメモ
リエリアIとに分割したうえで前者を確保し、この確保
したメモリエリアHのアドレスとその確保した容量をメ
モリ確保要求情報xに対応するメモリ管理情報yのアド
レス情報およびメモリ確保量欄にそれぞれ記録し、これ
と同時に対応するフラグを使用中に設定する(図3参
照)。
Next, the basic processing operation of the memory management system in this memory control system will be described in detail with reference to FIG. First, when a request to secure the information x necessary for providing a certain service is made, the search device 3 that has received the request via the CPU 1 searches the memory management information 52 for a free area. As a result of this search, when an unused memory area G is secured, the memory allocation control device 2 that receives the search result receives the memory area G from the requested memory area H and the remaining memory area. The former is secured after being divided into the area I, and the address of the secured memory area H and the secured capacity thereof are recorded in the address information and memory reserved amount columns of the memory management information y corresponding to the memory reserved request information x, respectively. At the same time, the corresponding flag is set during use (see FIG. 3).

【0023】また、サービスの提供中断に伴い情報aの
解放要求がなされた場合、CPU1を介してその要求を
受けたメモリ割り当て装置2は、当該情報aに対応する
メモリ管理情報bのアドレス及び確保量を指標としてメ
モリ6上の該当記憶エリアから上記情報aを消去し、こ
れと同時に対応するフラグを未使用に設定する。
When a request for releasing the information a is made due to the interruption of the service provision, the memory allocating device 2 which has received the request via the CPU 1 secures the address and the memory management information b corresponding to the information a. The information a is erased from the corresponding storage area on the memory 6 using the amount as an index, and at the same time, the corresponding flag is set to unused.

【0024】以上の如く、エリア確保要求および解放要
求に従ってその都度メモリ6上での記憶エリアの確保と
解放を実施することで、比較的小量用のメモリ6であり
ながらその使用効率を飛躍的に高めた運用が実現でき
る。その際、要求される確保エリアサイズと解放エリア
サイズは異なるケースが一般的であり、これによりメモ
リ6上には例えば図2に示すように使用中エリアA,C
やD,F間に小さな未使用エリアB,Eが現れいわゆる
フラグメンテーションが発生することになる。
As described above, by securing and releasing the storage area on the memory 6 in accordance with the area securing request and the releasing request, the use efficiency of the memory 6 can be dramatically increased even though the memory 6 is a relatively small amount. It is possible to realize highly improved operation. At this time, the required secured area size and the released area size are generally different, which allows the areas in use A and C on the memory 6, for example, as shown in FIG.
Small unused areas B and E appear between D, D, and F, and so-called fragmentation occurs.

【0025】これら使用中エリア間に介在する小さな空
きエリアは利用価値のないエリアとなってメモリの浪費
を助長することから、このようなフラグメンテーション
の発生に際して、通常は、メモリ6上の使用中のエリア
を未使用のエリアへ移動し、より大きな未使用エリアを
作成するいわゆるメモリコンパクションという措置が講
じられることになる。
Since a small empty area interposed between these in-use areas becomes an area of no use value and promotes the waste of memory, when such fragmentation occurs, it is normally used on the memory 6. A so-called memory compaction will be taken to move the area to an unused area and create a larger unused area.

【0026】次に、本発明のメモリ管理方式に従って実
施されるメモリコンパクション処理について図4を参照
して説明する。今、上述の如く異なるサイズのエリア確
保要求および解放要求に従った記憶エリアの確保及び解
放処理が繰り返し実行された結果、メモリ6上に小さな
空き領域が発生し、当該メモリ6上の使用中のエリアを
連続とするため、メモリコンパクションが要求されたも
のとする。
Next, the memory compaction processing executed according to the memory management system of the present invention will be described with reference to FIG. Now, as a result of repeatedly executing the storage area securing and releasing processing according to the area securing request and the release request of different sizes as described above, a small free area is generated in the memory 6, and the memory 6 is being used. Since the area is continuous, memory compaction is required.

【0027】このメモリコンパクション要求を例えば図
4(a)に示す如くのメモリ使用状況下で受け取ったメ
モリ割り当て制御装置2では、検索装置3に指示してメ
モリ管理情報52からメモリ6上の未使用のエリアを検
索する。この検索の結果、メモリエリアBが空きエリア
として検索された場合、次いでメモリ割り当て制御装置
2は、このメモリエリアB以降で、容量が当該メモリエ
リアBの大きさを超えない使用中エリアを検索装置3を
用いて検索させる。
In the memory allocation control device 2 which has received this memory compaction request under the memory use condition as shown in FIG. 4A, the search device 3 is instructed to use the memory management information 52 and the unused memory 6 in the memory 6. Search for areas. As a result of this search, when the memory area B is searched as an empty area, the memory allocation control device 2 then searches for a used area whose capacity does not exceed the size of the memory area B after this memory area B. Search using 3.

【0028】この検索の結果、メモリエリアCが検索さ
れた場合、CPU1ではメモリ内容複写装置4を起動し
てメモリエリアCの内容をメモリエリアBへ複写させ、
メモリ管理情報52上のアドレス情報をメモリエリアC
からメモリエリアBのアドレスへと書き換える。この処
理をメモリ6上の使用中エリアが連続となるまで繰り返
した時の当該メモリ6の使用状況を示したものが図4
(b)である。同図において、メモリエリアJからメモ
リエリアMまでが連続した使用中エリアとしてまとめら
れ、これら使用中エリアの後方に、同図(a)に示す未
使用エリアB,E,I等をまとめた容量に相当する未使
用エリアNが新たに確保されている。
When the memory area C is found as a result of this search, the CPU 1 activates the memory content copying device 4 to copy the contents of the memory area C to the memory area B,
The address information on the memory management information 52 is stored in the memory area C.
To the address of memory area B. FIG. 4 shows the usage status of the memory 6 when this process is repeated until the in-use area on the memory 6 becomes continuous.
It is (b). In the figure, a memory area J to a memory area M are collected as a continuous area in use, and the unused areas B, E, I shown in FIG. An unused area N corresponding to is newly secured.

【0029】かかるメモリ6の使用状況下では、同図
(a)に示す如く小さな未使用エリアB,E,I等が分
散していた時には受け付けることができなかったメモリ
確保要求に対しても、これらをまとめたメモリエリアN
を利用して対処可能となり、メモリ6の使用効率を更に
高めることができる。
Under the use condition of the memory 6, even when the small unused areas B, E, I, etc. are dispersed as shown in FIG. Memory area N that summarizes these
Can be dealt with, and the use efficiency of the memory 6 can be further improved.

【0030】このように、本発明では、サービスを提供
するために必要な情報がメモリ上のどのアドレスに割り
当てられたかを示すアドレス情報とその必要とする記憶
容量などによって構成されるメモリ管理情報と、サービ
スを提供するために必要な情報毎にメモリ管理情報上の
どの情報と対応するかを管理するメモリ割り当て管理情
報を用いることによって、メモリ上に記憶エリアを確保
する際、どのサービスを提供するための情報がどのエリ
アに割り当てられたかを簡単かつ正確に管理することが
できる。
As described above, according to the present invention, the address information indicating to which address on the memory the information necessary for providing the service is allocated, and the memory management information constituted by the required storage capacity and the like. , Which service is provided when a storage area is secured in the memory by using memory allocation management information for managing which information on the memory management information corresponds to each information required for providing the service It is possible to easily and accurately manage the area to which the information for allocation is assigned.

【0031】また、本発明では、サービスを提供するた
めに必要な情報に応じて確保されたメモリ上のアドレス
をメモリ割り当て管理情報とメモリ管理情報から検索す
る装置を利用して確保されたアドレス情報を知ること
で、直接メモリ上に確保されたエリアのアドレスを参照
することを防止でき、しかもメモリコンパクションによ
るメモリエリアの移動によるアドレス変更がメモリ管理
情報内のアドレス情報が変更されるのみで済むことか
ら、メモリエリアの移動による影響を最小限に止めるこ
とができる。
Further, according to the present invention, the address information secured by using the device for searching the memory allocation management information and the memory management information for the address on the memory secured according to the information necessary for providing the service. By knowing, it is possible to prevent the address of the area secured in the memory from being directly referenced, and moreover, the address change due to the movement of the memory area due to the memory compaction only needs to change the address information in the memory management information. Therefore, the effect of moving the memory area can be minimized.

【0032】また、直接メモリ上に確保されたエリアの
アドレスを参照することなくメモリ運用状況を把握でき
ることで、メモリのコンパクションを、確保したエリア
を解放する時点は勿論、各情報にアクセスを行っていな
いシステムの立ち上がりなどの時点においても全エリア
を対象に行うことが可能となり、メモリのコンパクショ
ンの効率化によって、未使用エリアの不足に起因したサ
ービス提供不能の事態回避も容易となる。
Since the memory operation status can be grasped without directly referring to the address of the area secured in the memory, each information is accessed not only when the memory compaction is released but also when the secured area is released. All areas can be targeted even at the time of system startup, etc., and the efficiency of memory compaction makes it easy to avoid the situation in which service cannot be provided due to lack of unused areas.

【0033】[0033]

【発明の効果】以上説明したように、本発明のメモリ管
理方式によれば、メモリ管理情報とメモリ割り当て管理
情報とを用い、ある情報が必要とされた時点で当該情報
の記憶エリアを上記管理情報の検索結果に応じてメモリ
上に確保し、かつある情報が不要となった時点で前記メ
モリ上から当該情報の記憶エリアを解放しかつ前記管理
情報を更新しながら前記メモリを動的に管理するように
したため、上記各管理情報を参照することによって、直
接メモリ上に確保されたエリアのアドレスを参照するま
でもなくメモリの使用状況が把握でき、所望の情報の記
憶エリアをメモリ上に迅速に確保でき、しかもその際の
フラグメンテーションを最小としてメモリの利用効率を
高めることができる。
As described above, according to the memory management system of the present invention, the memory management information and the memory allocation management information are used, and when a certain information is required, the storage area of the information is managed as described above. The memory is secured according to the search result of information, and when a certain information becomes unnecessary, the storage area of the information is released from the memory and the memory is dynamically managed while updating the management information. Therefore, by referring to the above management information, the memory usage status can be grasped without directly referring to the address of the area secured in the memory, and the storage area of the desired information can be quickly stored in the memory. Therefore, the fragmentation at that time can be minimized to improve the memory utilization efficiency.

【0034】また、本発明では、メモリ上の空きエリア
に他の記憶エリアの内容を複写することによってメモリ
の散在する未使用エリアのコンパクションを行う場合、
上記メモリ管理情報とメモリ割り当て管理情報とをいつ
でも参照できるから、メモリのコンパクションは確保し
た記憶エリアを解放する時点に限らずしかも全エリアを
対象に実施でき、効率化されたメモリコンパクションに
よってメモリの利用効率を更に向上させることができ、
引いては未使用エリアの不足によってサービス提供がで
きなくなるケースを大幅に低減できるという優れた利点
を有する。
Further, according to the present invention, when the contents of other storage areas are copied to an empty area on the memory to perform compaction of unused areas scattered in the memory,
Since the above memory management information and memory allocation management information can be referred to at any time, the memory compaction can be performed not only at the time of releasing the secured storage area but also for the entire area, and the memory can be used by the efficient memory compaction. Can further improve efficiency,
Furthermore, it has an excellent advantage that the number of cases where service cannot be provided due to lack of unused areas can be greatly reduced.

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

【図1】本発明に係るメモリ管理方式を適用して成るメ
モリ制御システムの一実施例を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a memory control system to which a memory management system according to the present invention is applied.

【図2】図1に示したメモリ制御システムの概念的構成
を示す図。
FIG. 2 is a diagram showing a conceptual configuration of the memory control system shown in FIG.

【図3】本発明のメモリ管理方式によるメモリ制御に用
いるメモリ管理情報の一例を示す図。
FIG. 3 is a diagram showing an example of memory management information used for memory control according to the memory management system of the present invention.

【図4】本発明のメモリ管理方式によるメモリコンパク
ション処理を説明するための概念的なメモリ構成図。
FIG. 4 is a conceptual memory configuration diagram for explaining a memory compaction process according to a memory management system of the present invention.

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

1 CPU 2 メモリ割り当て制御装置 3 検索装置 4 メモリ内容複写装置 5 管理情報メモリ 51-1,51-2,‥‥ メモリ割り当て管理情報 52 メモリ管理情報 6 メモリ 1 CPU 2 Memory Allocation Control Device 3 Search Device 4 Memory Content Copying Device 5 Management Information Memory 51-1, 51-2, ... Memory Allocation Management Information 52 Memory Management Information 6 Memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ある情報が必要とされた時点で当該情報
の記憶エリアをメモリ上に確保し、かつある情報が不要
となった時点で前記メモリ上から当該情報の記憶エリア
を解放しつつ前記メモリを動的に管理するメモリ管理方
式において、 メモリ上のどの記憶エリアがどの情報のために確保され
ているかを管理する管理情報を記憶する管理情報記憶手
段と、 記憶エリアの確保に際しては少なくとも当該記憶エリア
のアドレスと確保量を前記管理情報上に記録するととも
に、記憶エリアの解放に際しては当該記憶エリアに対応
する管理情報を未使用の状態に更新する管理情報更新登
録手段と、 前記管理情報記憶手段内の管理情報を参照して前記メモ
リ内における記憶エリアの使用状況を検索する検索手段
とを具備し、前記メモリに対する情報の記憶エリアの確
保または解放を、前記検索手段による前記管理情報の検
索結果に基づいて実施するようにしたことを特徴とする
メモリ管理方式。
1. When a certain information is needed, a storage area for the information is secured in a memory, and when the certain information is no longer needed, the storage area for the information is released from the memory. In a memory management system that dynamically manages a memory, a management information storage unit that stores management information that manages which storage area on the memory is reserved for which information, and at least the storage area A management information update registration means for recording the address of the storage area and the reserved amount on the management information, and updating the management information corresponding to the storage area to an unused state when the storage area is released; Retrieval means for retrieving the use status of the storage area in the memory by referring to the management information in the means, and recording the information in the memory. A memory management system characterized in that the storage area is secured or released based on a search result of the management information by the search means.
【請求項2】 メモリ内のあるエリアの内容を他のエリ
アに複写する複写手段を具備し、所定のメモリコンパク
ション要求に対し、前記検索手段の検索結果に基づき前
記メモリ上の各記憶エリアが連続となるように当該各記
憶エリアの内容を未使用エリアに複写せしめ、かつ当該
複写された記憶エリアに対応するメモリ管理情報上のア
ドレスを複写先のアドレスに書き換えるようにしたこと
を特徴とする請求項1記載のメモリ管理方式。
2. A copy means for copying the contents of one area in the memory to another area is provided, and each storage area on the memory is consecutive based on the search result of the search means in response to a predetermined memory compaction request. The content of each storage area is copied to an unused area so that the address on the memory management information corresponding to the copied storage area is rewritten to the copy destination address. The memory management system according to item 1.
【請求項3】 管理情報は、メモリ上に確保された記憶
エリアのアドレスとそのエリアの確保量及び使用状態を
示すフラグによって構成されるメモリ管理情報と、該記
憶エリアを確保する必要のあった情報毎に前記メモリ管
理情報のどの情報と対応するかを管理するメモリ割り当
て管理情報とから成ることを特徴とする請求項1または
2記載のメモリ管理方式。
3. The management information includes memory management information composed of an address of a storage area secured on the memory, a flag indicating a secured amount and a usage state of the area, and the storage area needs to be secured. 3. The memory management system according to claim 1, further comprising: memory allocation management information for managing which information of the memory management information corresponds to each piece of information.
JP424093A 1993-01-13 1993-01-13 Memory managing system Pending JPH06214874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP424093A JPH06214874A (en) 1993-01-13 1993-01-13 Memory managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP424093A JPH06214874A (en) 1993-01-13 1993-01-13 Memory managing system

Publications (1)

Publication Number Publication Date
JPH06214874A true JPH06214874A (en) 1994-08-05

Family

ID=11579031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP424093A Pending JPH06214874A (en) 1993-01-13 1993-01-13 Memory managing system

Country Status (1)

Country Link
JP (1) JPH06214874A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4832649A (en) * 1986-11-11 1989-05-23 Tomy Kogyo Co., Inc. Double door opening and closing mechanism for use in toys and models
US4861308A (en) * 1986-11-18 1989-08-29 Tomy Kogyo Co., Inc. Drive control mechanism for spring-driven toy
KR19980084404A (en) * 1997-05-23 1998-12-05 윤종용 Memory Management
WO2002056183A1 (en) * 2001-01-11 2002-07-18 Flasys Corporation Semiconductor memory device and method for accessing the same
US7228322B1 (en) 1999-11-17 2007-06-05 Fujitsu Limited Data management apparatus of switching system
JP2010170328A (en) * 2009-01-22 2010-08-05 Hitachi Ltd Memory device and computer

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4832649A (en) * 1986-11-11 1989-05-23 Tomy Kogyo Co., Inc. Double door opening and closing mechanism for use in toys and models
US4861308A (en) * 1986-11-18 1989-08-29 Tomy Kogyo Co., Inc. Drive control mechanism for spring-driven toy
KR19980084404A (en) * 1997-05-23 1998-12-05 윤종용 Memory Management
US7228322B1 (en) 1999-11-17 2007-06-05 Fujitsu Limited Data management apparatus of switching system
WO2002056183A1 (en) * 2001-01-11 2002-07-18 Flasys Corporation Semiconductor memory device and method for accessing the same
JP2010170328A (en) * 2009-01-22 2010-08-05 Hitachi Ltd Memory device and computer

Similar Documents

Publication Publication Date Title
JP3308554B2 (en) Control device and control method of control device
US4758944A (en) Method for managing virtual memory to separate active and stable memory blocks
EP0463874A2 (en) Cache arrangement for file system in digital data processing system
JPH08129457A (en) Method and apparatus for expansion,reduction and redistribution of external storage structure
JPH11511272A (en) System for real-time data transfer and method using sparse files
JPH06214874A (en) Memory managing system
JP2006039942A (en) File management device in hierarchical storage system, and its file management method
JP3030030B2 (en) Area management processing method
JP3022829B2 (en) Automatic storage device allocation device
JP2009037564A (en) Disk management program, disk management method, and disk management device
JPH0212339A (en) Table controller
JP2005166073A (en) Control device and control method of storage device
JP3325729B2 (en) Memory management device
JPH08115263A (en) Memory unit
JPS63211041A (en) Transfer of data block
JP3772003B2 (en) Memory management system and data management method
JPS6353656A (en) Storage area control method for secondary storage part
CN117724990A (en) NVM space allocation method and device
JPH0329041A (en) Decentralized paging control system
JPS62160545A (en) System for managing unused area of direct access storage device
JPH08147206A (en) Data storage system
JPS63292456A (en) Control system for medium assignment of plural medium containing type data recorder
JPH04241644A (en) Journal sampling processor
JP2009217357A (en) File space addition system, file space addition method and file space addition program
JPH05252211A (en) Buffer control system