JPS60224178A - Accessing system of indexing order forming file using disk cash - Google Patents

Accessing system of indexing order forming file using disk cash

Info

Publication number
JPS60224178A
JPS60224178A JP8136484A JP8136484A JPS60224178A JP S60224178 A JPS60224178 A JP S60224178A JP 8136484 A JP8136484 A JP 8136484A JP 8136484 A JP8136484 A JP 8136484A JP S60224178 A JPS60224178 A JP S60224178A
Authority
JP
Japan
Prior art keywords
external storage
index
stored
disk cache
storage medium
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
JP8136484A
Other languages
Japanese (ja)
Inventor
Koji Ishimaru
浩二 石丸
Shigeo Furukawa
古川 茂雄
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
Nippon Electric Co 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 Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP8136484A priority Critical patent/JPS60224178A/en
Publication of JPS60224178A publication Critical patent/JPS60224178A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the accessing efficiency of an indexing order forming file, by storing index sections in different locations at every external recording media when the indexing order forming file is created. CONSTITUTION:When a indexing order forming file is newly created to an external recording medium 2, index sections Ia'-In' of the medium 2 are respectively stored in different blocks, such as B0, B1,-Bk, Bk+1. When a host device accesses the index section Ia' to fetch the content of Da', for example, a block Da'1, the index section Ia' is stored in the sets S0 and S1 of the level L0 of a disk cash 3 by means of an external storage controller. When the external storage controller is accessed thereafter to fetch the Da'1, necessary data are read from a recording medium 2a and sent to the host device. When the index section Ib' is accessed, the index section Ib' is stored in the sets S2 and S3 of the level L0 of the disk cash 3 correspondingly to the blocks B2 and B3. Since no overlay storage of the index section to the disk case 3 is made, the accessing efficiency is improved.

Description

【発明の詳細な説明】 (技術分野) 本発明は、外部記憶媒体ごとに索引部をもつ複数外部記
憶媒体から成る索引順編成ファイルをディスクキャッシ
ュを使用してアクセスするディスクキャッシュを使用す
る索引順編成ファイルのアクセス方式に関する。
Detailed Description of the Invention (Technical Field) The present invention provides an index order method using a disk cache that uses a disk cache to access an index order organization file consisting of a plurality of external storage media each having an index section. Concerning access methods for organizational files.

(従来技術) 従来、この種の索引順編成ファイルにディスクキャッシ
ュを使用した場合、外部記憶媒体ごとの索引部はディス
クキャッシュの同一位置にマツピングされるため、アク
セス頻度の高い索引部をディスクキャッシュ上に常駐化
できないという欠点がある。このことを図面を用いて説
明する。
(Prior art) Conventionally, when a disk cache is used for this type of indexed sequential file, the index section for each external storage medium is mapped to the same location in the disk cache, so the frequently accessed index section is not stored in the disk cache. The disadvantage is that it cannot be made permanent. This will be explained using drawings.

第1図は索引順編成ファイルをディスクキャシュを使用
してアクセスする方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a method for accessing index sequential files using a disk cache.

第1:図のアクセス方式は外部記憶装置1と、磁気ディ
スクよシ構成され索引編成ファイルが格納されている外
部記憶媒体2と、ディスクキャシュ3と、上位装置よシ
のアクセス要求によって外部記憶装置1、ディスクキャ
シュ3を制御して必要なデータを取シ出す外部記憶制御
装置4とから構成される。
1st: The access method shown in the figure is an external storage device 1, an external storage medium 2 which is composed of a magnetic disk and stores indexed files, a disk cache 3, and an external storage device according to an access request from a host device. 1, an external storage control device 4 that controls the disk cache 3 and retrieves necessary data;

第2図は従来のアクセス方式のデータ格納図をいる。以
下外部記憶媒体2と呼ぶときは外部記憶媒体全体を表わ
すものとする。外部記憶媒体2上には、物理的なアクセ
ス単位であるブロックB0゜B、・・・毎に情報が記録
されている。ここで外部記憶媒体2の索引順編成ファイ
ルの構成は、ブロックB0.およびB、の2ブロツクか
らなる索引部工a。
FIG. 2 shows a data storage diagram of the conventional access method. Hereinafter, when the external storage medium 2 is referred to, it refers to the entire external storage medium. Information is recorded on the external storage medium 2 for each block B0°B, . . . which is a physical access unit. Here, the structure of the index sequential file of the external storage medium 2 is block B0. Index section construction a consists of two blocks: and B.

より、・・・Ik、・・・Inと、複数ブロックのデー
タ部Da。
. . . Ik, . . In, and a plurality of blocks of data portion Da.

Db、・・・pnよシなっている。Db,...pn are getting worse.

第2図Φ)に示したディスクキャシュ3は、列単位で示
されるi個のセット80〜8 i−1と、行単位で示さ
れるj個めレベルL0〜Lj−1とに分割された高速メ
モリで構成されておシ、セット内のレベル1個(例えば
セラ)8o−レベルLD)は、外部記憶媒体2のブロッ
ク(例えばB6)と同等の容量をもつている。
The disk cache 3 shown in FIG. Consisting of memories, one level in the set (e.g. 8o-level LD) has a capacity equivalent to a block (e.g. B6) of the external storage medium 2.

いま、ディスクキャシュ3が初期状態で上位装置から外
部記憶制御装置4に対し、外部記憶媒体2aのデータD
atを取出すために索引部Iaへのアクセスがなされた
とする。外部記憶制御装置4は、ディスクキャシェ3が
初期状態であることから外部記憶媒体2aに対してデー
タの4読取シを行い、ディスクキャシュ3へそのデータ
を格納する。第2図−)に示すように、まず外部記憶媒
体2aの索引部IaがレベレL0のセラ)8oとS、と
に格納される。つづいて上位装置からのデータDa1の
アクセスがなされるが、外部記憶制御装置4にて外部記
憶媒体2aに対する読取りが行われる。読取られたデー
タに関してはディスクキヤシ:L3には格納されず、直
接上位装置へ送られる。
Now, with the disk cache 3 in its initial state, data D on the external storage medium 2a is sent from the host device to the external storage control device 4.
Assume that index section Ia is accessed to retrieve at. Since the disk cache 3 is in the initial state, the external storage control device 4 reads data from the external storage medium 2a four times and stores the data in the disk cache 3. As shown in FIG. 2-), the index portion Ia of the external storage medium 2a is first stored in cells 8o and S at level L0. Subsequently, the data Da1 is accessed from the host device, and the external storage control device 4 reads the external storage medium 2a. The read data is not stored in the disk cache L3, but is sent directly to the host device.

すなわち、外部記憶制御装置4は索引部Ia。That is, the external storage control device 4 is the index section Ia.

Ib、・・・Inに対するアクセスが上位装置よシなさ
れたときのみ、ディスクキャシェ3の内容をチェックし
、所要のデータが格納されていなければ外部記憶媒体2
に対する読取シとディスクキャシュ3へのデータ格納を
行う。また、外部記憶媒体2の各ブロックは格納類にデ
ィスクキャシュ3のセラ)80.S、、・・・に夫々対
応し、最大セット数を超えると次のレベルのs、 t 
81t・・・に対応づけられるよう外部記憶制御装置4
によシ制御される。なお、ディスクキャシュ3のセット
内における各レベルのカッコの内容はデータが格納され
る外部記憶媒体と該当するブロックとを示している。
The contents of the disk cache 3 are checked only when access to Ib, . . .
The data is read and stored in the disk cache 3. In addition, each block of the external storage medium 2 is stored in the disk cache 3 (cellar) 80. S, ... respectively, and when the maximum number of sets is exceeded, the next level is s, t.
External storage control device 4 so as to be associated with 81t...
controlled by Note that the contents of parentheses at each level within the set of the disk cache 3 indicate the external storage medium in which data is stored and the corresponding block.

次に上位装置から外部記憶媒体2bのデータ・ Db+
を取出すために索引部1bへのアクセスがなされた場合
、外部記憶制御装置4はディスクキャシュ3に索引部I
bのデータがないので、外部記憶媒体2bに対しデータ
読取シを行う。そして外部記憶媒体2bのブロックB、
、B、の内容をレベルL0のセットS0,8mへ格納し
ようとするが、すてに情報が格納されているので空にな
っているVペルL、のセットS、、Slへ格納する。
Next, the data on the external storage medium 2b is transferred from the host device to the external storage medium 2b.
When the index section 1b is accessed to retrieve the data, the external storage control device 4 stores the index section I in the disk cache 3.
Since there is no data in b, data is read from the external storage medium 2b. and block B of the external storage medium 2b,
, B is attempted to be stored in the set S0, 8m of the level L0, but since the information has already been stored, it is stored in the empty set S, , Sl of the Vpel L.

上記のような上位装置からのアクセスが異った外部記憶
媒体2を対象に複数回行なわれ、索引部がディスクキャ
シュ30レベルLj−1まで格納されたのちに、さらに
別な外部記憶媒体2へのφアクセスが要求されたとき、
すなわち外部記憶媒体2の個数がディスクキヤシJL3
のレベル個数jを超えたときは外部記憶制御装置4によ
ってディスクキャシュ3へのオーバレイ格納が行われる
After the above-mentioned access from the host device is performed multiple times to different external storage media 2 and the index part is stored up to the disk cache 30 level Lj-1, access is made to another external storage medium 2. When φ access is requested,
In other words, the number of external storage media 2 is the disk cache JL3.
When the number of levels j is exceeded, the external storage control device 4 performs overlay storage in the disk cache 3.

これはセット内における各レベルL0.L、・・・I、
j−lの内容のうち、最もアクセスが時間2的に古いレ
ベルに対してオーバレイ格納が行われる。いまレベルL
0がその条件に合致したし仮定すれば、最終的なディス
クキャシュ3の格納状態は第2図(C)に示すようにな
る。
This applies to each level L0 within the set. L,...I,
Among the contents of j-l, overlay storage is performed on the level that was accessed the oldest in terms of time. Currently level L
Assuming that 0 meets that condition, the final storage state of the disk cache 3 will be as shown in FIG. 2(C).

上記の説明であきらかなように、ディスクキャシュ3の
レベル個数(本実施例ではj個)が外部記憶媒体2の個
数よシ小さい場合にはディスクキャシュ3のオーバレイ
格納が頻繁に行われることになシ索引のディスクキヤシ
、Ltへの常駐化ができない。このことはファイルが索
引順編成の場合、極めて大きなアクセス効率の低下とな
る。すなわち必ずアクセスされる索引部Ia、 Ib、
・・・がディスクキキク33上にないことが多くなシ、
外部記憶媒体2への物理的アクセスを伴うことが頻繁に
行われることになるからである。
As is clear from the above explanation, when the number of levels of the disk cache 3 (j in this example) is smaller than the number of external storage media 2, overlay storage of the disk cache 3 will be performed frequently. The index cannot be made resident in the disk cache Lt. This results in an extremely large drop in access efficiency when the file is organized in index order. That is, index parts Ia, Ib, which are always accessed,
... is often not on the disk drive 33,
This is because physical access to the external storage medium 2 is frequently performed.

以上のように従来のディスクキャシ二を使用する索引順
編成ファイルのアクセス方式ではアクセス効率の大幅な
低下をきたすという欠点がある。
As described above, the conventional indexed sequential file access method using a disk cache has the drawback of significantly reducing access efficiency.

(発明の目的) 本発明の目的は、索引順編成ファイルを作成するときに
索引部を外部記憶媒体ごとに異なる位置に格納すること
により、従来よシアクセス効率を大幅に増大したディス
クキャッシュを使用する索引順編成ファイルのアクセス
方式を提供することにある。
(Objective of the Invention) An object of the present invention is to use a disk cache, which greatly increases access efficiency compared to conventional methods, by storing the index part in a different location for each external storage medium when creating an index sequential file. The purpose of this invention is to provide an access method for indexed sequential files.

(発明の構成) 本発明の方式は、外部記憶媒体ごとに相互に異った格納
位置に索引部を格納する複数の外部記憶媒体からなる索
引順編成ファイルと、情報を格納するディスクキャッシ
ュと、前記索引順編成ファイルの索引部へのアクセス要
求のときには前記ディスクキャッシュに格納しである索
引部を用いて対応する外部記憶媒体から所要の情報を読
み出し前記ディスクキャッシュに格納してい々い索引部
へのアクセス要求のときには前記索引順編成ファイルの
対応する外部記憶媒体に格納しである索引部を読み出し
該索引部が格納されている前記外部記憶媒体の格納ブロ
ックに対応する前記ディスクキャッシュのセットに格納
する読出し格納手段とを含んで構成される。
(Structure of the Invention) The method of the present invention includes: an index sequential file composed of a plurality of external storage media in which index portions are stored in different storage positions for each external storage medium; a disk cache in which information is stored; When an access request is made to the index section of the index sequential file, the necessary information is read from the corresponding external storage medium using the index section stored in the disk cache, stored in the disk cache, and then sent to the index section. When an access request is made, the index section stored in the corresponding external storage medium of the index sequential file is read out and the set of the disk cache corresponding to the storage block of the external storage medium in which the index section is stored is read out. It is configured to include reading and storing means for storing.

(実施例) 次に本発明の実施例について図面を参照して詳細に説明
する。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings.

第3図は本発明の一実施例のデータ格納図である。FIG. 3 is a data storage diagram of one embodiment of the present invention.

第3図(a)は外部記憶媒体1の外部記憶媒体2におけ
る索引順編成ファイルの格納状態を示したものである。
FIG. 3(a) shows the storage state of index sequential files in the external storage medium 2 of the external storage medium 1.

Ial、 より、/、・・・In /は索引順編成ファ
イルの索引部、Da’、 Db’、・・・p n Iは
索引順編成ファイルのデータ部を夫々示す。
Ial, from /, . . . In / indicates the index section of the index sequential file, and Da', Db', . . . p n I indicate the data section of the index sequential file.

第3図(11)に示されるように、外部記憶媒体2へ索
引順編成ファイルを新規作成するときは、外部記憶媒体
2の索引部工a′、lb′、・・・工n′がおたがいに
異るブロックに位置するように格納する。外部記憶媒体
2bを例にとれば、索引部Ib/は外部記憶媒体2aの
索引部工a′が格納されているブロックB、、B、とは
異なるブロックであるブロックB、、B、に、データ部
Db′はブロックB4以降に格納する。
As shown in FIG. 3 (11), when creating a new index sequential organization file in the external storage medium 2, the index sections a', lb', ... n' of the external storage medium 2 are Store it so that it is located in a different block. Taking the external storage medium 2b as an example, the index section Ib/ is stored in the block B, B, which is a different block from the block B, B, in which the index section a' of the external storage medium 2a is stored. The data portion Db' is stored after block B4.

以上の状態で上位装置よジブロックDa′の内容、例え
ばブロックDat’を取出すために索引部J a /に
対するアクセスがあると、外部記憶制御装置4によシ、
まず索引部工a′がディスクキャシュ3のレベルL。の
セラ)8o、Slへ格納される。次に該当す゛ るブロ
ック1)at’のアクセスが外部記憶制御装置4にある
と所要のデータが外部記憶媒体2aから読込まれ、上位
装置へ送シ込まれる。さらに上位装置よシ索引sIb′
へのアクセスがあったとき、外部記憶制御装置4の制御
によシ索引部Ib’がブロックB、、B、に対応して、
グイスクキャシ:L30レベルL6.セットS!および
Slへ格納される。
In the above state, when the host device accesses the index section J a / to retrieve the contents of the diblock Da', for example, the block Dat', the external storage control device 4
First, index section a' is at level L of disk cache 3. ) 8o, stored in Sl. Next, when the corresponding block 1)at' is accessed by the external storage control device 4, the required data is read from the external storage medium 2a and sent to the host device. Furthermore, the index sIb' for higher-level devices
When there is an access to the block B, the index section Ib' is controlled by the external storage control device 4 to
Guisuku Cash: L30 level L6. Set S! and stored in Sl.

以上のように本実施例では上位装置よシ外部記憶制御装
置4に対してアクセスがあったとき、各セット内におい
て索引1@編成ファイルの索引部Ia’、 lb’、・
・・In2はディスクキャシュ3上で重複して格納され
ることはない。
As described above, in this embodiment, when the external storage control device 4 is accessed by the host device, the index portions Ia', lb', .
...In2 will not be stored redundantly on the disk cache 3.

(発明の効果) 本発明には索引順編成ファイル作成にあたシ外部記憶媒
体への索引部の格納場所をそれぞれ異って格納すること
によシディスクキャッシェへの索引部のオーバレイ格納
をなくし索引部のディスクキャッシュへの常駐化ができ
、アクセス効率の大幅な向上ができるという効果がある
(Effects of the Invention) The present invention enables overlay storage of the index part in the disk cache by storing the index part in different storage locations in the external storage medium when creating the index sequential file. The lost index section can be made resident in the disk cache, which has the effect of greatly improving access efficiency.

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

第1図はディスクキャッシュを使用したデータアクセス
方式の構成を示すブロック図、H2E(a)。 (b)および(e)は従来のデータアクセス方式のデー
タ格納図、第3図(a)、φ)9 ―は本発明の一実施例のデータ格納図である。 1・・・・・・外部記憶装置% 212al 2b?・
・・2n・・・・・・外部記憶媒体、3・・・・・・デ
ィスクキャッシュ、4・・・・・・外部記憶制御装置。
FIG. 1 is a block diagram H2E(a) showing the configuration of a data access method using a disk cache. 3(b) and (e) are data storage diagrams of the conventional data access method, and FIG. 3(a), φ) 9- is a data storage diagram of an embodiment of the present invention. 1...External storage device% 212al 2b?・
2n... External storage medium, 3... Disk cache, 4... External storage control device.

Claims (1)

【特許請求の範囲】 外部記憶媒体ごとに相互に異った格納位置に索引部を格
納する複数の外部記憶媒体からなる索引順編成ファイル
と、 情報を格納するディスクキャッシュと、前記索引順編成
ファイルの索引部へのアクセス要求のときには前記ディ
スクキャッシュに格納しである索引部を用いて対応する
外部記憶媒体から所要の情報を読み出し前記ディスクキ
ャッシュに格納していない索引部へのアクセス要求のと
きには前記索引編成ファイルの対応する外部記憶媒体に
格納しである索引部を読み出し該索引部が格納されてい
る前記外部記憶媒体の格納ブロックに対応する前記ディ
スクキャッシュのセットに格納ス6・・−読 出し格納手段とを含むことを特徴とするディスクキャッ
シュを使用する索引順編成ファイルのアクセス方式。
[Scope of Claims] An index sequential organization file consisting of a plurality of external storage media in which index portions are stored in mutually different storage positions for each external storage medium, a disk cache for storing information, and the index sequential organization file. When a request is made to access an index section, the required information is read from the corresponding external storage medium using the index section that is stored in the disk cache.When a request is made to access an index section that is not stored in the disk cache, the necessary information is read out from the corresponding external storage medium using the index section that is stored in the disk cache. Reading out an index section stored in a corresponding external storage medium of an index organization file and storing it in the set of the disk cache corresponding to the storage block of the external storage medium in which the index section is stored. An indexed sequential file access method using a disk cache, comprising:
JP8136484A 1984-04-23 1984-04-23 Accessing system of indexing order forming file using disk cash Pending JPS60224178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8136484A JPS60224178A (en) 1984-04-23 1984-04-23 Accessing system of indexing order forming file using disk cash

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8136484A JPS60224178A (en) 1984-04-23 1984-04-23 Accessing system of indexing order forming file using disk cash

Publications (1)

Publication Number Publication Date
JPS60224178A true JPS60224178A (en) 1985-11-08

Family

ID=13744271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8136484A Pending JPS60224178A (en) 1984-04-23 1984-04-23 Accessing system of indexing order forming file using disk cash

Country Status (1)

Country Link
JP (1) JPS60224178A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5764856A (en) * 1980-10-06 1982-04-20 Toshiba Corp Index access control system
JPS57103563A (en) * 1980-12-19 1982-06-28 Hitachi Ltd Disk controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5764856A (en) * 1980-10-06 1982-04-20 Toshiba Corp Index access control system
JPS57103563A (en) * 1980-12-19 1982-06-28 Hitachi Ltd Disk controller

Similar Documents

Publication Publication Date Title
JP4053987B2 (en) Simultaneous read and write access to simulated sequential data on removable random access data storage media
US5890208A (en) Command executing method for CD-ROM disk drive
JP2804115B2 (en) Disk file system
US20120117297A1 (en) Storage tiering with minimal use of dram memory for header overhead
JPS603036A (en) Load decentralization system of on-line journal
JP3384258B2 (en) Computer system
JPS60224178A (en) Accessing system of indexing order forming file using disk cash
JP3925461B2 (en) Computer system
JPS5851348A (en) High-speed access system for variable-length record
JPH09114737A (en) Cache disk control
JPS63251965A (en) Disk managing system
JP3925246B2 (en) Computer system
JPH04165527A (en) Method and device for recording and reproducing information
JPH05282793A (en) Optical disk device
JPS5987572A (en) Controlling system of disk storage device
JPS6074057A (en) Control system for disk cache
JPS63291145A (en) Method for managing file
JPH04266136A (en) File control system for rotary recording medium
JPS6234227A (en) Auxiliary memory device
JPS585865A (en) Magnetic disk device
JPH027108B2 (en)
JPH02191048A (en) Method and device for data processing
JPS62285290A (en) Optical disk copying method
JPS61227268A (en) Magnetic disk access system
JP2006011882A (en) File access apparatus and controller control method