JPS6162923A - Access system for file - Google Patents

Access system for file

Info

Publication number
JPS6162923A
JPS6162923A JP59186025A JP18602584A JPS6162923A JP S6162923 A JPS6162923 A JP S6162923A JP 59186025 A JP59186025 A JP 59186025A JP 18602584 A JP18602584 A JP 18602584A JP S6162923 A JPS6162923 A JP S6162923A
Authority
JP
Japan
Prior art keywords
file
disk
stored
files
physical address
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
JP59186025A
Other languages
Japanese (ja)
Inventor
Katsuhiko Okamoto
勝彦 岡本
Koichi Kanemoto
浩一 金元
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59186025A priority Critical patent/JPS6162923A/en
Publication of JPS6162923A publication Critical patent/JPS6162923A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To retrieve a physical address at a high speed by providing an area where physical addresses of files stored on a disk are stored, and storing file names and physical addresses of files which are accessed frequently in the area. CONSTITUTION:A processor 1 reads a program out of an ROM3 and begins to operate, and stores a program from a disk 6 in an RAM2 through a disk control circuit 7. This RAM2 is provided with a VTO (control ledger) reference tape 20 and the processor 1 extracts a file which is used frequently and stores its file name and physical address. When this storage area becomes full, the file which is stored for the 1st time is expelled and a new file is stored. Consequently, the processor 1 refers to said table 20 when reading a file out of the disk 6 and then reads the file in a following physical address from a target sector number if finding the target file name.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディスク等の外部記憶装置に格納されるファイ
ルをアクセスする方式に係り、特に該ファイルをアクセ
スするために必要な物理アドレスの索引時間を短縮する
外部記憶ファイルのアクセス方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for accessing files stored in an external storage device such as a disk, and particularly relates to a system for accessing a file stored in an external storage device such as a disk, and particularly relates to a system for accessing a physical address indexing time required to access the file. This invention relates to an external storage file access method that shortens the process.

最近、各種情報処理装置の普及に伴い、インテリジェン
トターミナル装置も多数用いられるようになって来た。
Recently, with the spread of various information processing devices, many intelligent terminal devices have come into use.

そしてこのインテリジェントターミナル装置に対する機
能も拡充され、多数のファイルを格納して処理する必要
があり、通常このファイルは記憶容量の大きなディスク
等の外部記憶装置に格納される。
The functions of this intelligent terminal device have also been expanded, and it is necessary to store and process a large number of files, and these files are usually stored in an external storage device such as a disk with a large storage capacity.

外部記憶装置に格納されるファイルは一般に作成順に従
って順次ディスク等に格納され、物理アドレスが付与さ
れる。従って一番アクセスする頻度の高い最新のファイ
ルの物理アドレスが最後に付与されることとなるが、こ
の最新ファイルの物理アドレスを索引するための時間は
長くならないことが必要である。
Generally, files stored in an external storage device are sequentially stored on a disk or the like in the order in which they were created, and are assigned physical addresses. Therefore, the physical address of the latest file that is accessed most frequently is assigned last, but it is necessary that the time required to index the physical address of this latest file does not become long.

〔従来の技術〕[Conventional technology]

第3図はインテリジェントターミナル装置の一例を示す
回路のブロック図である。
FIG. 3 is a block diagram of a circuit showing an example of an intelligent terminal device.

プロセ・ノサ1はROM3に格納されている初期プログ
ラムロード用のプログラムを読出して動作を開始し、デ
ィスク制御回路7を経てディスク6からプログラムをR
AM2に格納する。そしてこのプログラムの指示により
動作する。
The processor 1 reads the program for initial program loading stored in the ROM 3, starts operation, and loads the program from the disk 6 via the disk control circuit 7.
Store in AM2. It operates according to instructions from this program.

オペレータが操作するキーボード9からはキーボード制
御回路8を経て命令やデータが入力される。プロセッサ
1はこの命令に基づきジョブを遂行し、入力されたデー
タに基づきファイルを作成して一旦RAM2に格納する
。又インタフェース制御回路10から入る上位装置から
のファイルも一旦RAM2に格納する。又更に表示制御
回路4を制御して表示すべきデータを表示部5に表示さ
せる。
Commands and data are input from a keyboard 9 operated by an operator via a keyboard control circuit 8. The processor 1 executes the job based on this instruction, creates a file based on the input data, and temporarily stores it in the RAM 2. Furthermore, files from the higher-level device that enter through the interface control circuit 10 are also temporarily stored in the RAM 2. Furthermore, the display control circuit 4 is controlled to display the data to be displayed on the display section 5.

ここでプロセッサ1はRAM2に一旦格納したファイル
を順次ディスク制御回路7を制御してディスク6に格納
する。この場合ファイルは作成された順にディスク6に
格納される。
Here, the processor 1 sequentially controls the disk control circuit 7 to sequentially store the files once stored in the RAM 2 on the disk 6. In this case, the files are stored on the disk 6 in the order in which they were created.

第4図はディスクの構成の一例を説明する図である。FIG. 4 is a diagram illustrating an example of the configuration of a disk.

例えば磁気ディスクの場合11〜14に示す如く磁気デ
ィスク円板は複数で構成され、各磁気ディスク円板11
〜14には複数のトラックが形成され、回転軸19から
同一距離にある総てのトランクはシリンダと呼ばれる一
単位となっている。
For example, in the case of a magnetic disk, there are a plurality of magnetic disk disks as shown in 11 to 14, and each magnetic disk disk 11
14 are formed with a plurality of tracks, and all the trunks located at the same distance from the rotating shaft 19 form one unit called a cylinder.

例えば点線で示す15〜18は一つのシリンダである。For example, numbers 15 to 18 indicated by dotted lines are one cylinder.

又トランクはセクタと呼ばれる複数の領域に区分されて
いる。
The trunk is also divided into multiple areas called sectors.

第51!Iはディスクに格納するファイルの管理方法の
一例を説明する図である。
51st! I is a diagram illustrating an example of a method for managing files stored on a disk.

例えば第4図のシリンダ内トランク15には第5図に示
す如く、ボリュームラベルに続いてVTOCと呼ばれる
管理台帳が形成されている。即ちVTOCリストとして
A、B、Cの如く、ファイルがディスクに格納さた順に
リストが書込まれる。
For example, as shown in FIG. 5, in the cylinder trunk 15 in FIG. 4, a management ledger called VTOC is formed following the volume label. That is, the VTOC list is written in the order in which files are stored on the disk, such as A, B, and C.

このリストは制御情報に続いて位置情報がファイル名と
物理アドレスを示すシリンダ番号、トランク番号(ヘッ
ド番号で示されることもある)、セクタ番号として書込
まれ、続いてこのファイルの使用状況が書込まれている
This list consists of control information, followed by location information as the file name, cylinder number indicating the physical address, trunk number (sometimes indicated by a head number), and sector number, followed by the usage status of this file. It's included.

このシリンダ番号、トランク番号及びセクタ番号から成
る物理アドレスに従いファイルは磁気ディスク円板12
,13.14のいずれかのトラックに格納される。従っ
てディスク6に格納されているファイルを読出す場合、
トランク15にある上記の位置情報のファイル名から該
当する物理アドレスを読出し、目的とするファイルの格
納位置を知ることでアクセスすることが可能となる。
Files are transferred to the magnetic disk disk 12 according to the physical address consisting of this cylinder number, trunk number and sector number.
, 13, 14. Therefore, when reading a file stored on disk 6,
By reading the corresponding physical address from the file name of the above location information in the trunk 15 and knowing the storage location of the target file, it is possible to access the file.

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

−F記の如く、ディスクに格納されているファイルを読
出すには、まず目的ファイルのファイル名に基づき格納
位置を示す物理アドレスの索引を行う必要がある。この
物理アドレスの索引は第4図トランク15上にヘッドを
位置付けし、ボリュームラベルから順にVTOCリスト
の位置情報を読出す物理的動作を必要とする。
In order to read a file stored on a disk, as in F.-F, it is first necessary to index the physical address indicating the storage location based on the file name of the target file. This physical address index requires the physical operation of positioning the head on the trunk 15 in FIG. 4 and sequentially reading out the position information of the VTOC list starting from the volume label.

前記の如く最新作のファイル程VTOCリストの最後に
記録されるため、ディスクに格納されるファイル数が多
くなるに従い、物理アドレスの索引に時間がかかること
になる。
As mentioned above, the newest files are recorded at the end of the VTOC list, so as the number of files stored on the disk increases, it takes more time to index the physical addresses.

最近はマイクロディスクの如くアクセスは遅いが大容量
のディスクが使用されるようになり、この場合は特に多
くの時間が必要で、しがも最新のファイル程アクセスす
る機会が多いため、この物理アドレス索引時間の損失は
大きく対策を必要とする状態となっている。
Recently, disks with slow access but large capacity, such as micro disks, are being used, and in this case, a particularly large amount of time is required, and since the latest files have more opportunities to be accessed, the physical address The loss of indexing time is large and requires countermeasures.

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

上記問題点は、複数のファイルを格納する記憶装置と高
速記憶部とを備え、前記ファイルを前記記憶装置から読
出して処理するシステムにおいて、前記高速記憶部に前
記記憶装置に格納されるファイルの物理アドレスを格納
するテーブルを設け、該テーブルには最も新しくアクセ
スしたファイルの物理アドレスを格納し、最も古くアク
セスしたファイルの物理アドレスを削除するように制御
し、記憶装置のファイルをアクセスする際には前記テー
ブルを参照するようにした、本発明のファイルのアクセ
ス方式によって解決される。
The problem described above is that in a system that includes a storage device that stores a plurality of files and a high-speed storage unit, and reads the files from the storage device and processes them, the high-speed storage unit stores the files stored in the storage device. A table for storing addresses is provided, the physical address of the most recently accessed file is stored in the table, the physical address of the oldest accessed file is controlled to be deleted, and when accessing a file on the storage device, This problem is solved by the file access method of the present invention, which refers to the table.

〔作用〕[Effect]

即ち高速記憶部に記憶装置であるディスクに格納されて
いるファイルの物理アドレスを記憶する領域を設け、こ
の領域に複数の頻繁にアクセスされるファイルのファイ
ル名とその物理アドレスとを記憶させ、古いものから消
去し、その代わりに新しいものを記憶させるようにして
、頻繁にアクセスされるファイルのディスク上における
物理アドレスが當に高速記憶部で検索出来るようにした
ものである。
In other words, an area is provided in the high-speed storage unit to store the physical addresses of files stored on the disk, which is a storage device, and this area is used to store the file names and physical addresses of multiple frequently accessed files. By erasing old files and storing new ones in their place, the physical addresses on the disk of frequently accessed files can be retrieved in high-speed storage.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示す回路のブロック図であ
る。
FIG. 1 is a block diagram of a circuit showing one embodiment of the present invention.

第1図は第3図のRAM2にVTOC参照テーブル20
を設けたもので、第2図はこのVTOC参照テーブル2
0の一例を示す図である。
Figure 1 shows the VTOC reference table 20 in RAM2 in Figure 3.
Figure 2 shows this VTOC reference table 2.
It is a figure which shows an example of 0.

プロセッサ1は第2図に示す如く、日常頻繁に使用され
るファイルを抽出して、該当するファイル名と物理アド
レスを記憶させる。即ちファイルaとこのシリンダ番号
、トランク番号、セクタ番号を記憶させる。若し記憶領
域が一杯となった場合は一番最初に格納されたファイル
nを追い出し、新しいファイルをファイルaの位置に格
納する。
As shown in FIG. 2, the processor 1 extracts files that are frequently used on a daily basis and stores the corresponding file names and physical addresses. That is, file a and its cylinder number, trunk number, and sector number are stored. If the storage area becomes full, the first stored file n is evicted and a new file is stored in the location of file a.

即ち新しいファイルが入ると、旧いファイルが追い出さ
れるようにした更新方法を用いる。
That is, an update method is used in which when a new file is entered, an old file is removed.

ここでプロセッサ1はディスク6からファイルを読出ず
時、ファイルの格納位置を知るため、まずRAM2のV
TOC参照テーブル20を参照する。V T’ OC参
照テーブル20に目的のファイル名を発見した場合は、
それに続く物理アドレスを用いて直ちにファイルの存在
するシリンダにへ・ノドを位置付けさせ、目的のセクタ
番号からファイルを読出す。
Here, when the processor 1 does not read the file from the disk 6, in order to know the storage location of the file, it first reads the V of the RAM 2.
Refer to the TOC reference table 20. If you find the desired file name in the V T' OC reference table 20,
The next physical address is used to immediately position the head to the cylinder where the file exists, and the file is read from the target sector number.

若しVTOC参照テーブル20に目的のファイル名が存
在しない場合は、従来と同様トラック15から順次VT
OCリストを読出して目的のファイル名を索引する。こ
の場合前記の如くこのファイル名と物理アドレスをVT
OC参照テーブル20に格納する。
If the desired file name does not exist in the VTOC reference table 20, the VT
Read the OC list and index the target file name. In this case, as mentioned above, enter this file name and physical address in the VT
Stored in the OC reference table 20.

VTOC参照テーブル20に格納するファイル数はRA
M2の容量とディスクに格納されるファイル数とにより
、適宜選択することが出来る。
The number of files stored in the VTOC reference table 20 is RA
An appropriate selection can be made depending on the capacity of M2 and the number of files stored on the disk.

(発明の効果〕 以上説明した如く、本発明は大容量でアクセスの遅いデ
ィスクに格納されるファイルを読出す場合、頻繁に読出
されるファイルの物理アドレスの索引時間を省略するこ
とが可能である。
(Effects of the Invention) As explained above, when reading a file stored on a large-capacity, slow-access disk, the present invention makes it possible to omit the time required to index the physical address of a file that is frequently read. .

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

第1図は本発明の一実施例を示す回路のブロック図、 第2図はVTOC参照テーブルの一例を示す図、第3図
はインテリジェントターミナル装置の一例を示す回路の
ブロック図、 第4図はディスクの構成の一例を説明する図、第5図は
ディスクに格納するファイルの管理方法の一例を説明す
る図である。 図において 1はプロセッサ、   2はRAM。 3はROM、     4は表示制御回路、5は表示部
、      6はディスク、7はディスク制御回路、 8はキーボード制御回路、 9はキーボード、 10はインタフェース制御回路、 11〜14は磁気ディスク円板、 15〜18は一つのシリンダを構成したトラ・ツク、1
9は回転軸、 20はVTOC参照テーブルである。
FIG. 1 is a block diagram of a circuit showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of a VTOC reference table, FIG. 3 is a block diagram of a circuit showing an example of an intelligent terminal device, and FIG. 4 is a block diagram of a circuit showing an example of an intelligent terminal device. FIG. 5 is a diagram illustrating an example of the configuration of a disk, and FIG. 5 is a diagram illustrating an example of a method for managing files stored on the disk. In the figure, 1 is a processor, and 2 is a RAM. 3 is a ROM, 4 is a display control circuit, 5 is a display section, 6 is a disk, 7 is a disk control circuit, 8 is a keyboard control circuit, 9 is a keyboard, 10 is an interface control circuit, 11 to 14 are magnetic disk disks, 15 to 18 are trucks that constitute one cylinder, 1
9 is a rotation axis, and 20 is a VTOC reference table.

Claims (1)

【特許請求の範囲】[Claims] 複数のファイルを格納する記憶装置と高速記憶部とを備
え、前記ファイルを前記記憶装置から読出して処理する
システムにおいて、前記高速記憶部に前記記憶装置に格
納されるファイルの物理アドレスを格納するテーブルを
設け、該テーブルには最も新しくアクセスしたファイル
の物理アドレスを格納し、最も古くアクセスしたファイ
ルの物理アドレスを削除するように制御し、記憶装置の
ファイルをアクセスする際には前記テーブルを参照する
ことを特徴とするファイルのアクセス方式。
In a system that includes a storage device for storing a plurality of files and a high-speed storage unit, and reads and processes the files from the storage device, a table stores physical addresses of files stored in the storage device in the high-speed storage unit. The table stores the physical address of the most recently accessed file, controls to delete the physical address of the oldest accessed file, and refers to the table when accessing a file in the storage device. A file access method characterized by:
JP59186025A 1984-09-05 1984-09-05 Access system for file Pending JPS6162923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59186025A JPS6162923A (en) 1984-09-05 1984-09-05 Access system for file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59186025A JPS6162923A (en) 1984-09-05 1984-09-05 Access system for file

Publications (1)

Publication Number Publication Date
JPS6162923A true JPS6162923A (en) 1986-03-31

Family

ID=16181076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59186025A Pending JPS6162923A (en) 1984-09-05 1984-09-05 Access system for file

Country Status (1)

Country Link
JP (1) JPS6162923A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6433626A (en) * 1987-07-29 1989-02-03 Nec Corp Data file reading system
JPH0619041U (en) * 1992-07-31 1994-03-11 日本ビクター株式会社 File device
JP2010272000A (en) * 2009-05-22 2010-12-02 Fujitsu Ten Ltd Content reproducing device and control program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57153356A (en) * 1981-03-19 1982-09-21 Yokogawa Hokushin Electric Corp Auxiliary storage controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57153356A (en) * 1981-03-19 1982-09-21 Yokogawa Hokushin Electric Corp Auxiliary storage controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6433626A (en) * 1987-07-29 1989-02-03 Nec Corp Data file reading system
JPH0619041U (en) * 1992-07-31 1994-03-11 日本ビクター株式会社 File device
JP2010272000A (en) * 2009-05-22 2010-12-02 Fujitsu Ten Ltd Content reproducing device and control program

Similar Documents

Publication Publication Date Title
US4575827A (en) Self-archiving data recording
JP2998857B2 (en) Structured data storage method and medium
US5890208A (en) Command executing method for CD-ROM disk drive
US6397311B1 (en) System and method for defragmenting a file system
US5029125A (en) Method of reading and writing files on nonerasable storage media
JP2888958B2 (en) File management method for partially rewritable storage media
JPH0675897A (en) Method and device for managing buffer memory for allowing division
JPS6162923A (en) Access system for file
US6209057B1 (en) Storage device having data buffer
JPH06124239A (en) Resident data controller for cache memory
JPH07182232A (en) Information processor
JP2901543B2 (en) Magnetic disk file relocation method
JPH0644118A (en) File backup system
JPH0477938A (en) Data storage method
JPH02151944A (en) Data processor
JPH03225412A (en) File data read system
JPH09293007A (en) Program install device
JPH073661B2 (en) Information processing system and control method thereof
JPS62177642A (en) File management system for postscript filing device
JPH04182970A (en) Data storage system
JPH01258288A (en) Directory retrieving method
JPH0283639A (en) File generation control method
JPH04116737A (en) Electronic filing device
JPH03263244A (en) Cache memory data write back system
JPH06149647A (en) Multi-media file managing system