JPH01200453A - Internal data control method - Google Patents

Internal data control method

Info

Publication number
JPH01200453A
JPH01200453A JP63025357A JP2535788A JPH01200453A JP H01200453 A JPH01200453 A JP H01200453A JP 63025357 A JP63025357 A JP 63025357A JP 2535788 A JP2535788 A JP 2535788A JP H01200453 A JPH01200453 A JP H01200453A
Authority
JP
Japan
Prior art keywords
cluster
memory
page
matrix
data
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
JP63025357A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ケ原 隆史
Kazuhiko Morizaki
和彦 森嵜
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP63025357A priority Critical patent/JPH01200453A/en
Publication of JPH01200453A publication Critical patent/JPH01200453A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To make a cluster having high possibility of application remain in an internal memory as much as possible by sending out the cluster having low mapping priority order to an external memory at and after the head cluster of a matrix in case the internal memory has no idle cluster. CONSTITUTION:The input/output of data is carried out between an internal memory INM and an external memory ETM for each cluster having the fixed length. The information which controls each cluster of the memory INM contains the mapping priority order showing the degree of difficulty for send-out of cluster to the memory ETM and a matrix showing the degree of difficulty for send-out cluster to the memory ETM for each mapping priority order. When no idle cluster is included in the memory INM, the cluster are sent out in order to the memory ETM at and after the head cluster of a matrix having a low mapping priority order. Thus, the file send-out order is controlled regardless of the file defining order and the used cluster is set again at the end of the matrix. As a result, the cluster having high possibility of application can be stored in the memory INM as much as possible.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は仮想記憶方式によるメモリ管理が可能なシステ
ムたとえば自動プログラミング装置における内部データ
管理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to an internal data management method in a system capable of memory management using a virtual memory method, such as an automatic programming device.

〈従来技術〉 NCプログラムを自動作成する自動プログラミング装置
のアプリケージ?ンプログラム(単にアプリケーション
という)においては、内部メモリ(実メモリ)の容量を
越えるような大量データを扱う必要がある。このため、
ランダムアクセス可能な外部メモリ (例えばハードデ
ィスク)を有する自動プログラミング装置においては、
仮想記憶方式により該外部メモリの一部領域を内部メモ
リの延長(仮想メモリ領域)として使用し、内部メモリ
上のデータを一時的に該仮想メモリ領域に追い出したり
、仮想メモリ領域上のデータを必要に応じて内部メモリ
上に回復することが行われている。
<Prior art> Application cage of automatic programming device that automatically creates NC programs? An application program (simply called an application) needs to handle a large amount of data that exceeds the capacity of internal memory (real memory). For this reason,
In automatic programming devices with randomly accessible external memory (e.g. hard disk),
With the virtual memory method, a part of the external memory is used as an extension of the internal memory (virtual memory area), and data on the internal memory can be temporarily moved to the virtual memory area, or data on the virtual memory area can be used as needed. Recovery on internal memory has been done accordingly.

そして、内部メモリと外部メモリとの間ではファイル単
位でデータの追い出しや回復が行われる。
Then, data is purged and recovered in file units between the internal memory and external memory.

たとえば、内部メモリ中のファイルにデータを追加して
いる時に空き領域がなくなった場合、以下の手順により
ファイルの追い出しが行われる。すなわち、 (i)、先頭ファイルから順にクローズ中のファイルを
追い出し、1フアイルを追い出す毎にサイズがOKかチ
エツクする。このとき、自分自身のファイルは除く。
For example, if you run out of free space while adding data to a file in internal memory, the file will be removed using the following procedure. That is, (i) Closed files are ejected in order from the first file, and each time a file is evicted, it is checked whether the size is OK. At this time, your own files are excluded.

fii)−以上で十分のサイズが取れなければ、先頭フ
ァイルから1頃にオープン中のファイルを追い出し、1
ファイル追い出す毎にサイズOKかチエツクする。この
とき、自分自身のファイルは除く。
fii) - If the above is not enough, remove the open files from the first file around 1, and
Checks whether the size is OK every time a file is removed. At this time, your own files are excluded.

(iii)、(i)及び(ii)でもサイズが取れなけ
れば自分自身のファイルを追い出す。そして、 6ψ、(i)〜G11)でもサイズが取れなければオー
バフ四−のエラーとする。
(iii), (i), and (ii) if the size is not sufficient, then the own file is ejected. If the size is not obtained even with 6ψ, (i) to G11), an overbuff 4- error is assumed.

〈発明が解決しようとしている課題〉 しかし、ファイル単位で追い出す従来方法では、ファイ
ルを追い出す順番がもともと定義されている順番に従う
ので追い出し実行時に優先度を指定できず、しかも、フ
ァイル単位の追い出ししかできないので、よ(使われる
データも追い出されてしまうことが多くなり、外部メモ
リアクセスが増大し、処理効率を低下させる。又、同時
に複数のファイルを使用する場合でも、ある瞬間に注目
すると実際に必要なデータはファイル中の僅かなデータ
のみであり、−度使用されたデータは近いうちに再び使
用される可能性が高いが、従来の方法ではファイルの一
部分を内部メモリに残しておくことができず、結果的に
外部メモリアクセスが増大する。
<Problem to be solved by the invention> However, in the conventional method of evicting files in units of files, the order in which files are evicted follows the originally defined order, so it is not possible to specify the priority when executing the evicting, and furthermore, it is only possible to evict files in units of files. Therefore, used data is often evicted, external memory access increases, and processing efficiency decreases.Also, even when using multiple files at the same time, if you focus on a particular moment, you will not be able to see what is actually needed. Only a small amount of data in a file is used, and there is a high possibility that data that has been used once will be used again in the near future, but with conventional methods, it is possible to leave part of the file in internal memory. This results in an increase in external memory accesses.

以上から、本発明の目的はクラスタという概念を導入し
、ファイル単位でなくクラスタ単位でデータの追い出し
、回復を行わせると共に、内部メモリ上の各クラスタに
追い出されにくさを示す優先度を持たせると共に、使用
可能性の高いクラスタをできるt!け内部メモリに存在
させることができる内部データ管理方法を提供すること
である。
From the above, the purpose of the present invention is to introduce the concept of clusters, to perform data eviction and recovery in cluster units rather than file units, and to give each cluster in the internal memory a priority that indicates how difficult it is to be evicted. With this, you can create a highly usable cluster! An object of the present invention is to provide an internal data management method that allows data to be stored in an internal memory.

く課題を解決するための手段〉 第1図は本発明にかかる内部データ管理方法の説明図で
ある。
Means for Solving the Problems> FIG. 1 is an explanatory diagram of an internal data management method according to the present invention.

ETMは外部メモリ、INMは内部メモリ、PGAは内
部メモリ内のページ領域、vCTは管理情報領域、VM
Aは仮想メモリ領域である。
ETM is external memory, INM is internal memory, PGA is page area in internal memory, vCT is management information area, VM
A is a virtual memory area.

く作用〉 固定長のクラスタ単位で内部メモリTNMと外部メモリ
ETMとの間でデータの入出力を行うと共に、ページ領
域PGAの各ページP、(ページ長=クラスタ長)を管
理する管理情報(PMAP。
Function> Data is input/output between the internal memory TNM and the external memory ETM in fixed-length cluster units, and management information (PMAP) that manages each page P of the page area PGA (page length = cluster length) .

MPQ)を管理情報領域VCT内に用意し、各ページP
、についてマツピングされたクラスタの外部メモリET
Mへの追い出されにくさを表わすO〜15のマツピング
優先度と、マツピング優先度の鎖鋸にクラスタの外部メ
モリETMへの追い出されにくさを示す行列を持たせ、
ページ領域PGAに空きページが無いときは、マツピン
グ優先度の低い行列の、先頭ページから順番にクラスタ
単位でデータを外部メモ!J (ETM)に追い出す。
MPQ) is prepared in the management information area VCT, and each page P
The external memory ET of the cluster mapped for ,
A mapping priority of O to 15 representing the difficulty of being evicted to M, and a chain saw of the mapping priority having a matrix indicating the difficulty of being evicted to the external memory ETM of the cluster,
When there are no free pages in the page area PGA, data is externally memorized in cluster units starting from the first page of the matrix with the lowest mapping priority! Kick it out to J (ETM).

〈実施例〉 第1図は本発明にかかる内部データ管理方法の説明図で
ある。
<Embodiment> FIG. 1 is an explanatory diagram of an internal data management method according to the present invention.

ETMはハードディスクあるいはフロッピーディスク等
の外部メモリであり、その一部領域が仮想メモリ領域V
MAとなっている。仮想メモリ領域VMAはクラスタ単
位に内部メモリINMとデータの授受が可能であり、ク
ラスタ長の複数の記憶域C3−CN(クラスタ領域O〜
クラスタ領域N)を有している。
ETM is an external memory such as a hard disk or floppy disk, and a part of it is the virtual memory area V.
It is MA. The virtual memory area VMA can exchange data with the internal memory INM in cluster units, and has multiple storage areas C3-CN (cluster areas O to CN) of the cluster length.
It has a cluster area N).

INMはシステム本体内部に設けられた実メモリ(内部
メモリ)であり、PGAはページ領域、VCTは管理情
報領域である。ページ領域PGAは多数のページP0〜
PM(ページθ〜ページM)から成っており、各ページ
にクラスタ単位のデータが記憶されるようになっている
。尚、ページ長=クラスタ長になっている。
INM is a real memory (internal memory) provided inside the system main body, PGA is a page area, and VCT is a management information area. The page area PGA contains many pages P0~
It consists of PM (page θ to page M), and each page stores data in units of clusters. Note that the page length=cluster length.

管理情報領域VCTには、 (illベージ域PGAの各ページP、〜PMの空き状
態を示すビットマツプFATと、 (11)仮想メモリ領域VMAのクラスタ単位の記憶域
(クラスタ領域)C0〜CNの空き状態を示すピッ ト
マップCATと、 611)ページ領域PGAの各ページP0〜P1..に
対応させて管理情報PC,(i=o〜M)を有するペー
ジマツプPMAPと、 (ivl仮想メモリ領域VMAの各クラスタ領域C0〜
CNに対応させて管理情報CC1〜CCNを有するクラ
スタマツプCMAPと、 (v)各ページにおけるクラスタの追い出されにくさを
表わすマツピング優先度(O〜15)を設定する時、マ
ツピング優先度の各位(0〜15)毎に更にクラスタの
追い出されにくさを示す行列が形成されるが、各行列の
先頭ページポインタPHDK(k=1〜15)と末尾の
ページポインタPTL を示すマツピング優先度キュー
MPQ (第2図参照)が設けられている。
The management information area VCT includes (a bitmap FAT indicating the free status of each page P, ~PM of the ill page area PGA, and (11) free space of the storage area (cluster area) C0~CN in cluster units of the virtual memory area VMA. A pit map CAT indicating the status, and 611) each page P0 to P1 of the page area PGA. .. A page map PMAP having management information PC, (i=o~M) corresponding to (each cluster area C0~ of the ivl virtual memory area VMA)
When setting a cluster map CMAP having management information CC1 to CCN corresponding to CN, and (v) mapping priorities (0 to 15) representing the difficulty of expelling clusters on each page, each of the mapping priorities ( 0 to 15), a matrix indicating the difficulty of eviction of the cluster is further formed, and a mapping priority queue MPQ ( (see Figure 2).

ページマツプP、MAPの各ページP、(i=1〜M)
に対応して設けられた管理情報PC,には、第3図に示
すように (a)ページP、におけるクラスタの追い出されにくさ
を示すマツピング優先度MPRと、 (b)ページP1におけるクラスタを仮想メモリ領域V
MAに追い出す時、どのクラスタ領域に追い出すかを指
示するクラスタ番号CLNと、(,1ページP、と同一
のマツピング優先度を有する行列において、該ページP
、に接続される次のページを示す順方向リンクNXPと
、 (d)ページP1と同一のマツピング優先度を有する行
列において、該ページP1が接続する前のページを示す
逆方向リンクPRPとが含まれている。
Page map P, each page P of MAP, (i=1 to M)
As shown in FIG. 3, the management information PC provided in correspondence with (a) the mapping priority level MPR indicating the difficulty of expelling the clusters on page P, and (b) the mapping priority level MPR indicating the difficulty of expelling the clusters on page P1. virtual memory area V
When expelling to MA, the cluster number CLN instructs which cluster area to expel, and the matrix having the same mapping priority as (,1 page P), the page P
, a forward link NXP indicating the next page to be connected to, and (d) a reverse link PRP indicating the previous page to which page P1 is connected in the matrix having the same mapping priority as page P1. It is.

又、クラスタマツプCMAPの、各クラスタ領域C(j
=1〜N)に対応して設けられた管理情報CCには、ク
ラスタ領域Cに記憶されているクラスタ単位のデータを
ページ領域PGAのどのページに回復させるかを指示す
るページ番号が含まれている。
Also, each cluster area C(j
The management information CC provided corresponding to Cluster Area C (=1 to N) includes a page number that instructs to which page of the page area PGA the data in units of clusters stored in the cluster area C is to be recovered. There is.

尚、各管理情報CCはクラスタが回復されるページP、
に対応して設けられたページマツプ管理情報PC,の位
置を示す。同様に、マツピング優先度キューMPQ (
第2図参照)における先頭ページポインタPHDK’に
=1〜15)、末尾ページポインタPTLKは共に、行
列の先頭ページ及び末尾ページに対応するページマツプ
管理情報の位置を示し、各ページマツプ管理情報PC1
における順方向リンクポインタNXPと逆方向リンクポ
インタPRPも行列の前後ページのページマツプ管理情
報の位置を示す。
Note that each management information CC is a page P on which the cluster is recovered,
This shows the location of the page map management information PC provided corresponding to the page map. Similarly, mapping priority queue MPQ (
Both the first page pointer PHDK' (=1 to 15) and the last page pointer PTLK in FIG.
A forward link pointer NXP and a reverse link pointer PRP also indicate the positions of the page map management information of the previous and previous pages of the matrix.

従って、第4図に示すようにマツピング優先度キューM
PQにおけるマツピング優先度iの先頭ページポインタ
PHD、は、優先度iの行列の先頭ページPpに対応す
るページマツプ管理情報PC2を指示し、ページマツプ
管理情報PCI、の順方向リンクポインタNXPは優先
度iの行列の次のページマツプ管理情報PC,を指示し
、ページマツプ管理情報PCの順方向リンクポインタN
XPは優先度iの行列の次のページマツプ管理情報pc
、を指示する。
Therefore, as shown in FIG.
The first page pointer PHD of the mapping priority i in PQ indicates the page map management information PC2 corresponding to the first page Pp of the matrix of the priority i, and the forward link pointer NXP of the page map management information PCI is the priority Indicates the next page map management information PC of the matrix of i, and forward link pointer N of the page map management information PC.
XP is the next page map management information pc of the matrix with priority i
, instruct.

又、MPQにおけるマツピング優先度iの末尾ページポ
インタPTL、lよ、優先度iの行列の末尾ページP、
に対応するページマツプ管理情報PC。
Also, the last page pointer PTL, l of mapping priority i in MPQ, the last page P of the matrix of priority i,
Page map management information PC corresponding to.

を指示し、ページマツプ管理情報PCrの逆方向リンク
ポインタPRPは優先度1の行列における1つ前のペー
ジマツプ管理情報PC,を指示し、ページマツプ管理情
報PCの逆方向リンクポインタPRPは同様に優先度i
における行列の1つ前のページマツプ管理情報PCを指
示する。
The reverse link pointer PRP of the page map management information PCr points to the previous page map management information PC in the matrix with priority 1, and the reverse link pointer PRP of the page map management information PC similarly priority i
Indicates the page map management information PC immediately before the matrix in .

各ページP、のマツピング優先度(1〜15)はクラス
タ毎にアプリケーションプログラムから指定され、空き
領域がなくなった場合にどのページからクラスタ単位で
データを追い出すか決定するために用いられる。使用中
のページP1は、ページマツプ管理情報PC1内の順方
向リンクポインタNXPと逆方向リンクポインタPRP
により必ずどれかのマツピング優先度行列にリンクされ
る。尚、同一行列内では先頭ページから追い出されるも
のとし、空きページがなくなった時には、優先度が最も
低い行列の先頭ページポインタP HDKが示す先頭ペ
ージをその行列から削除して、該先頭ページのクラスタ
を仮想メモリ領域VNAに追い出す。
The mapping priority (1 to 15) of each page P is designated by the application program for each cluster, and is used to determine from which page data is to be ejected in cluster units when free space is exhausted. The page P1 in use has a forward link pointer NXP and a reverse link pointer PRP in the page map management information PC1.
is always linked to some mapping priority matrix. Note that within the same matrix, the first page is evicted, and when there are no more free pages, the first page indicated by the first page pointer P HDK of the matrix with the lowest priority is deleted from that matrix, and the cluster of the first page is deleted. to the virtual memory area VNA.

そして、以後法々とリンクをたどってクラスタを追い出
して行き、リンクの終りを検出した時は次に優先度が低
い行列に移行して先頭ページのクラスタから同様に追い
出す。
Thereafter, the clusters are removed by sequentially following the links, and when the end of the link is detected, the process moves to the next lowest priority matrix and the clusters on the first page are removed in the same way.

一方、アプリケーションにより所定のページにおけるク
ラスタのマツピング優先度が指定されろと該ページを指
定されたマツピング優先度の行列の末尾にリンクさせろ
。又、所定ページのクラスタがアクセスされると、ある
いはマツピング優先度の変更が指示されると該ページの
リンクを対応する行列から削除すると共に、所定の行列
(アクセスされた場合には同一の行列)の末尾にリンク
させる。従って、行列内では、昔アクセスしたページは
ど行列の前方にリンクされ、最近アクセスしたページは
ど行列の後方にリンクされる。
On the other hand, if the application specifies the mapping priority of clusters in a predetermined page, the page is linked to the end of the matrix of the specified mapping priority. Also, when a cluster of a predetermined page is accessed, or when a change in mapping priority is instructed, the link of the page is deleted from the corresponding matrix, and the link of the page is deleted from the corresponding matrix (or the same matrix if accessed). Link to the end of. Therefore, in the matrix, previously accessed pages are linked to the front of the matrix, and recently accessed pages are linked to the back of the matrix.

次に、追い出し、回復時における動作の概略を説明する
Next, an outline of the operation during expulsion and recovery will be explained.

(5)」LじIUイ 固定長のクラスタ単位で内部メモ!JINMと外部メモ
リETMとの間でデータの入出力を行うと共に、ページ
領域PGAの各ページP、 (ページ長=クラスタ長)
に対応させてページマツプPMAPとマツピング優先度
キューMPQを管理情報領域VCT内に用意する。そし
て、各ページP、のページマツプ管理情報P、Cに仮想
メモリ領域VMAへの追い出されにくさを表わす0〜1
5のマツピング優先度MPRと、マツピング優先度毎に
仮想メモリ領域VMAへの追い出されにくさを示す行列
(第4図)を特定するポインタPHD、、NXP等を持
たせる。
(5) Internal memo in fixed length cluster units! Data is input/output between JINM and external memory ETM, and each page P of page area PGA (page length = cluster length)
A page map PMAP and a mapping priority queue MPQ are prepared in the management information area VCT in correspondence with the above. Then, the page map management information P, C of each page P is set to 0 to 1 indicating the difficulty of being evicted to the virtual memory area VMA.
5, and pointers PHD, , NXP, etc. that specify a matrix (FIG. 4) indicating the difficulty of being evicted to the virtual memory area VMA for each mapping priority.

そして、ページ領域PGAIと空きページが無くなった
時には、マツピング優先度mの最も低い行列(m=15
)の先頭ページ(先頭ページがなければ次に低い行列(
m=14)の先頭ページ、以下同様)を該行列から削除
すると共に、該ページのデータをクラスタ単位でそのペ
ージマツプ管理情報のクラスタ番号CLNが指示する仮
想メモリ領域VMAの所定クラスタ領域に追い出す。
Then, when the page area PGAI and free pages are exhausted, the matrix with the lowest mapping priority m (m=15
) first page (if there is no first page, then the next lowest matrix (
The first page of m=14) (the same applies hereafter) is deleted from the matrix, and the data of the page is ejected in units of clusters to a predetermined cluster area of the virtual memory area VMA indicated by the cluster number CLN of the page map management information.

叶皿盗 所定のレコードがページ領域PGAに記憶されておらず
、仮想メモリ領域VMAに追い出されている場合には、
該レコードが記憶さてているクラスタ領域C4を示す情
報が与えられるから、該クラスタ領域C4に応じたクラ
スタマツプ管理情報CC1が示すページP、にクラスタ
領域C4からデータを回復する。尚、この時ページPl
に応じたページマツプ管理情報P1Cを生成することに
より、ページP、を、アプリケージシンにより゛指定さ
れたマツピング優先度の行列末尾にリンクさせる。
If the predetermined record is not stored in the page area PGA and is evicted to the virtual memory area VMA,
Since information indicating the cluster area C4 in which the record is stored is given, data is recovered from the cluster area C4 to the page P indicated by the cluster map management information CC1 corresponding to the cluster area C4. In addition, at this time, page Pl
By generating page map management information P1C according to , page P is linked to the end of the mapping priority matrix specified by the application manager.

〈発明の効果〉 以上本発明によれば、固定長のクラスタ単位で内部メモ
リと外部メモリとの間でデータの入出力を行うと共に、
内部メモリ上の各クラスタを管理する情報内に、外部メ
モリへのクラスタの追い出されにくさを表わすマツピン
グ優先度と、マツピング優先度毎にクラスタの外部メモ
リへの追い出されにくさを示す行列を持たせ、内部メモ
リ上に空きクラスタが無いときは、マツピング優先度の
低い行列の、先頭クラスタから順番に外部メモリに追い
出すように構成したから、ファイル毎に別々の優先度を
指定でき、これによりファイル定義の順位によらずにフ
ァイルの追い出す順を制御でき、しかもアクセスされた
(使用された)クラスタを行列の末尾に配置し直してい
るから使用可能性の高いクラスタをできるだけ内部メモ
リに存在させることができる。
<Effects of the Invention> According to the present invention, data is input/output between internal memory and external memory in fixed-length cluster units, and
In the information that manages each cluster on the internal memory, there is a mapping priority that indicates how difficult the cluster is to be evicted to the external memory, and a matrix that indicates how difficult the cluster is to be evicted to the external memory for each mapping priority. In addition, when there are no free clusters in the internal memory, the clusters in the mapping matrix with the lowest mapping priority are flushed out to the external memory in order, starting from the first cluster, so it is possible to specify a separate priority for each file. The order in which files are evicted can be controlled without depending on the definition order, and clusters that have been accessed (used) are relocated to the end of the matrix, so clusters with high usability can be kept in internal memory as much as possible. Can be done.

更に、クラスタ単位で追い出すようにし、かつアクセス
される毎に行列の末尾に配列し直しているから、ファイ
ルの1部分であって頻繁に使用されるデータを極力内部
メモリに保持させておくことができる。
Furthermore, since data is flushed out in cluster units and rearranged at the end of the matrix each time it is accessed, it is possible to retain frequently used data in the internal memory as much as possible. can.

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

第1図は本発明にかかる内部データ管理方法の説明図、 第2図はマツピング優先度キューの説明図、第3図はペ
ージマツプ管理情報の説明図、第4図はマツピング優先
度lの行列説明図である。 ETM・・外部メモリ、 INM・・内部メモリ、 PGA・・ページ領域、P、・・ページ、VCT・・管
理情報領域、 VMA・・仮想メモリ領域、C・・クラスタ領域、MP
Q・・マツピング優先度キュー、 PMAP・・ページマツプ、 PC・・ページマツプ管理情報、 CMAP・・クラスタマツプ 特許出願人        ファナック株式会社第2図 第3図
Fig. 1 is an explanatory diagram of the internal data management method according to the present invention, Fig. 2 is an explanatory diagram of a mapping priority queue, Fig. 3 is an explanatory diagram of page map management information, and Fig. 4 is a matrix of mapping priority l. It is an explanatory diagram. ETM...External memory, INM...Internal memory, PGA...Page area, P...Page, VCT...Management information area, VMA...Virtual memory area, C...Cluster area, MP
Q... Mapping priority queue, PMAP... Page map, PC... Page map management information, CMAP... Cluster map patent applicant Fanuc Corporation Figure 2 Figure 3

Claims (4)

【特許請求の範囲】[Claims] (1)ランダムアクセス可能な外部メモリを有し、該外
部メモリを内部メモリの拡張として使用するシステムに
おける内部データ管理方法において、固定長のクラスタ
単位で内部メモリと外部メモリとの間でデータの入出力
を行うと共に、内部メモリ上の各クラスタを管理する情
報内に、外部メモリへの各クラスタの追い出されにくさ
を表わすマッピング優先度と、マッピング優先度毎にク
ラスタの外部メモリへの追い出されにくさを示す行列を
持たせ、 内部メモリ上に空きクラスタが無いときは、マッピング
優先度の低い行列の、先頭クラスタから順番に外部メモ
リに追い出すことを特徴とする内部データ管理方法。
(1) In an internal data management method in a system that has a randomly accessible external memory and uses the external memory as an extension of the internal memory, data is input between the internal memory and the external memory in fixed-length cluster units. In addition to outputting data, the information that manages each cluster on the internal memory includes a mapping priority that represents the difficulty of each cluster being evicted to external memory, and a mapping priority that represents the difficulty of evicting each cluster to external memory for each mapping priority. An internal data management method characterized by having a matrix indicating the number of clusters, and when there are no free clusters in the internal memory, the clusters of the matrix with a low mapping priority are flushed out to the external memory in order from the top cluster.
(2)内部メモリ上のクラスタをアクセスしたとき、及
び外部メモリ上のクラスタを内部メモリに読み込んだ時
は、所定の行列の最後にクラスタをリンクすることを特
徴とする特許請求の範囲第1項記載の内部データ管理方
法。
(2) When a cluster on the internal memory is accessed and when a cluster on the external memory is read into the internal memory, the cluster is linked to the end of a predetermined matrix. Internal data management methods described.
(3)内部メモリ上の各クラスタに対応させて管理情報
を用意し、各管理情報に対応するクラスタのマッピング
優先度と該優先度の行列を形成するためのリンクデータ
を含ませることを特徴とする特許請求の範囲第2項記載
の内部データ管理方法。
(3) Management information is prepared corresponding to each cluster on the internal memory, and each management information includes the mapping priority of the corresponding cluster and link data for forming a matrix of the priority. An internal data management method according to claim 2.
(4)前記管理情報にクラスタを外部メモリのどこに追
い出すかを示すデータを含ませ、該データを参照して外
部メモリにクラスタを追い出すことを特徴とする特許請
求の範囲第3項記載の内部データ管理方法。
(4) Internal data according to claim 3, characterized in that the management information includes data indicating where in the external memory the cluster is to be ejected, and the data is referred to to eject the cluster to the external memory. Management method.
JP63025357A 1988-02-05 1988-02-05 Internal data control method Pending JPH01200453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63025357A JPH01200453A (en) 1988-02-05 1988-02-05 Internal data control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63025357A JPH01200453A (en) 1988-02-05 1988-02-05 Internal data control method

Publications (1)

Publication Number Publication Date
JPH01200453A true JPH01200453A (en) 1989-08-11

Family

ID=12163595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63025357A Pending JPH01200453A (en) 1988-02-05 1988-02-05 Internal data control method

Country Status (1)

Country Link
JP (1) JPH01200453A (en)

Similar Documents

Publication Publication Date Title
US6397311B1 (en) System and method for defragmenting a file system
JP4249267B2 (en) Freeing up disk space in the file system
US4841574A (en) Voice buffer management
JP2003512670A (en) Linked list DMA descriptor architecture
CN111258967A (en) Data reading method and device in file system and computer readable storage medium
KR100678930B1 (en) Real time control system for digital signal processor
CN104408126B (en) A kind of persistence wiring method of database, device and system
CN108664577A (en) A kind of file management method and system based on the free areas FLASH
JPH10269132A (en) Memory management method and system therefor
CN107450859B (en) Method and device for reading file data
CN111221756B (en) Method for high-efficiency downlink data transmission of upper computer
JP2000148515A (en) Memory scheduling method and storage medium storing memory scheduling program
CN118550653A (en) Method, device and medium for accelerated reading of artificial intelligence training platform data
CN117055811A (en) A bus access command processing method, device, chip and storage medium
JPH01200451A (en) Internal data control method
WO1999015969A1 (en) File system block sub-allocator
CN112650693A (en) Static memory management method and device
KR100248083B1 (en) Method for managing variable-length messages in circular queue
JP3825605B2 (en) Data processing device
JP2526728B2 (en) Disk cache automatic usage method
WO1994022134A1 (en) Buffer control for data transfer within hard disk during idle periods
JP2517133B2 (en) Garbage collection processing method
JPH04148225A (en) System and device for controlling filing access
CN118214726A (en) Communication method and device based on queue
CN120196274A (en) A sinking cache device, cache management method and chip