JPH05120091A - Automatic file rearranging device - Google Patents

Automatic file rearranging device

Info

Publication number
JPH05120091A
JPH05120091A JP3275992A JP27599291A JPH05120091A JP H05120091 A JPH05120091 A JP H05120091A JP 3275992 A JP3275992 A JP 3275992A JP 27599291 A JP27599291 A JP 27599291A JP H05120091 A JPH05120091 A JP H05120091A
Authority
JP
Japan
Prior art keywords
file
storage device
auxiliary storage
data
monitoring
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
JP3275992A
Other languages
Japanese (ja)
Inventor
Kazuhiko Aoyama
和彦 青山
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Hokuriku Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Hokuriku Ltd filed Critical NEC Software Hokuriku Ltd
Priority to JP3275992A priority Critical patent/JPH05120091A/en
Publication of JPH05120091A publication Critical patent/JPH05120091A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To attain the shortening of access time, the improvement of data maintainability, and the curtailment of maintenance manhour by automatically rearranging a file in accordance with the frequency in use of the file. CONSTITUTION:The using state of every file is stored in the monitoring file part 7 of a memory 8. The objective period and the judging condition (e.g. number of times of input/output) of monitoring data are inputted by a keyboard 9. In this case, an object to agree with the condition is extracted from the monitoring file part 7, and the number of times of input/output is totalized for every file. Next, as for the totalized data, the number of times of input/ output is rearranged on a key in descending order, and the area control part 4 of a control part 2 secures an area in a saving auxiliary storage device 10 in accordance with this order. Next, a data copying part 5 copies the data of the file from an auxiliary storage device 1 to the saving auxiliary storage device 10, and the rearrangement of the file is completed. After that, the rearranged file in the saving auxiliary storage device 10 is copied to the auxiliary storage device 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はファイル自動再配置装置
に関し、特に補助記憶装置内のファイルの使用状況に応
じてファイルを並び換えるファイル自動再配置装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic file rearrangement apparatus, and more particularly to an automatic file rearrangement apparatus for rearranging files according to the usage status of files in an auxiliary storage device.

【0002】[0002]

【従来の技術】従来例えば補助記憶装置上のファイルの
領域確保順番はそのままでファイル間にある空領域を詰
めて補助記憶装置上の後方に一つの空領域を作りファイ
ルの格納効率を上げるのが一般的であった。又ファイル
の並び換えを行なうにはJCL(ジョブ制御言語)を作
りそれをコンピュータに投入する事でデータの退避、フ
ァイルの並び換えを行うのが一般的であった。
2. Description of the Related Art Conventionally, for example, it is possible to increase the storage efficiency of a file by filling the empty areas between the files while keeping the area reservation order of the files on the auxiliary storage apparatus and creating one empty area at the rear on the auxiliary storage apparatus. It was common. Further, in order to rearrange files, it is common to create JCL (Job Control Language) and put it in a computer to save data and rearrange files.

【0003】[0003]

【発明が解決しようとする課題】しかしながら従来の技
術では、ファイル間の空領域を詰めファイルの格納効率
を高める事はできてもファイル毎の使用頻度を考慮した
ファイル配置でない為、例えばファイルの使用率が高い
にもかかわらず後に配置されていることによりアクセス
時間が多くなり処理時間を遅くするという問題がある。
又ファイルの再配置をするにも補助記憶装置内で管理す
るファイルが多い為、JCL作成作業が煩雑になりJC
L作成ミスによるファイルデータ消失等という問題もあ
る。更に定期的にファイル配置を見直す必要があり保守
工数がかかるという問題もある。
However, in the conventional technique, the empty area between the files can be filled up and the storage efficiency of the files can be improved, but the file placement is not considering the usage frequency of each file. Although the rate is high, there is a problem that the access time increases and the processing time slows down due to the fact that it is placed later.
Also, when relocating files, many files are managed in the auxiliary storage device, making JCL creation work complicated
There is also a problem that file data is lost due to an L creation error. Furthermore, there is also a problem in that it is necessary to periodically review the file layout, which requires maintenance man-hours.

【0004】[0004]

【課題を解決するための手段】本発明のファイル自動再
配置装置は、ファイルの使用状況により再配置を行なう
対象となる補助記憶装置と、再配置を行なうために前記
補助記憶装置のファイルを退避する退避用補助記憶装置
と、その使用状況を監視するモニタリング部と、前記補
助記憶装置の領域を管理し、ファイルの再配置を行なう
領域制御部と、ファイルデータを対象となる前記補助記
憶装置から前記退避用補助記憶装置へ移送するデータコ
ピー部と、モニタリングデータの集計条件を設定する設
定部と、ファイル毎の使用状況からなる前記モニタリン
グデータを格納するモニタリングファイル部と、前記モ
ニタリングデータの集計条件を入力するキーボード部と
を備え、集計された前記モニタリングデータを使用頻度
に応じて並びかえ、その順序に応じてファイルを再配置
しデータをファイル毎にコピーし前記退避用補助記憶装
置に退避した後前記退避用補助記憶装置に記憶された再
配置ファイルを前記補助記憶装置にコピーする。
SUMMARY OF THE INVENTION An automatic file relocation device of the present invention saves a file in the auxiliary storage device for relocation and an auxiliary storage device to be relocated depending on the usage status of the file. From the auxiliary storage device for saving, a monitoring unit for monitoring the usage status thereof, an area control unit for managing the area of the auxiliary storage device and relocating files, and the auxiliary storage device for the file data. A data copy unit for transferring to the backup auxiliary storage device, a setting unit for setting monitoring data totaling conditions, a monitoring file unit for storing the monitoring data including the usage status of each file, and the monitoring data totaling conditions It has a keyboard part for inputting, and rearranges the aggregated monitoring data according to the frequency of use. Copying relocated file stored in the save auxiliary storage device after saving the relocates the file data is copied to each file in the save auxiliary storage device in accordance with the order in the auxiliary storage device.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】図1は本発明のファイル自動再配置装置の
一実施例を示すブロック図である。図2は本発明の一実
施例におけるファイルを再配置す前後の動作を説明する
説明図、図3は本発明の一実施例における動作の一例を
示すフローチャートである。
FIG. 1 is a block diagram showing an embodiment of an automatic file relocation device of the present invention. FIG. 2 is an explanatory diagram for explaining the operation before and after rearranging files in the embodiment of the present invention, and FIG. 3 is a flowchart showing an example of the operation in the embodiment of the present invention.

【0007】本実施例はファイル再配置を行う対象とな
る補助記憶装置1と対象ファイルの使用状況を監視する
モニタリング部3と、補助記憶装置の領域を管理する領
域制御部4と、ファリルデータを移送するデータコピー
部5とからなる制御部2と、モニタリングデータの集計
条件(対象期間,ファイル入出力回数,ファイル使用時
間等)を持つ設定部6と、モニタリングデータを格納す
るモニタリングファイル部7からなるメモリ8と、モニ
タリングデータの集計条件を入力するキーボード9と、
再配置されたファイルを一時的に格納する退避用補助記
憶装置10とから構成されている。
In this embodiment, the auxiliary storage device 1 which is the object of file relocation, the monitoring unit 3 which monitors the usage status of the target file, the area control unit 4 which manages the area of the auxiliary storage device, and the faril data. A control unit 2 including a data copy unit 5 for transferring data, a setting unit 6 having monitoring data tabulation conditions (target period, file input / output count, file usage time, etc.), and a monitoring file unit 7 for storing monitoring data. A memory 8 and a keyboard 9 for inputting the tabulation conditions of monitoring data,
The backup auxiliary storage device 10 temporarily stores the rearranged files.

【0008】メモリ8の設定部6には、キーボード9か
らオペレータによって入力された使用状況の判断条件
(入出力回数,使用時間)が設定される。またモニタリ
ングファイル部7には、各ファイル毎の使用状況(ファ
イル名,計測時間,入出力回数,使用時間等)が格納さ
れている。
In the setting section 6 of the memory 8, the condition of use judgment (input / output count, use time) inputted by the operator from the keyboard 9 is set. The monitoring file unit 7 stores the usage status (file name, measurement time, input / output count, usage time, etc.) of each file.

【0009】次に動作を説明する。Next, the operation will be described.

【0010】図2は本装置によってファイルの再配置を
開始する前の補助記憶装置1の状態51とファイル再配
置後の退避用補助記憶装置10の状態52を示した図の
一例である。これを図3のフローチャートによって説明
する。
FIG. 2 is an example of a diagram showing a state 51 of the auxiliary storage device 1 before starting relocation of files by this apparatus and a state 52 of the save auxiliary storage device 10 after relocation of files. This will be described with reference to the flowchart of FIG.

【0011】まず使用状況を判定する為、モニタリング
データの対象期間(例えば1990年8月1日から19
90年9月30日)と判定条件(入出力回数)をキーボ
ード9によりオペレータが入力する。この条件にあった
ものをモニタリングファイル部7から抽出し、ファイル
毎に入出力回数を集計する(ステップ101)。その結
果、例えばファイルA20000回,ファイルC100
00回,ファイルD0回,ファイルE1000回,ファ
イルG50000回とする。次に集計されたデータを入
出力回数をキーに降順に並べ換えを行う(ステップ10
2)と、ファイルG,ファイルA,ファイルC,ファイ
ルE,ファイルDの順に並ぶ。このデータを1件読み込
む(ステップ103)。読込まれたデータからファイル
名Gをとり込み補助記憶装置1内ののVTOC(VOL
UME TABLE OF CONTENTS)のファ
イルラベル情報(ファイル編成,ファイルの大きさ,レ
コード長,ブロック長,レコード形式,キー長,領域確
保の位置等)をもとに領域開始位置をVTOCの近傍に
して領域制御部4が退避用補助記憶装置10に領域を確
保する(ステップ104)。次にデータコピー部5が補
助記憶装置1から退避用補助記憶装置10へファイルG
のデータをコピーする(ステップ105)。この読み込
みからファイル領域確保データコピー迄の一連の処理を
データが存在する間くり返す事によってファイル再配置
は完了する。最後に退避用補助記憶装置10から補助記
憶装置1へ装置の先頭から順にコピーする事で全処理は
終了する(ステップ106)。この結果VTOCの近傍
からファイルG,A,C,D,Bの順に詰めて確保さ
れ、空領域B,Fは1つの空領域Hとなる。
First, in order to determine the usage status, the period covered by the monitoring data (for example, from August 1, 1990 to 19
The operator inputs the determination condition (the number of input / output times) on September 30, 1990 using the keyboard 9. Those that meet this condition are extracted from the monitoring file unit 7 and the input / output count is totaled for each file (step 101). As a result, for example, file A 20000 times, file C 100
00 times, file D0 times, file E1000 times, and file G50000 times. Next, the aggregated data is rearranged in descending order using the input / output count as a key (step 10).
2), file G, file A, file C, file E, and file D are arranged in this order. One piece of this data is read (step 103). The file name G is fetched from the read data and the VTOC (VOL
Set the area start position near the VTOC based on the file label information (file organization, file size, record length, block length, record format, key length, position of area reservation, etc.) of UME TABLE OF CONTENTS The control unit 4 reserves an area in the backup auxiliary storage device 10 (step 104). Next, the data copy unit 5 transfers the file G from the auxiliary storage device 1 to the backup auxiliary storage device 10.
Data of the above is copied (step 105). File rearrangement is completed by repeating a series of processes from the reading to the file area secured data copy while the data exists. Finally, the entire process is completed by copying from the backup auxiliary storage device 10 to the auxiliary storage device 1 in order from the beginning of the device (step 106). As a result, the files G, A, C, D, and B are secured in the order from the vicinity of VTOC, and the empty areas B and F become one empty area H.

【0012】尚、一連の処理の流れはデータの読み込
み、領域確保までを一括で行なった後データコピーを行
なってもよい。又この例では入出力回数によって使用状
況を判定したが使用時間であってもよい。
The series of processing flow may be such that data reading and data acquisition are collectively performed and then data copying is performed. Further, in this example, the usage status is determined by the number of times of input / output, but it may be usage time.

【0013】[0013]

【発明の効果】以上説明したように本発明によればファ
イルの入力あるいは使用時間等の数値データに基づき、
ファイルの配置位置を論理構造はそのままに並び換える
事により使用頻度の高いものからVTOCの近傍に配置
される為、ファイルへのアクセス時間が短かくなるとい
う効果がある。又、オペレータはJCL等を作らなくて
もよい為、作成ミスによるファイルの消失等の誤りも防
止出来る。更に、空領域が装置後方で一つにまとめられ
る事によりファイルの格納効率も向上する。
As described above, according to the present invention, based on numerical data such as file input or usage time,
By rearranging the file arrangement positions while maintaining the logical structure as it is, the files are arranged in the vicinity of the VTOC from the most frequently used one, so that the access time to the file is shortened. Further, since the operator does not have to create the JCL or the like, it is possible to prevent an error such as loss of a file due to a mistake in creation. Furthermore, the storage efficiency of files is also improved by unifying the empty areas at the rear of the device.

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

【図1】本発明のファイル自動再配置装置の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an automatic file relocation device of the present invention.

【図2】本実施例のファイル自動再配置装置におけるフ
ァイルを再配置する前後の動作を説明する説明図であ
る。
FIG. 2 is an explanatory diagram illustrating operations before and after relocating a file in the automatic file relocating apparatus according to the present exemplary embodiment.

【図3】本実施例のファイル自動再配置装置における動
作の一例を示すフローチャート図である。
FIG. 3 is a flow chart diagram showing an example of an operation in the automatic file relocation apparatus of the present exemplary embodiment.

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

1 補助記憶装置 2 制御部 3 モニタリング部 4 領域制御部 5 データコピー部 6 設定部 7 モニタリングファイル部 8 メモリ 9 キーボード 10 補助記憶装置 51 ファイル再配置前の補助記憶装置 52 ファイル再配置後の退避用補助記憶装置 1 auxiliary storage device 2 control unit 3 monitoring unit 4 area control unit 5 data copy unit 6 setting unit 7 monitoring file unit 8 memory 9 keyboard 10 auxiliary storage device 51 auxiliary storage device before file relocation 52 for saving after file relocation Auxiliary storage

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ファイルの使用状況により再配置を行な
う対象となる補助記憶装置と、再配置を行なうために前
記補助記憶装置のファイルを退避する退避用補助記憶装
置と、その使用状況を監視するモニタリング部と、前記
補助記憶装置の領域を管理し、ファイルの再配置を行な
う領域制御部と、ファイルデータを対象となる前記補助
記憶装置から前記退避用補助記憶装置へ移送するデータ
コピー部と、モニタリングデータの集計条件を設定する
設定部と、ファイル毎の使用状況からなる前記モニタリ
ングデータを格納するモニタリングファイル部と、前記
モニタリングデータの集計条件を入力するキーボード部
とを備え、集計された前記モニタリングデータを使用頻
度に応じて並びかえ、その順序に応じてファイルを再配
置しデータをファイル毎にコピーし前記退避用補助記憶
装置に退避した後前記退避用補助記憶装置に記憶された
再配置ファイルを前記補助記憶装置にコピーすることを
特徴とするファイル自動再配置装置。
1. An auxiliary storage device to be relocated according to the usage status of a file, a backup auxiliary storage device that saves a file in the auxiliary storage device for relocation, and the usage status thereof is monitored. A monitoring unit, an area control unit that manages the area of the auxiliary storage device and relocates files, and a data copy unit that transfers file data from the target auxiliary storage device to the backup auxiliary storage device, The aggregated monitoring is provided with a setting unit that sets the aggregation condition of the monitoring data, a monitoring file unit that stores the monitoring data including the usage status of each file, and a keyboard unit that inputs the aggregation condition of the monitoring data. Sort the data according to the frequency of use, rearrange the files according to the order, and save the data. A file automatic relocation device, characterized in that the relocation file stored in the evacuation auxiliary storage device is copied to the auxiliary storage device after being copied for each file and saved in the evacuation auxiliary storage device.
JP3275992A 1991-10-24 1991-10-24 Automatic file rearranging device Pending JPH05120091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3275992A JPH05120091A (en) 1991-10-24 1991-10-24 Automatic file rearranging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3275992A JPH05120091A (en) 1991-10-24 1991-10-24 Automatic file rearranging device

Publications (1)

Publication Number Publication Date
JPH05120091A true JPH05120091A (en) 1993-05-18

Family

ID=17563265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3275992A Pending JPH05120091A (en) 1991-10-24 1991-10-24 Automatic file rearranging device

Country Status (1)

Country Link
JP (1) JPH05120091A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH103412A (en) * 1996-06-19 1998-01-06 Nec Software Ltd Magnetic disk file relocation system
WO2013076795A1 (en) * 2011-11-21 2013-05-30 株式会社日立製作所 Management device and management method for storage device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH103412A (en) * 1996-06-19 1998-01-06 Nec Software Ltd Magnetic disk file relocation system
WO2013076795A1 (en) * 2011-11-21 2013-05-30 株式会社日立製作所 Management device and management method for storage device
JPWO2013076795A1 (en) * 2011-11-21 2015-04-27 株式会社日立製作所 Storage device management device and management method
US9026759B2 (en) 2011-11-21 2015-05-05 Hitachi, Ltd. Storage system management apparatus and management method

Similar Documents

Publication Publication Date Title
US5133066A (en) Method for selecting multiple versions of data in a reduced record units text editing system
US5794255A (en) Processing apparatus and method of moving virtual storage resources between disk units
JPH05120091A (en) Automatic file rearranging device
US20070226172A1 (en) File-management apparatus, file-management method, and computer product
US7139884B2 (en) Method, apparatus and computer program product for implementing enhanced autonomic backup using multiple backup devices
JPH07182232A (en) Information processor
JPH07121410A (en) Archiving method
JPH05324734A (en) Electronic filing device
JPH05151037A (en) Reorganization processing system for database in business processing
JPH10240593A (en) Information processing system and its file managing method
JP2641399B2 (en) File management device
JP3585264B2 (en) Database system and data retrieval method
JPH0883203A (en) Data managing device
JPH0535414A (en) Magnetic tape file access system
JPH05143422A (en) Updated journal managing system
JPH0488413A (en) Input source selection type key input system
JPH04115332A (en) File managing device
GB2262370A (en) Database management.
JPH06274404A (en) Data storage managing method
JPS62229345A (en) File multiplexing system
JPH05342208A (en) Text file editing device and its file selection method
JPH0561741A (en) File writing system
JPS60256851A (en) Logging processing system
JPH0682334B2 (en) Management processing device for management table
JPH06175785A (en) Medium group management system in collective storage device