JPS6267629A - File rearranging device - Google Patents

File rearranging device

Info

Publication number
JPS6267629A
JPS6267629A JP60207672A JP20767285A JPS6267629A JP S6267629 A JPS6267629 A JP S6267629A JP 60207672 A JP60207672 A JP 60207672A JP 20767285 A JP20767285 A JP 20767285A JP S6267629 A JPS6267629 A JP S6267629A
Authority
JP
Japan
Prior art keywords
file
files
program
input
output
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
JP60207672A
Other languages
Japanese (ja)
Inventor
Tsutomu Takatani
勉 高谷
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60207672A priority Critical patent/JPS6267629A/en
Publication of JPS6267629A publication Critical patent/JPS6267629A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To rearrange files quickly and accurately and to reduce the average seek operation range of a disc head by executing saving, reallocating, copying, etc. of files through a monitor program and a file rearranging program. CONSTITUTION:A monitor program 4 counts the number of times of physical input/output for a certain time of each file stored in a magnetic disc device 8 and sets the counted value to an input/output count table 3 with a prescribed format. When the measurement object time elapses, the program 4 stops counting and reports it to a terminal equipment 10 and instructs a file rearranging program 5 to start the file rearranging processing. The program 5 sorts files in the order of the number of times of physical input/output and allocates and copies files from the device 8 to a magnetic disc device 9 for saving and reallocates files on the devices 8 in the order of the number of times of physical input/output. Files are copied from the device 9 to the device 8 in file units.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファイル再配置装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a file relocation device.

〔従来の技術〕[Conventional technology]

従来、ディスクヘッドの平均シーク動作範囲を小さくす
る目的で磁気ディスク装置上のファイルを再配置するに
は人手により、ファイル退避、ファイル再アロケート、
ファイル複写等の作業が行なわれ、かつ各ファイルの磁
気ディスク装置上の物理的位置を決定する為の基準とな
る各ファイルに対する物理的入出力回数の計測データの
採取が行なわれていなかった。
Conventionally, in order to reduce the average seek operation range of the disk head, relocation of files on a magnetic disk device requires manual efforts such as file evacuation, file reallocation, and file relocation.
Work such as file copying was performed, and measurement data of the number of physical inputs and outputs for each file, which is a reference for determining the physical location of each file on the magnetic disk device, was not collected.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の再配置方式では以下の問題点がある。す
なわち、 (1)人手による作業である為、作業ミスの発生等が考
えられる。
The conventional relocation method described above has the following problems. That is, (1) Since the work is done manually, errors may occur.

(2)人手による作業である為、作業工数が太きい。(2) Since the work is done manually, the number of man-hours required is high.

(3)各ファイルに対するファイル再配置後の磁気ディ
スク装置上の物理位置は、各ファイルに対する入出力頻
度を計測したデータに基づいた配置ではない為、再配置
後のファイル配置が必ずしもディスクヘッドの平均動作
範囲を小さくしているとはいえない等の問題があった。
(3) The physical location of each file on the magnetic disk device after file relocation is not based on data measuring the input/output frequency for each file, so the file location after relocation is not necessarily the average of the disk heads. There were problems such as the fact that the operating range could not be said to be small.

本発明は前記問題点を解消したファイル再配置装置を提
供するものである。
The present invention provides a file relocation device that solves the above problems.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のファイル再配置装置は磁気ディスク装置上で管
理される各ファイルに対しモニタプログラムが前記各フ
ァイルに対する物理的入出力回数をメモリー装置上のテ
ーブルへ記録する手段と、前記テーブルを入出力回数の
多い順にソートする手段と、該各ファイルを外部記憶装
置上の退避エリアへ格納する手段と、退避エリア上の各
ファイル全前記ソート処理結果により入出力の多いファ
イルの順に退避前の磁気ディスク装置上の領域へ物理的
に隣接させながら再アロケート・複写することにより、
ディスクヘッドの平均シーク動作範囲を小さくするよう
にファイル配置を行う手段とを有することを特徴とする
ものである。
The file relocation device of the present invention includes means for a monitor program to record the number of physical inputs and outputs for each file managed on a magnetic disk device in a table on a memory device, means for sorting each file in descending order of number of inputs and outputs, means for storing each file in an evacuation area on an external storage device, and a magnetic disk device before evacuation in which all files in the evacuation area are sorted in descending order of input/output based on the sorting results. By reallocating and copying while physically adjacent to the area above,
The present invention is characterized by having means for arranging files so as to reduce the average seek operation range of the disk head.

〔実施例〕〔Example〕

次に、本発明の一実施例について図面を参照して説明す
る。
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のファイル再配置システムの
構成図である。電子計算機システム本体lFiメモリー
装置2、中央処理装置6、周辺機器制御装置7で構成さ
れ、メモリー装置2には各ファイルの物理的入出力回数
を記録する入出力カウントテーブル3とモニタプログラ
ム4及びファイル再配置プログラム、5が格納されてい
る。又、周辺機器制御装置7にはファイル再配置の対象
となる磁気ディスク装置8、ファイル再配置処理実行時
における各ファイルの退避用の磁気ディスク装置9、及
びファイル再配置処理プログラム5に対してファイル再
配置処理開始の指示を行う端末装置10が接続されてい
る。第2図は入出力カウントテーブル3のフォーマツ)
を示す。
FIG. 1 is a block diagram of a file relocation system according to an embodiment of the present invention. The main computer system consists of an IFi memory device 2, a central processing unit 6, and a peripheral device control device 7, and the memory device 2 has an input/output count table 3 that records the physical input/output number of each file, a monitor program 4, and files. Relocation program 5 is stored. In addition, the peripheral device control device 7 includes a magnetic disk device 8 that is the target of file relocation, a magnetic disk device 9 for saving each file when file relocation processing is executed, and a file relocation processing program 5. A terminal device 10 that issues an instruction to start relocation processing is connected. Figure 2 is the format of input/output count table 3)
shows.

実施例において、本発明のファイル再配置処理は、次の
ように行なわれる。
In the embodiment, the file relocation process of the present invention is performed as follows.

すなわち、モニタプログラム4はファイル再配置の対象
となる磁気ディスク装置8に格納されている各ファイル
に対する一定時間における物理的入出力回数をカウント
し、第2図のフォーマットで入出力カウントテーブル3
に物理的入出力回数をセットする・モニタグログラム4
は計測対象時間が経過すると、物理的入出力回数のカラ
ントラ停止し、端末装置10に対して、計測終了を通知
する。オペレータは、計測終了通知を受けとると、端末
装置10より、メモリー装置2内に格納されているファ
イル再配置プログラム5に対してファイル再配置処理の
開始稽示を行う。次に、ファイル再配置プログラム5は
各ファイルに対する物理的入出力回数を記録した入出力
カウントテーブル3の内容を各ファイルのファイル名F
i (i =1〜n)に対応する物理入出力回数It(
i=1〜n)に基づき、物理入出力回数の多い順にソー
ト処理を行う。次にファイル再配置プログラム5はファ
イル再配置の対象となる磁気ディスク装置8よシ、各フ
ァイル全ファイル退避用磁気ディスク装置9に対しファ
イルアロケート・複写処理を行う。本処理においては、
ファイル再配置の対象となる磁気ディスク装置8と物理
的に同じ順にファイル退避用磁気ディスク装置9に対し
各ファイルを配置する。
That is, the monitor program 4 counts the number of physical inputs and outputs for each file stored in the magnetic disk device 8 that is the target of file relocation in a certain period of time, and creates an input/output count table 3 in the format shown in FIG.
Set the physical input/output count to ・Monitor program 4
When the measurement target time elapses, the physical input/output count is stopped and the terminal device 10 is notified of the end of the measurement. When the operator receives the measurement completion notification, the operator uses the terminal device 10 to instruct the file relocation program 5 stored in the memory device 2 to start file relocation processing. Next, the file relocation program 5 converts the contents of the input/output count table 3 that records the number of physical input/outputs to each file into the file name F of each file.
The number of physical input/outputs It(
i=1 to n), the sorting process is performed in descending order of the number of physical input/outputs. Next, the file relocation program 5 performs file allocation/copying processing on the magnetic disk device 8 that is the object of file relocation, and on the magnetic disk device 9 for saving all files for each file. In this process,
Each file is placed in the file saving magnetic disk device 9 in the same physical order as the magnetic disk device 8 to which the file is to be relocated.

次に、ファイル再配置プログラム5は、入出力カウント
テーブル3を参照し、物理入出力回数の多い順に各ファ
イルをファイル再配置の対象となる磁気ディスク装置8
に対して再アロケー)k行う。本処理において、各ファ
イルは物理入出力回数の多い順にファイルをシーク距離
が最短となるように隣接させながらアロケートする。
Next, the file relocation program 5 refers to the input/output count table 3 and selects each file in the order of the number of physical input/outputs to the magnetic disk device 8 that is the target of file relocation.
Re-allocation) k is performed. In this process, each file is allocated in the order of the number of physical input/outputs while making the files adjacent to each other so that the seek distance is the shortest.

最後に、ファイル再配置プログラム5はファイル退避用
磁気ディスク装置9より各ファイル全ファイル再配置の
対象となる磁気ディスク装置8ヘファイル単位で複写す
る。
Finally, the file relocation program 5 copies each file from the file saving magnetic disk device 9 to the magnetic disk device 8 that is the target of all file relocation.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は人手介入処理が少ない為、
磁気ディスク上のファイル全迅速かつ正確に再配置する
ことができ、かつ、各ファイルの入出力回数の頻度によ
シフアイル全再配置するため、再配置後のアプリケーシ
ョンプログラムよりの各ファイルに対する入出力動作命
令によるディスクヘッドの平均シーク動作範囲全率さく
できる効果がある。
As explained above, the present invention requires less manual intervention, so
All files on the magnetic disk can be quickly and accurately relocated, and all files can be relocated according to the frequency of input/output for each file, so the application program can perform input/output operations on each file after the relocation. This has the effect of reducing the average seek operation range of the disk head according to instructions.

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

第1図は本発明の実施例を示すファイル再配置システム
構成図、第2図は第1図で示した各ファイルに対する物
理的入出力回数を記録するテーブルのフォーマツ)f示
す図である。 1・・・電子計算機システム本体、2・・・メモリー装
置、3・・・入出力カウントテーブル、4・・・モニタ
プログラム、5・・・ファイル再配置プログラム、6・
・・中央処理装置、7・・・周辺機器制御装置、8・・
・ファイル再配置の対象となる磁気ディスク装置、9・
・・ファイル退避用磁気ディスク装置、10・・・端末
装置。 9I笈(1≦し≦7′L)
FIG. 1 is a configuration diagram of a file relocation system showing an embodiment of the present invention, and FIG. 2 is a diagram showing the format of a table for recording the number of physical inputs and outputs for each file shown in FIG. DESCRIPTION OF SYMBOLS 1... Computer system body, 2... Memory device, 3... Input/output count table, 4... Monitor program, 5... File relocation program, 6...
...Central processing unit, 7...Peripheral device control device, 8...
・Magnetic disk device subject to file relocation, 9.
. . . Magnetic disk device for file saving, 10 . . . Terminal device. 9I 笈 (1≦shi≦7'L)

Claims (1)

【特許請求の範囲】[Claims] (1)磁気ディスク装置上で管理される各ファイルに対
しモニタプログラムが前記各ファイルに対する物理的入
出力回数をメモリー装置上のテーブルに記録する手段と
、前記テーブルを物理的入出力回数の多い順にソートす
る手段と、該各ファイルを外部記憶装置上の退避エリア
へ格納する手段と、退避エリア上の各ファイルを前記ソ
ート処理結果により入出力回数の多いファイルの順に退
避前の磁気ディスク装置上の領域へ物理的に隣接させな
がら再アロケート・複写することによりディスクヘッド
の平均シーク動作範囲を小さくするようにファイル配置
を行う手段とを有することを特徴とするファイル再配置
装置。
(1) means for a monitor program to record the number of physical input/outputs for each file managed on a magnetic disk device in a table on a memory device; means for sorting, means for storing each file in an evacuation area on an external storage device, and storing each file in the evacuation area on a magnetic disk device before evacuation in order of the number of input/outputs based on the sorting processing result; A file relocation device comprising means for arranging files so as to reduce the average seek operation range of a disk head by reallocating and copying files while physically adjoining the area.
JP60207672A 1985-09-19 1985-09-19 File rearranging device Pending JPS6267629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60207672A JPS6267629A (en) 1985-09-19 1985-09-19 File rearranging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60207672A JPS6267629A (en) 1985-09-19 1985-09-19 File rearranging device

Publications (1)

Publication Number Publication Date
JPS6267629A true JPS6267629A (en) 1987-03-27

Family

ID=16543650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60207672A Pending JPS6267629A (en) 1985-09-19 1985-09-19 File rearranging device

Country Status (1)

Country Link
JP (1) JPS6267629A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63271518A (en) * 1987-04-28 1988-11-09 Nec Corp File control system
JPS63314651A (en) * 1987-06-17 1988-12-22 Kyushu Nippon Denki Software Kk File control system for execution of proper entry execution in finite memory space
JPH01237902A (en) * 1988-03-18 1989-09-22 Olympus Optical Co Ltd Information recording system
JPH02306331A (en) * 1989-05-20 1990-12-19 Pfu Ltd Dynamic block acquirement method having physical continuity
JP2000293317A (en) * 1996-04-08 2000-10-20 Hitachi Ltd Storage controller
JP2003271425A (en) * 2003-04-01 2003-09-26 Hitachi Ltd Storage control device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63271518A (en) * 1987-04-28 1988-11-09 Nec Corp File control system
JPS63314651A (en) * 1987-06-17 1988-12-22 Kyushu Nippon Denki Software Kk File control system for execution of proper entry execution in finite memory space
JPH01237902A (en) * 1988-03-18 1989-09-22 Olympus Optical Co Ltd Information recording system
JPH02306331A (en) * 1989-05-20 1990-12-19 Pfu Ltd Dynamic block acquirement method having physical continuity
JP2000293317A (en) * 1996-04-08 2000-10-20 Hitachi Ltd Storage controller
US6446161B1 (en) 1996-04-08 2002-09-03 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller with access frequency and sequential access ratio calculations and display
US6708252B2 (en) 1996-04-08 2004-03-16 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display
US6915382B2 (en) 1996-04-08 2005-07-05 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display
US7069383B2 (en) 1996-04-08 2006-06-27 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display
US7577815B2 (en) 1996-04-08 2009-08-18 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display
US8032733B2 (en) 1996-04-08 2011-10-04 Hitachi, Ltd. Apparatus and method for reallocating logical to physical disk devices using a storage controller with access frequency and sequential access ratio calculations and display
JP2003271425A (en) * 2003-04-01 2003-09-26 Hitachi Ltd Storage control device

Similar Documents

Publication Publication Date Title
JPH02227763A (en) Data transfer control system
CN100407123C (en) Data storage device, reconstruction controlling device, reconstruction controlling method, and storage medium
JPS63113623A (en) Sector buffer control system
EP1313025B1 (en) Direct memory access transfer of data and check information to and from a data storage device
EP0116366B1 (en) Method for controlling storage of data sets in memory unit
JPS6267629A (en) File rearranging device
JP6885193B2 (en) Parallel processing device, job management method, and job management program
JPH01173236A (en) Selecting system for file storage medium
JPS6380344A (en) File rearrangement system
US3913073A (en) Multi-memory computer system
JPH0566975A (en) File rearrangement control system
JPH05100934A (en) Plural magnetic disk file managing functions
JPS601672A (en) Processing method for defective block of magnetic disk device
JP2572032B2 (en) Area reservation method on direct access storage device
JPH03103939A (en) File rearranging system
JP2674693B2 (en) Trace information management method
JPS61233828A (en) Magnetic disc copying device
JPS63318627A (en) System for retrieving data base
JPS61202250A (en) Data area control system
JPH08202503A (en) Disk array device
JPS5987572A (en) Controlling system of disk storage device
JPH0535444A (en) Sorting process system
JPH02299037A (en) File allocation processing system
JPH02242447A (en) Memory dump collecting system
JPH02310720A (en) Optimum allocating system for file