JP2003271352A - Data management method - Google Patents

Data management method

Info

Publication number
JP2003271352A
JP2003271352A JP2002072260A JP2002072260A JP2003271352A JP 2003271352 A JP2003271352 A JP 2003271352A JP 2002072260 A JP2002072260 A JP 2002072260A JP 2002072260 A JP2002072260 A JP 2002072260A JP 2003271352 A JP2003271352 A JP 2003271352A
Authority
JP
Japan
Prior art keywords
data
deletion
character
time
character 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.)
Withdrawn
Application number
JP2002072260A
Other languages
Japanese (ja)
Inventor
Seiji Fujikawa
誠司 藤川
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.)
Nef KK
Original Assignee
Nef KK
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 Nef KK filed Critical Nef KK
Priority to JP2002072260A priority Critical patent/JP2003271352A/en
Publication of JP2003271352A publication Critical patent/JP2003271352A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that it is difficult to properly predict the future use frequency and an efficient data deletion is not performed under one-sided condition setting since data use conditions are various according to system conditions. <P>SOLUTION: Whether or not a character pattern being an erasure candidate extracted based on a 'next access prediction time' should be erased is judged under the consideration of frequency on a priority judgement reference memory 8. As for character data C whose 'average use time interval' is '6 days' and character data D whose 'average use time interval' is 'one hour', when the 'next access prediction time' of the character data C is a value which is more close to the current time than that of the character data D, the 'mean use interval' is compared with a threshold value for judging whether the frequency of the character data being the erasure candidate is high or low, and when it is smaller than the threshold, it is judged that the frequency of the character data is high. Supporting the 'next access prediction time' is farther from the current time than the other character data, the character data are not set as the erasure candidate but successively registered in a character pattern memory 7. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、コンピュータシス
テムにおけるデータの管理方法に関し、特に磁気ディス
ク装置や光ディスク装置、メモリなどの記憶媒体にデー
タを記録する際の管理方法に関する。 【0002】 【従来の技術】コンピュータシステムは、システムを構
成するあらゆる装置において、データを記憶、管理する
ための装置やメモリ等を装備している。例えば、磁気デ
ィスク装置や光ディスク装置等のデータ記憶デバイス、
あるいはプリンタ等の出力装置におけるデータを記憶す
るためのメモリ等が存在する。 【0003】これらのデータ記憶装置の記憶容量は技術
の進歩に伴い年々増加しているが、近年あらゆる業務の
電子化が進むにつれ、ユーザが扱うデータ量も飛躍的に
増大している。このような膨大なデータ量に対処するた
め、データ記憶装置やメモリを増設することがまず考え
られるが、これにも自ずと限界がある。容量増設ととも
に、データを管理し、不要データを順次削除することに
よって、限られた容量のデータ記憶装置を有効に活用す
ることもまた重要である。 【0004】ただし、膨大なデータの中から、不要なデ
ータを人為的な作業で抽出することは大変困難であり、
従ってこれまで、コンピュータが不要データを判断する
ための様々な方法が考え出されてきた。 【0005】これらは、プリンタ装置やデータ表示装置
などの出力装置に関する発明である。文字やデータを印
刷、表示するためには、文字やデータのパターン情報を
上位装置や外部記憶装置から読み込み印刷、表示を実現
する。しかし印刷や表示を行うたびに、パターン情報を
上位装置や外部記憶装置から読み込む処理も行っている
のでは、この読み込みに要する時間が全体の処理時間に
及ぼす影響が多大となり、極めて非効率的である。した
がって、一般的には一旦読み込んだパターン情報をメモ
リに保持しておき、2回目以降、そのパターンを使用す
る場合、上位装置や外部記憶装置から読み出さずに、予
め登録してあるパターン情報を用いて印刷や表示を行っ
ている。しかしながら前述のとおりメモリの記憶容量に
は限界があるため、メモリのほぼ全ての領域が使用され
記憶容量が確保できない状態で、新規のパターン情報が
追加された場合に、この登録をどうするかという課題が
発生する。この際、今後最も使用頻度の低いと予測され
るパターン情報を抽出してこれを削除し、これによって
確保された領域に新規のパターン情報を登録するのが最
も一般的な方法と言える。 【0006】 【発明が解決しようとする課題】このように、データ記
憶装置の記憶容量を有効に活用するために、逐次パター
ン情報の優先度を判定し、優先度の低いパターン情報を
削除しておくことによって新規パターン情報登録用の記
憶容量を確保する方法が採られている。その優先度の判
定基準として例えば「各パターン情報の使用回数」「最
終アクセス時刻からの経過時間」から「一定期間におけ
るパターン情報の使用頻度」を算出し、頻度の低いもの
を削除対象とする方法が一般的に用いられている。 【0007】しかしながら、システムの形態によってパ
ターン情報が使用される条件は様々であり、使用回数や
経過時間のパラメータによる頻度だけでは適切な判定が
行えないようなケースも現れてくる。 【0008】本発明の目的は、データ記憶装置を有効に
利用するために、不要パターン情報を削除する方法とし
て「各パターン情報の使用回数」や「「最終アクセス時
刻からの経過時間」では充分な予測を行うことが難しい
場合についても、「今後最も使用頻度が低いと思われる
パターン情報」を適切に予測できるデータ管理方法を提
供することにある。 【0009】 【課題を解決するための手段】以上の課題を鑑みて、本
発明のデータ管理方法は、記憶した複数データの各々に
ついてその最終使用時刻情報、累積使用回数情報及び平
均使用間隔を記録保持し、各データの使用時あるいは一
定期間ごとにこれらの情報の更新を行うデータ記憶手段
の管理方法に関して、新たなデータを登録するにあた
り、前記記憶装置のデータ記憶領域に十分な空き領域が
あるか否かを判定する空き領域判定ステップと、前記空
き領域判定ステップにおいて空き領域が存在した場合、
前記新たなデータを前記データ記憶領域に追加登録し、
前記最終アクセス時刻情報、累積使用回数情報及び平均
使用間隔情報を記録する新規登録ステップと、前記空き
領域判定ステップにおいて空き領域が不足している場
合、既に登録複数のデータのうち、次回アクセス予測時
刻の最も遠いデータを抽出し、削除候補とする削除デー
タ抽出ステップと、前記削除候補抽出ステップにおいて
削除候補とされたデータの平均使用間隔を、予め用意さ
れたしきい値と比較する頻度比較ステップと、前記頻度
比較ステップで、前記削除候補とされたデータの平均使
用間隔が前記しきい値より大きい場合には該削除候補と
されたデータを前記データ記憶領域から削除し、しきい
値より小さい場合には、前記削除候補とされたデータを
削除候補から除外する削除データ判定ステップと、前記
削除データ判定ステップ終了後に再度空き領域の有無を
判定し、まだ空き領域が充分でない場合は、再度前記削
除データ抽出ステップにて、次回アクセス予測時刻の次
に遠いデータを削除候補として抽出することを特徴とす
る。 【0010】 【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。 【0011】図1は本発明のデータ管理方法を適用した
データ記憶装置の一例を示すブロック図である。1はコ
ンピュータであり、2はこのコンピュータの制御対象下
に置かれるプリンタ制御装置である。プリンタ制御装置
は、印刷処理に関する制御をコンピュータ1の代わりに
司り、コンピュータ1に接続されているプリンタ3より
印刷を実行する。 【0012】プリンタ制御装置2の詳細な内部構成につ
いても図1を用いて説明する。4はプリンタ制御装置2
の内部処理を制御するCPUであり、5は印刷処理プロ
グラムが格納されたROMである。6は文字データの使
用状況を管理する文字管理テーブルメモリであり、7は
文字パターン情報が格納される文字パターンメモリ、8
は削除候補となったパターン情報につき、使用頻度の観
点から削除すべきか否かを判断するための優先判断基準
メモリである。 【0013】図2の文字管理テーブルメモリは、文字管
理テーブルメモリ6上の文字データの使用状況を管理す
るメモリである。この文字管理テーブルメモリ6は、コ
ンピュータ1からプリンタ3へ印刷要求が発生した場
合、全ての文字データについてその文字コードを登録す
る。この際、既に文字管理テーブルメモリ6上に同じ文
字コードが登録されていた場合、この文字コードに関す
る「最終アクセス時刻」「平均使用間隔」「次回アクセ
ス予測時刻」をそれぞれ算出して更新登録する。 【0014】「最終アクセス時刻」は文字データの直近
の使用時間であり、印刷要求が発生するごとに、その処
理時刻(=現在時刻)で逐次更新登録される。図2よ
り、文字コードA、文字コードBの最終アクセス時刻は
それぞれ「2001年7月1日12時00分」「200
1年7月6日13時00分」であることがわかる。 【0015】文字コードの使用時間間隔は、最終アクセ
ス時刻の更新時あるいは一定期間ごとに、それまで登録
されていた最終アクセス時刻と現在時刻との差分をとっ
て求められ、この使用時間間隔と、文字コードの累積使
用回数を基にして更に「平均使用間隔」が算出され登録
される。なお、当然のことではあるが、新規文字コード
登録の際には「平均使用間隔」は算出できないので、こ
の場合は後述する優先度判定用に「0(ゼロ)」が仮登
録される。図2に示した例では文字コードA、文字コー
ドBの平均使用間隔はそれぞれ「7日間と1時間」「5
日間と3時間」となっている。 【0016】「次回アクセス予測時刻」は、「最終アク
セス時刻」に「平均使用間隔」を加算することにより求
められる値である。図2に示した例では、文字コード
A、文字コードBの次回アクセス予測時刻はそれぞれ
「2001年7月8日13時00分」「2001年7月
11日16時00分」となる。 【0017】図2の文字パターンメモリは、文字パター
ンメモリ7の内部領域を示す図であり、文字コードとそ
の文字パターン情報を関連づけて登録することができ
る。 【0018】図2の優先判断基準メモリは、優先判断基
準メモリ8の内部領域を示す図である。この優先判断基
準メモリ8上で、「次回アクセス予測時刻」を基に抽出
された削除候補の文字パターン情報につき、その使用頻
度を考慮して削除すべきか否かが判定される。例えば
「平均使用時間間隔」が「7日間」の文字コードCと
「1時間」の文字コードDに関し、もしも文字コードC
の「次回アクセス予測時刻」が文字コードDのそれより
も現在時刻に近い値であった場合、「次回アクセス予測
時刻」だけをもって文字コードDを削除候補にするので
はなく、あまり頻繁に使用されない文字コードCを削除
候補にするほうがデータ管理方法として妥当であると言
える。削除候補文字コードの使用頻度が高いか低いかを
判定するしきい値をあらかじめこの優先判断基準メモリ
8に保持しておく。本例ではしきい値を仮に「12時
間」と設定する。この場合、「平均使用間隔」が12時
間以内であれば、仮に「次回アクセス予測時刻」が他の
文字コードより現在時刻から遠くても、削除候補とはせ
ずに文字パターンメモリ7に引き続き登録保持する。 【0019】続いて、図3〜図5を参照して本発明の動
作につき詳細に説明する。なお、この実施形態における
現在時刻は2001年7月7日10時00分であるもの
とする。 【0020】まず、コンピュータ1はプリンタ制御装置
2に対して、印字すべき文字コードを送出する。文字コ
ードを受信したプリンタ制御装置2は、この文字コード
が文字管理テーブルメモリに存在するか否かをチェック
する(step1)。 【0021】文字コードが文字管理テーブルメモリに存
在する場合、文字パターンメモリより該当する文字コー
ドに対応する文字パターン情報を読み出し、プリンタ3
へ送出して印字処理を行う(step2)。 【0022】さらに、文字管理テーブルメモリの該当文
字コードに対して以下の処理を行う。 【0023】「最終アクセス時刻」には、今回行った印
刷要求の発生時刻(現在時刻)を更新登録する。「平均
使用間隔」には、前回までの平均使用間隔の値と、直近
の最終アクセス時刻から現在時刻までの使用間隔の値
(現在使用間隔値)と、これまでの累積使用回数から再
計算した値を更新登録する。この計算式を以下に示す。 【0024】 【数1】 「平均使用間隔」の更新処理は、印刷要求の発生時だけ
でなく、新規登録時と、あらかじめ定められた期間ごと
(例えば毎日0時00分)に行われる。まず新規登録時
は、前回までの平均使用間隔は0であり、現在使用間隔
(現在時刻―最終アクセス時刻)も0である。これを累
積使用回数の「1」で除算するので、「平均使用間隔」
の値は0となる。 【0025】所定期間ごとの更新では、現在使用間隔値
に所定の値が累積加算されていくが、累積使用回数及び
前回までの平均使用間隔は変動がないので、平均使用間
隔の値は必ず大きくなる。そして印刷要求発生時は、累
積使用回数を1加算してから除算を行い、求められた平
均時間間隔を更新登録する。この計算式を以下に示す。 【0026】 【数2】 「次回アクセス予測時刻」には、現在時刻に再計算した
「平均使用間隔」を加算して求めた値を更新登録する
(以上step3)。 【0027】逆に、受信した文字コードが文字管理テー
ブル上に存在しなかった場合は、文字管理テーブル上に
空き領域があるかチェックを行い(step4)、空き
領域が充分にあればコンピュータ1に対し該当する文字
コードの文字パターン情報の送信要求を行う(step
5)。プリンタ制御装置2は、コンピュータ1が送信し
てきた文字パターン情報を受信し(step6)、これ
をプリンタ3に送出し(step7)、印字処理を行
う。その後文字管理テーブルメモリの空き領域に「最終
アクセス時刻」を(step8)、文字パターンメモリ
の空き領域に文字コードと文字パターン情報をそれぞれ
更新登録して(step9)、処理を終了する。 【0028】文字管理テーブルに空き領域が存在しなか
った場合は(step4)、削除候補の抽出処理に移行
する。まず文字管理テーブル上で「次回アクセス予測時
刻」が現在時刻より最も遠い文字コードを検索する(s
tep10)。 【0029】この処理においては、文字管理テーブルメ
モリが図6に示すような状態になっている。文字コード
Bの「次回アクセス予測時刻」が2001年7月11日
16時00分と最も現在時刻より遠いので、この文字コ
ードBを削除候補として選択する。 【0030】続いて、削除候補となった文字コードBの
「平均使用間隔」を優先判断基準メモリに登録されたし
きい値(12時間)と比較する(step11)。削除
候補文字コード情報の「平均使用間隔」がしきい値より
大きかった場合は、この文字コードは使用頻度が低いと
判断し、削除決定として(step12)文字管理テー
ブルメモリ6及び文字パターンメモリ7から削除し(s
tep13)、step5に処理を移行して次候補とな
る文字パターンAにつき判定を開始する。 【0031】次に、他の例として、文字管理テーブルメ
モリが図5に示すような状態であった場合について、s
tep4以降の処理につき説明する。 【0032】文字管理テーブルメモリの「次回アクセス
予測時刻」の最も遠い文字コードを検索する。この場
合、文字コードDの「次回アクセス予測時刻」は「20
01年7月7日10時50分」であり現在時刻から最も
遠いため、これを一旦削除候補とする(step1
0)。しかし、文字コードDの「平均使用間隔」は1時
間であり、優先判断基準メモリに登録されたしきい値
(12時間)と比較し(step11)、文字コードD
は使用頻度が高く、メモリから削除すべきではないと判
定して、あらためて削除候補から外す(step1
4)。 【0033】続いて、文字管理テーブルメモリの「次回
アクセス予測時刻」が、次に遠い文字コードを検索する
(step15)。この場合、文字コードCの「次回ア
クセス予測時刻」が次に遠いため、文字コードCを削除
候補とし、step11へ処理を進める。 【0034】この際、文字コードCの「平均使用間隔」
は6日間(144時間)であり、優先度判断基準メモリ
に登録されているしきい値よりも大きいので、文字コー
ドCは使用頻度が低いと判定し、削除決定とする。 【0035】 【発明の効果】以上説明したとおり、本発明のデータ管
理方法では、データ記憶装置やメモリの容量を有効に使
用するため、頻度の低い不要データを随時削除していく
ための判定を、より精度よく行うことができる。 【0036】特に、各データの平均使用間隔を基準に削
除対象を決定していくことから、例えば、通信販売を行
うコンピュータシステムのように、不特定多数の人々の
情報を取り扱うシステムよりも、社内業務システムのよ
うに、ある程度規定されたデータを毎日、毎週、・・・
のように一定期間ごとに繰り返し処理するシステムでよ
り顕著な効果を示す。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for managing data in a computer system, and more particularly to a method for recording data on a storage medium such as a magnetic disk device, an optical disk device, and a memory. Regarding management methods. 2. Description of the Related Art A computer system is equipped with a device for storing and managing data, a memory and the like in all devices constituting the system. For example, data storage devices such as magnetic disk devices and optical disk devices,
Alternatively, a memory or the like for storing data in an output device such as a printer exists. [0003] The storage capacity of these data storage devices has been increasing year by year with the progress of technology. However, with the progress of computerization of all kinds of business in recent years, the amount of data handled by users has increased dramatically. To cope with such an enormous amount of data, it is first conceivable to add a data storage device or a memory, but this is naturally limited. It is also important to effectively utilize a limited-capacity data storage device by managing data and deleting unnecessary data sequentially in addition to the capacity expansion. [0004] However, it is very difficult to extract unnecessary data from a huge amount of data by artificial work.
Accordingly, various methods have been devised so far for computers to determine unnecessary data. [0005] These are inventions relating to output devices such as printer devices and data display devices. In order to print and display characters and data, pattern information of the characters and data is read from a host device or an external storage device, and printing and display are realized. However, since the process of reading the pattern information from the host device or the external storage device is also performed every time printing or display is performed, the time required for the reading has a large effect on the entire processing time, and is extremely inefficient. is there. Therefore, generally, once read pattern information is stored in a memory, and when the pattern is used for the second time or later, the pattern information that has been registered in advance is used instead of being read from the host device or the external storage device. Printing and display. However, as described above, since the storage capacity of the memory is limited, when new pattern information is added in a state where almost all the area of the memory is used and the storage capacity cannot be ensured, the problem of how to perform the registration. Occurs. At this time, the most common method is to extract and delete pattern information that is predicted to be the least frequently used in the future, and to register new pattern information in the area secured thereby. As described above, in order to effectively utilize the storage capacity of a data storage device, the priorities of pattern information are sequentially determined, and pattern information having a lower priority is deleted. In this case, a method of securing a storage capacity for registering new pattern information is adopted. As a criterion for determining the priority, for example, a method of calculating “frequency of use of pattern information in a certain period” from “number of times of use of each pattern information” and “elapsed time since last access time” and setting a low frequency as a deletion target Is generally used. However, the conditions under which pattern information is used vary depending on the form of the system, and in some cases, appropriate judgment cannot be made only by the frequency of use or the elapsed time parameter. [0008] An object of the present invention is to provide a method of deleting unnecessary pattern information by using "the number of times of use of each pattern information" or "elapsed time since last access time" as a method for deleting unnecessary pattern information. An object of the present invention is to provide a data management method capable of appropriately predicting “pattern information that is considered to be the least frequently used in the future” even when it is difficult to make prediction. In view of the above problems, a data management method according to the present invention records last use time information, cumulative use number information and average use interval for each of a plurality of stored data. Regarding the management method of the data storage means for holding and updating these information at the time of using each data or at regular intervals, when registering new data, there is a sufficient free space in the data storage area of the storage device. An empty area determining step of determining whether or not there is an empty area in the empty area determining step,
Additionally registering the new data in the data storage area,
A new registration step of recording the last access time information, the cumulative use count information, and the average use interval information; and, if the free area is insufficient in the free area determination step, the next access prediction time of the plurality of registered data. Extracting the most distant data, a deletion data extraction step as a deletion candidate, and a frequency comparison step of comparing the average use interval of the data deleted as a deletion candidate in the deletion candidate extraction step with a threshold prepared in advance. In the frequency comparison step, when the average use interval of the data set as the deletion candidate is larger than the threshold value, the data set as the deletion candidate is deleted from the data storage area; A deletion data determining step of excluding the data set as the deletion candidate from the deletion candidates; and a deletion data determining step. After completion of the backup, it is determined again whether or not there is a free area, and if the free area is not enough, in the deletion data extraction step, data farthest from the next access predicted time is extracted as a deletion candidate. . Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing an example of a data storage device to which the data management method of the present invention is applied. 1 is a computer, and 2 is a printer control device placed under the control of the computer. The printer control device controls the printing process on behalf of the computer 1 and executes printing from the printer 3 connected to the computer 1. The detailed internal configuration of the printer control device 2 will also be described with reference to FIG. 4 is a printer controller 2
Is a CPU for controlling the internal processing of the printer, and 5 is a ROM in which a print processing program is stored. Reference numeral 6 denotes a character management table memory for managing the use status of character data, 7 a character pattern memory for storing character pattern information, 8
Is a priority determination criterion memory for determining whether or not pattern information that has become a deletion candidate should be deleted from the viewpoint of use frequency. The character management table memory shown in FIG. 2 is a memory for managing the use status of character data on the character management table memory 6. When a print request is issued from the computer 1 to the printer 3, the character management table memory 6 registers the character codes of all character data. At this time, if the same character code has already been registered in the character management table memory 6, "last access time", "average use interval", and "predicted next access time" for this character code are calculated and registered. The "last access time" is the latest use time of character data, and is updated and registered at the processing time (= current time) every time a print request is generated. From FIG. 2, the last access times of the character code A and the character code B are “12:00 on July 1, 2001” and “200”, respectively.
It is found that the time is 13:00 on July 6, 2001. The use time interval of the character code is obtained at the time of update of the last access time or at regular intervals by taking the difference between the last access time registered so far and the current time. An “average use interval” is further calculated and registered based on the cumulative use count of the character code. As a matter of course, when registering a new character code, the “average use interval” cannot be calculated. In this case, “0 (zero)” is temporarily registered for priority determination described later. In the example shown in FIG. 2, the average use intervals of the character codes A and B are “7 days and 1 hour” and “5 hours”, respectively.
Days and 3 hours ". The “predicted next access time” is a value obtained by adding the “average use interval” to the “last access time”. In the example shown in FIG. 2, the predicted next access times of the character code A and the character code B are “13:00 on July 8, 2001” and “16:00 on July 11, 2001”, respectively. The character pattern memory shown in FIG. 2 is a diagram showing an internal area of the character pattern memory 7, and a character code and its character pattern information can be registered in association with each other. The priority criterion memory of FIG. 2 is a diagram showing an internal area of the priority criterion memory 8. In the priority determination criterion memory 8, it is determined whether to delete the character pattern information of the deletion candidate extracted based on the “predicted next access time” in consideration of the frequency of use. For example, regarding the character code C whose “average use time interval” is “7 days” and the character code D of “1 hour”, if the character code C
If the “predicted next access time” is a value closer to the current time than that of the character code D, the character code D is not used as a deletion candidate instead of using only the “predicted next access time” as a deletion candidate. It can be said that making the character code C a deletion candidate is more appropriate as a data management method. A threshold for determining whether the use frequency of the deletion candidate character code is high or low is stored in the priority determination reference memory 8 in advance. In this example, the threshold is temporarily set to “12 hours”. In this case, if the “average use interval” is within 12 hours, even if the “predicted next access time” is farther from the current time than other character codes, it is not registered as a deletion candidate and is continuously registered in the character pattern memory 7. Hold. Next, the operation of the present invention will be described in detail with reference to FIGS. It is assumed that the current time in this embodiment is 10:00 on July 7, 2001. First, the computer 1 sends a character code to be printed to the printer control device 2. Upon receiving the character code, the printer control device 2 checks whether the character code exists in the character management table memory (step 1). When the character code exists in the character management table memory, the character pattern information corresponding to the corresponding character code is read from the character pattern memory, and the printer 3
And print processing is performed (step 2). Further, the following processing is performed on the corresponding character code in the character management table memory. In the “last access time”, the time at which the print request is made this time (current time) is updated and registered. The “average usage interval” is calculated based on the average usage interval value up to the previous time, the usage interval value from the last access time to the current time (current usage interval value), and the cumulative usage count so far. Update and register the value. The calculation formula is shown below. ## EQU1 ## The process of updating the “average use interval” is performed not only when a print request is issued, but also when a new registration is made and every predetermined period (for example, every day at 0:00). First, at the time of new registration, the average use interval up to the previous time is 0, and the current use interval (current time-last access time) is also 0. Since this is divided by the cumulative use count “1”, the “average use interval”
Is 0. In the update every predetermined period, a predetermined value is cumulatively added to the current use interval value. However, since the cumulative use count and the average use interval up to the previous time do not change, the value of the average use interval is always large. Become. When a print request occurs, the cumulative use count is incremented by 1 and then divided, and the obtained average time interval is updated and registered. The calculation formula is shown below. ## EQU2 ## As the “predicted next access time”, a value obtained by adding the “average use interval” recalculated to the current time is updated and registered (step 3 above). Conversely, if the received character code does not exist in the character management table, it is checked whether there is an empty area in the character management table (step 4). Requests transmission of character pattern information of the corresponding character code (step
5). The printer control device 2 receives the character pattern information transmitted by the computer 1 (step 6), sends it to the printer 3 (step 7), and performs a printing process. Thereafter, the “last access time” is set in the free area of the character management table memory (step 8), and the character code and the character pattern information are updated and registered in the free area of the character pattern memory (step 9), and the process is terminated. If there is no free area in the character management table (step 4), the processing shifts to a deletion candidate extraction process. First, on the character management table, search for a character code whose “next predicted access time” is the furthest from the current time (s
step10). In this process, the character management table memory is in a state as shown in FIG. Since the “predicted next access time” of the character code B is furthest from the current time at 16:00 on July 11, 2001, this character code B is selected as a deletion candidate. Subsequently, the "average use interval" of the character code B which is a deletion candidate is compared with a threshold value (12 hours) registered in the priority judgment reference memory (step 11). If the “average use interval” of the deletion candidate character code information is larger than the threshold value, it is determined that this character code is infrequently used, and the deletion is determined (step 12) from the character management table memory 6 and the character pattern memory 7. Delete (s
In step 13), the process proceeds to step 5 to start determination on the next candidate character pattern A. Next, as another example, the case where the character management table memory is in the state shown in FIG.
The processing after step 4 will be described. The character code farthest from the "predicted next access time" in the character management table memory is searched. In this case, the “next predicted access time” of the character code D is “20”.
10:50 on July 7, 2001, which is the farthest from the current time, and is temporarily set as a deletion candidate (step 1).
0). However, the "average use interval" of the character code D is one hour, and is compared with a threshold value (12 hours) registered in the priority determination reference memory (step 11).
Is frequently used and is determined not to be deleted from the memory, and is removed from the deletion candidates again (step 1).
4). Subsequently, a search is made for a character code having the next distant access time in the character management table memory (step 15). In this case, since the “next predicted access time” of the character code C is the next farthest, the character code C is set as a deletion candidate, and the process proceeds to step 11. At this time, the "average use interval" of the character code C
Is six days (144 hours), which is larger than the threshold value registered in the priority determination reference memory, so that the character code C is determined to be infrequently used, and is determined to be deleted. As described above, in the data management method of the present invention, in order to effectively use the capacity of the data storage device and the memory, the judgment for deleting the infrequently unnecessary data at any time is made. Can be performed more accurately. In particular, since the deletion target is determined on the basis of the average use interval of each data, it is more in-house than a system handling information of an unspecified number of people, such as a computer system for mail order sales. Like a business system, data to a certain extent is defined daily, weekly, ...
A more remarkable effect is shown in a system in which the processing is repeated at regular intervals as shown in FIG.

【図面の簡単な説明】 【図1】 本発明のデータ管理方法の実施形態につき、
この方法が適用されるシステムの一構成例を示すブロッ
ク図である。 【図2】 文字管理テーブルメモリ、文字パターンメモ
リ及び優先判断基準メモリの構成例を示す図である。 【図3】 文字パターン情報がテーブルメモリに存在し
た場合の処理を示すフローチャートである。 【図4】 使用頻度の低い文字パターン情報を抽出し、
削除するか否かを決定する処理を示すフローチャートで
ある。 【図5】 次回アクセス予測時刻から削除候補となった
文字パターン情報が、平均使用間隔により削除候補から
除外される例を示す図である。 【図6】 次回アクセス予測時刻から削除候補となった
文字パターン情報が、平均使用間隔により削除決定され
る例を示す図である。 【符号の説明】 1 コンピュータ 2 プリンタ制御装置 3 プリンタ 4 CPU 5 プログラム格納ROM 6 文字管理テーブルメモリ 7 文字パターンメモリ 8 優先判断基準メモリ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 shows an embodiment of a data management method according to the present invention.
It is a block diagram showing an example of composition of a system to which this method is applied. FIG. 2 is a diagram illustrating a configuration example of a character management table memory, a character pattern memory, and a priority determination reference memory. FIG. 3 is a flowchart showing a process when character pattern information exists in a table memory. FIG. 4 extracts character pattern information that is infrequently used,
It is a flowchart which shows the process which determines whether to delete. FIG. 5 is a diagram illustrating an example in which character pattern information that has become a deletion candidate from a predicted next access time is excluded from deletion candidates at an average use interval. FIG. 6 is a diagram illustrating an example in which character pattern information that is a deletion candidate from a predicted next access time is determined to be deleted based on an average use interval. [Description of Signs] 1 Computer 2 Printer control device 3 Printer 4 CPU 5 Program storage ROM 6 Character management table memory 7 Character pattern memory 8 Priority judgment reference memory

Claims (1)

【特許請求の範囲】 【請求項1】 記憶した複数データの各々についてその
最終使用時刻情報、累積使用回数情報及び平均使用間隔
を記録保持し、各データの使用時あるいは一定期間ごと
にこれらの情報の更新を行うデータ記憶手段の管理方法
に関し、 新たなデータを登録するにあたり、前記記憶装置のデー
タ記憶領域に十分な空き領域があるか否かを判定する空
き領域判定ステップと、 前記空き領域判定ステップにおいて空き領域が存在した
場合、前記新たなデータを前記データ記憶領域に追加登
録し、前記最終アクセス時刻情報、累積使用回数情報及
び平均使用間隔情報を記録する新規登録ステップと、 前記空き領域判定ステップにおいて空き領域が不足して
いる場合、既に登録複数のデータのうち、次回アクセス
予測時刻の最も遠いデータを抽出し、削除候補とする削
除データ抽出ステップと、 前記削除候補抽出ステップにおいて削除候補とされたデ
ータの平均使用間隔を、予め用意されたしきい値と比較
する頻度比較ステップと、 前記頻度比較ステップで、前記削除候補とされたデータ
の平均使用間隔が前記しきい値より大きい場合には該削
除候補とされたデータを前記データ記憶領域から削除
し、しきい値より小さい場合には、前記削除候補とされ
たデータを削除候補から除外する削除データ判定ステッ
プと、 前記削除データ判定ステップ終了後に再度空き領域の有
無を判定し、まだ空き領域が充分でない場合は、再度前
記削除データ抽出ステップにて、次回アクセス予測時刻
の次に遠いデータを削除候補として抽出することを特徴
とするデータ管理方法。
Claims 1. For each of a plurality of stored data, last use time information, cumulative use number information and average use interval are recorded and held, and the information is used at the time of use of each data or at regular intervals. A method of managing data storage means for updating the data storage area, in registering new data, determining whether there is a sufficient free area in the data storage area of the storage device; and determining the free area. A new registration step of additionally registering the new data in the data storage area and recording the last access time information, the cumulative use count information, and the average use interval information if there is a free area in the step; If there is not enough free space in the step, of the multiple data already registered, A data extraction step of extracting data and selecting deletion candidates as deletion candidates; a frequency comparison step of comparing an average use interval of the data set as deletion candidates in the deletion candidate extraction step with a prepared threshold value; In the frequency comparison step, if the average use interval of the data set as the deletion candidate is larger than the threshold, the data set as the deletion candidate is deleted from the data storage area. A deletion data judging step of excluding the data set as the deletion candidate from the deletion candidates; and judging the presence or absence of an empty area again after the end of the deletion data judging step. A data management method characterized in that at step, data farthest next to the predicted next access time is extracted as a deletion candidate.
JP2002072260A 2002-03-15 2002-03-15 Data management method Withdrawn JP2003271352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002072260A JP2003271352A (en) 2002-03-15 2002-03-15 Data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002072260A JP2003271352A (en) 2002-03-15 2002-03-15 Data management method

Publications (1)

Publication Number Publication Date
JP2003271352A true JP2003271352A (en) 2003-09-26

Family

ID=29202306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002072260A Withdrawn JP2003271352A (en) 2002-03-15 2002-03-15 Data management method

Country Status (1)

Country Link
JP (1) JP2003271352A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007124362A (en) * 2005-10-28 2007-05-17 Fujifilm Corp Information processor, information processing method, and information processing program
US8035858B2 (en) 2005-08-15 2011-10-11 Konica Minolta Business Technologies, Inc. Image processing apparatus and method allow user to set a sequence of instructions
CN102555547A (en) * 2010-11-02 2012-07-11 兄弟工业株式会社 Printing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8035858B2 (en) 2005-08-15 2011-10-11 Konica Minolta Business Technologies, Inc. Image processing apparatus and method allow user to set a sequence of instructions
JP2007124362A (en) * 2005-10-28 2007-05-17 Fujifilm Corp Information processor, information processing method, and information processing program
CN102555547A (en) * 2010-11-02 2012-07-11 兄弟工业株式会社 Printing apparatus

Similar Documents

Publication Publication Date Title
CN108319654B (en) Computing system, cold and hot data separation method and device, and computer readable storage medium
US9767140B2 (en) Deduplicating storage with enhanced frequent-block detection
US5893139A (en) Data storage device and storage method in which algorithms are provided for calculating access frequencies of data
EP3588259B1 (en) Garbage collection method for storage media, storage medium, and program product
CN103902623B (en) Method and system for the accessing file in storage system
EP3131265A1 (en) Data prefetching method for distributed hash table dht storage system, node, and system
JP5029513B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN103080896A (en) Reordering access to reduce total seek time on tape media
US20170270183A1 (en) Sensor data management apparatus, sensor data management method, and computer program product
JPWO2019181949A1 (en) Recording device, reading device, recording method, recording program, reading method, reading program, and magnetic tape
WO2016101145A1 (en) Controller, method for identifying data block stability and storage system
CN102591864A (en) Data updating method and device in comparison system
JP2009169688A (en) Storage device, data migration device, and data migration method
US6715030B1 (en) Apparatus and method for storing track layout information for performing quick write operations
CN110352410A (en) Track the access module and preextraction index node of index node
US6757804B2 (en) Method and system for reducing fragmentation
JP2003271352A (en) Data management method
CN109753222B (en) Data deleting method, server and computer readable medium
CN111400056A (en) Message queue-based message transmission method, device and equipment
CN111552575A (en) Message queue-based message consumption method, device and equipment
CN101110049B (en) Data recording apparatus and data recording method
CN109196483B (en) Computer system and data storage method
US7421536B2 (en) Access control method, disk control unit and storage apparatus
CN107506156B (en) Io optimization method of block device
JP4466192B2 (en) Information recording apparatus, information recording method, and program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050607