JP2526728B2 - Disk cache automatic usage method - Google Patents

Disk cache automatic usage method

Info

Publication number
JP2526728B2
JP2526728B2 JP2233946A JP23394690A JP2526728B2 JP 2526728 B2 JP2526728 B2 JP 2526728B2 JP 2233946 A JP2233946 A JP 2233946A JP 23394690 A JP23394690 A JP 23394690A JP 2526728 B2 JP2526728 B2 JP 2526728B2
Authority
JP
Japan
Prior art keywords
file
disk cache
input
output
disk
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.)
Expired - Lifetime
Application number
JP2233946A
Other languages
Japanese (ja)
Other versions
JPH04113414A (en
Inventor
昌子 内沼
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 JP2233946A priority Critical patent/JP2526728B2/en
Publication of JPH04113414A publication Critical patent/JPH04113414A/en
Application granted granted Critical
Publication of JP2526728B2 publication Critical patent/JP2526728B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディスクキャッシュ自動利用方式に関し、特
にディスクキャッシュサブシステムを有する電子計算機
システムにおけるディスクキャッシュ自動利用方式に関
する。
The present invention relates to a disk cache automatic usage system, and more particularly to a disk cache automatic usage system in an electronic computer system having a disk cache subsystem.

〔従来の技術〕[Conventional technology]

従来、電子計算機システムにおいては、ファイル入出
力にディスクキャッシュを利用するか否かは操作員が判
断していた。操作員が利用すると判断した場合、ファイ
ル入出力プログラムの実行前に、ディスクキャッシュ利
用方法設定プログラムにより、磁気ディスク制御装置が
当ファイルの入出力にディスクキャッシュを利用するよ
うに設定していた。また、ファイル入出力プログラムの
実行後には、もう一度ディスクキャッシュ利用方法設定
プログラムを実行し、上記の設定を解除していた。
Conventionally, in an electronic computer system, an operator judges whether to use a disk cache for file input / output. When the operator determines that the file is to be used, the magnetic disk controller is set to use the disk cache for input / output of the file by the disk cache usage method setting program before executing the file input / output program. Further, after executing the file input / output program, the disk cache usage method setting program is executed again to cancel the above setting.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来のディスクキャッシュ利用方式は、ディ
スクキャッシュを利用するか否かを操作員が判断し、利
用方法の設定はディスクキャッシュ利用方法設定プログ
ラムによって行っていたため、以下に示す問題点があっ
た。
In the above-described conventional disk cache usage method, the operator determines whether or not to use the disk cache, and the usage method is set by the disk cache usage method setting program. Therefore, there are the following problems.

ディスクキャッシュを利用するか否かを操作員が判
断するため、利用対象ファイルに関する統計情報を出力
し、検討する必要があった。
In order for the operator to decide whether or not to use the disk cache, it was necessary to output statistical information on the target file for consideration.

ファイル入出力プログラムの実行前後に、ディスク
キャッシュ利用方法設定プログラムを実行する必要があ
るため、操作員の操作が繁雑になっていた。
Since it is necessary to execute the disk cache usage method setting program before and after executing the file input / output program, the operation of the operator becomes complicated.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のディスクキャッシュ自動利用方式は、 ファイルを格納するディスクキャッシュサブシステム
と、前記ファイル中のデータをアクセスするファイル使
用プログラムを有する中央処理装置とから構成されるフ
ァイル処理システムであって、 前記ディスクキャッシュサブシステム内には、ファイ
ルとファイルラベルとを記憶する磁気ディスクと、磁気
ディスクの一部のデータを記憶するディスクキャッシュ
と、前記ディスクキャッシュの利用を設定されているフ
ァイルへの中央処理装置からのアクセス要求に応じて、
要求されたデータが前記ディスクキャッシュに保持され
ている場合にはそのデータを返却し、要求されたデータ
が前記ディスクキャッシュに保持されていない場合は磁
気ディスクからデータを読み込み前記ディスクキャッシ
ュに格納すると同時に中央処理装置に返却する磁気ディ
スク制御装置とを有し、 前記中央処理装置内には、前記ファイル使用プログラ
ムと、前記ファイル使用プログラムにより起動され、指
定されたファイル中の要求されたデータを入出力する入
出力手段とを有する電子計算機システムにおいて、 前記ディスクキャッシュサブシステム内の磁気ファイ
ルラベル内に前記ファイルに対する入出力状況を記憶す
る入出力状況記憶フィールドを有し、 前記中央処理装置内には、前記ファイル使用プログラ
ムにより前記ファイルの入出力に先立って起動され、前
記入出力状況記憶フィールドを読み込み、前記入出力状
況記憶フィールドをもとに前記ファイルに前記ディスク
キャッシュを利用すると有効か否かを判別し、有効と判
断した場合は、前記磁気ディスク制御装置が前記ファイ
ルの入出力に前記ディスクキャッシュの利用を設定し、
有効でない場合は何もしないディスクキャッシュ対象設
定手段と、 前記ファイル使用プログラムによりファイルの入出力
終了後に起動され、前記ファイルの入出力に前記ディス
クキャッシュを利用するように設定されている場合その
設定を解除し、かつファイルのアクセス状況に応じて前
記入出力状況記憶フィールドを更新するディスクキャッ
シュ対象データ解除手段とを備えて構成される。
An automatic disk cache utilization method of the present invention is a file processing system comprising a disk cache subsystem for storing files and a central processing unit having a file use program for accessing data in the files, In the cache subsystem, a magnetic disk that stores files and file labels, a disk cache that stores part of the data on the magnetic disk, and a central processing unit for files that are set to use the disk cache According to the access request of
If the requested data is held in the disk cache, the data is returned, and if the requested data is not held in the disk cache, the data is read from the magnetic disk and stored in the disk cache. A magnetic disk controller for returning to the central processing unit, and in the central processing unit, the file use program and the requested data in the designated file which is started by the file use program is input and output. In an electronic computer system having an input / output means for performing, in the magnetic file label in the disk cache subsystem, there is an input / output status storage field for storing the input / output status for the file, and in the central processing unit, The file using the file using program Is started prior to the input / output of the file, the input / output status storage field is read, it is determined whether the disk cache is valid for the file based on the input / output status storage field, and it is determined to be valid. The magnetic disk controller sets the use of the disk cache for input and output of the file,
If it is not valid, nothing is done to the disk cache target setting means, and if the file use program is started after the input / output of the file is completed and the disk cache is set to be used for the input / output of the file, the setting is changed. And a disk cache target data canceling unit that cancels and updates the input / output status storage field according to the access status of the file.

〔実施例〕〔Example〕

本発明について図面を参照して説明する。 The present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図、
第2図は本実施例に使用する入出力状況記憶フィールド
の構成を示す説明である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention,
FIG. 2 is an illustration showing the structure of the input / output status storage field used in this embodiment.

第1図を参照すると本発明の一実施例は、中央処理装
置1と、ファイル使用プログラム2と、ディスクキャッ
シュ対象データ設定手段3と、入出力手段4と、ディス
クキャッシュ対象データ解析手段5と、ディスクキャッ
シュサブシステム6と、ディスクキャッシュ7と、磁気
ディスク制御装置8と、磁気ディスク9と、ファイルラ
ベル10と、入出力状況記憶フィールド11と、ファイル12
とから構成されている。
Referring to FIG. 1, an embodiment of the present invention comprises a central processing unit 1, a file use program 2, a disk cache target data setting means 3, an input / output means 4, a disk cache target data analyzing means 5, Disk cache subsystem 6, disk cache 7, magnetic disk controller 8, magnetic disk 9, file label 10, input / output status storage field 11, and file 12
It consists of and.

第2図を参照すると、入出力状況記憶フィールド11
は、単位容量あたりの入力回数21、単位容量あたりの出
力回数22から構成されている。
Referring to FIG. 2, the input / output status storage field 11
Is composed of 21 inputs per unit capacity and 22 outputs per unit capacity.

次に、本発明の動作について、図面を参照して説明す
る。
Next, the operation of the present invention will be described with reference to the drawings.

本実施例では、ファイル12の入出力にディスクキャッ
シュ7を利用するように設定されている場合、磁気ディ
スク制御装置8はファイル12からの入力時は以下に述べ
る(1)・(2)、ファイル12への出力時は以下に述べ
る(3)・(4)、の規則に従い動作する。
In this embodiment, when the disk cache 7 is set to be used for input / output of the file 12, the magnetic disk controller 8 will be described below when inputting from the file 12 (1), (2), file When outputting to 12, it operates according to the rules of (3) and (4) described below.

(1)要求されたデータがディスクキャッシュ7上にあ
る場合、磁気ディスク制御装置8はそのデータをディス
クキャッシュ7から入力する。
(1) When the requested data is in the disk cache 7, the magnetic disk controller 8 inputs the data from the disk cache 7.

(2)要求されたデータがディスクキャッシュ7上にな
い場合、磁気ディスク制御装置8はそのデータを磁気デ
ィスク9から入力すると同時に、そのデータを含むトラ
ック全体をディスクキャッシュ7上に転送する。
(2) When the requested data is not on the disk cache 7, the magnetic disk controller 8 inputs the data from the magnetic disk 9 and, at the same time, transfers the entire track including the data to the disk cache 7.

(3)要求されたデータ出力位置がディスクキャッシュ
7上にある場合、ディスクキャッシュ7と磁気ディスク
9の両方に出力する。
(3) If the requested data output position is on the disk cache 7, the data is output to both the disk cache 7 and the magnetic disk 9.

(4)要求されたデータ出力位置がディスクキャッシュ
7上にない場合、磁気ディスク9に出力後そのデータを
含むトラック全体をディスクキャッシュ7上に転送す
る。
(4) If the requested data output position is not on the disk cache 7, the entire track including the data is transferred to the disk cache 7 after being output to the magnetic disk 9.

すなわち、入力時に要求されたデータがディスクキャ
ッシュ7上にある場合、磁気ディスク9から入力を行わ
ないので高速に処理できる。
That is, if the data requested at the time of input is in the disk cache 7, the data is not input from the magnetic disk 9, and therefore high speed processing is possible.

ファイル使用プログラム2がディスクキャッシュ対象
データ設定手段3を起動すると、ディスクキャッシュ対
象データ設定手段3は磁気ディスク制御装置8を起動し
てファイルラベル10を読み込む。次にディスクキャッシ
ュ対象データ設定手段3はファイルラベル10中の入出力
状況記憶フィールド11を参照する。入出力状況記憶フィ
ールド11中の単位容量あたりの入力回数21が一定値以上
でありかつ単位容量あたりの出力回数22が一定値以下で
あると、ディスクキャッシュ対象データ設定手段3はデ
ィスクキャッシュ7を利用すると判断し、磁気ディスク
制御装置8がファイル12の入出力にディスクキャッシュ
7を利用するように設定する。
When the file use program 2 starts the disk cache target data setting means 3, the disk cache target data setting means 3 starts the magnetic disk control device 8 and reads the file label 10. Next, the disk cache target data setting means 3 refers to the input / output status storage field 11 in the file label 10. When the input count 21 per unit capacity in the input / output status storage field 11 is equal to or greater than a fixed value and the output count 22 per unit capacity is equal to or less than the fixed value, the disk cache target data setting means 3 uses the disk cache 7. Then, the magnetic disk control device 8 is set to use the disk cache 7 for input / output of the file 12.

そして、単位容量あたりの入力回数21が一定値以下で
あるか、または単位容量あたりの出力回数22が一定値以
上である場合は、ディスクキャッシュ対象データ設定手
段3はディスクキャッシュ7を利用しないと判断し、デ
ィスクキャッシュ7の設定をしない。
When the number of inputs 21 per unit capacity is less than a certain value or the number of outputs 22 per unit capacity is more than a certain value, the disk cache target data setting means 3 determines not to use the disk cache 7. However, the disk cache 7 is not set.

その後、ファイル使用プログラム2が入出力手段4を
起動すると、入出力手段4は磁気ディスク制御装置8に
対してファイル12への入出力要求を行う。ディスクキャ
ッシュ7の設定が行われていると、この入出力要求は上
述した磁気ディスク制御装置8の動作規則(1)〜
(4)に従って処理される。ディスクキャッシュ7によ
る効果がでる割合が高い場合にディスクキャッシュ7の
設定をしているので、この入出力要求が高速に行われる
確率は高い。一方ディスクキャッシュ7の設定が行われ
ていないと、磁気ディスク制御装置8は常にディスクキ
ャッシュ7を利用せずに磁気ディスク9から入出力す
る。さらにその後、ファイル使用プログラム2がディス
クキャッシュ対象データ解除手段5を起動すると、ディ
スクキャッシュ対象データ解除手段5はディスクキャッ
シュ7の設定が行われている場合この設定を解除する。
ディスクキャッシュ7の設定が行われていない場合は何
もしない。次にディスクキャッシュ対象データ解除手段
5は、ディスクキャッシュ7の設定の有無に関わらず、
磁気ディスク制御装置8を起動して入出力状況記憶フィ
ールド11の更新を行う。
After that, when the file use program 2 activates the input / output means 4, the input / output means 4 makes an input / output request to the file 12 to the magnetic disk controller 8. When the disk cache 7 is set, this input / output request is issued from the above-mentioned operation rule (1) to the magnetic disk control device 8.
It is processed according to (4). Since the disk cache 7 is set when the effect of the disk cache 7 is high, the probability that this input / output request will be made at high speed is high. On the other hand, if the disk cache 7 is not set, the magnetic disk controller 8 always inputs / outputs from / to the magnetic disk 9 without using the disk cache 7. After that, when the file use program 2 activates the disk cache target data canceling unit 5, the disk cache target data canceling unit 5 cancels the setting of the disk cache 7 if the setting is made.
If the disk cache 7 is not set, nothing is done. Next, the disk cache target data canceling means 5, regardless of whether the disk cache 7 is set or not,
The magnetic disk controller 8 is activated to update the input / output status storage field 11.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明では、ディスクキャッシュ
を利用するか否かをの判断と利用方法の設定をディスク
キャッシュ対象データ設定手段が自動的に行うため、以
下(A)・(B)に示す効果がある。
As described above, according to the present invention, since the disk cache target data setting means automatically determines whether or not to use the disk cache and sets the usage method, the following effects (A) and (B) are obtained. There is.

(A)ディスクキャッシュを利用するか否かを操作員が
判断するために、利用対象ファイルに関する統計情報を
出力し、検討するという必要がなくなる。即ち、操作員
が何もしなくても、ファイル処理システムが自動的に性
能上最適となるようにディスクキャッシュの対象データ
を設定するので、ディスクキャッシュの有効利用が可能
となる。
(A) It is not necessary for the operator to output the statistical information on the file to be used and examine it in order to determine whether or not to use the disk cache. That is, even if the operator does nothing, the file processing system automatically sets the target data of the disk cache so as to optimize the performance, so that the disk cache can be effectively used.

(B)ファイル入出力プログラムの実行前後に、ディス
クキャッシュ利用方法設定プログラムを実行する必要が
なくなる。
(B) It becomes unnecessary to execute the disk cache usage method setting program before and after the execution of the file input / output program.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本実施例に使用する入出力状況記憶フィールドの
構成を示す説明図。 1…中央処理装置、2…ファイル使用プログラム、3…
ディスクキャッシュ対象データ設定手段、4…入出力手
段、5…ディスクキャッシュ対象データ解除手段、6…
ディスクキャッシュサブシステム、7…ディスクキャッ
シュ、8…磁気ディスク制御装置、9…磁気ディスク、
10…ファイルラベル、11…入出力状況記憶フィールド、
12…ファイル。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is an explanatory diagram showing the configuration of an input / output status storage field used in this embodiment. 1 ... Central processing unit, 2 ... File use program, 3 ...
Disk cache target data setting means, 4 ... Input / output means, 5 ... Disk cache target data releasing means, 6 ...
Disk cache subsystem, 7 ... Disk cache, 8 ... Magnetic disk controller, 9 ... Magnetic disk,
10 ... File label, 11 ... Input / output status storage field,
12 ... file.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ファイルを格納するディスクキャッシュサ
ブシステムと、前記ファイル中のデータをアクセスする
ファイル使用プログラムを有する中央処理装置とから構
成されるファイル処理システムであって、 前記ディスクキャッシュサブシステム内には、ファイル
とファイルラベルとを記憶する磁気ディスクと、磁気デ
ィスクの一部のデータを記憶するディスクキャッシュ
と、前記ディスクキャッシュの利用を設定されているフ
ァイルへの中央処理装置からのアクセス要求に応じて、
要求されたデータが前記ディスクキャッシュに保持され
ている場合にはそのデータを返却し、要求されたデータ
が前記ディスクキャッシュに保持されていない場合は磁
気ディスクからデータを読み込み前記ディスクキャッシ
ュに格納すると同時に中央処理装置に返却する磁気ディ
スク制御装置とを有し、 前記中央処理装置内には、前記ファイル使用プログラム
と、前記ファイル使用プログラムにより起動され、指定
されたファイル中の要求されたデータを入出力する入出
力手段とを有する電子計算機システムにおいて、 前記ディスクキャッシュサブシステム内の磁気ファイル
ラベル内に前記ファイルに対する入出力状況を記憶する
入出力状況記憶フィールドを有し、 前記中央処理装置内には、前記ファイル使用プログラム
により前記ファイルの入出力に先立って起動され、前記
入出力状況記憶フィールドを読み込み、前記入出力状況
記憶フィールドをもとに前記ファイルに前記ディスクキ
ャッシュを利用すると有効か否かを判別し、有効と判断
した場合は、前記磁気ディスク制御装置が前記ファイル
の入出力に前記ディスクキャッシュの利用を設定し、有
効でない場合は何もしないディスクキャッシュ対象デー
タ設定手段と、 前記ファイル使用プログラムによりファイルの入出力終
了後に起動され、前記ファイルの入出力に前記ディスク
キャッシュを利用するように設定されている場合その設
定を解除し、かつファイルのアクセス状況に応じて前記
入出力状況記憶フィールドを更新するディスクキャッシ
ュ対象データ解除手段とを備えて成ることを特徴とする
ディスクキャッシュ自動利用方式。
1. A file processing system comprising a disk cache subsystem for storing a file and a central processing unit having a file use program for accessing data in the file, wherein the disk cache subsystem comprises: Responds to an access request from a central processing unit to a magnetic disk that stores a file and a file label, a disk cache that stores part of data on the magnetic disk, and a file that is set to use the disk cache. hand,
If the requested data is held in the disk cache, the data is returned, and if the requested data is not held in the disk cache, the data is read from the magnetic disk and stored in the disk cache. A magnetic disk controller for returning to the central processing unit, and in the central processing unit, the file use program and the requested data in the designated file which is started by the file use program is input and output. In an electronic computer system having an input / output means for performing, in the magnetic file label in the disk cache subsystem, there is an input / output status storage field for storing the input / output status for the file, and in the central processing unit, The file using the file using program Is started prior to the input / output of the file, the input / output status storage field is read, it is determined whether the disk cache is valid for the file based on the input / output status storage field, and it is determined to be valid. Means for setting the use of the disk cache by the magnetic disk control device for input / output of the file, and doing nothing if not enabled, and starting after the input / output of the file is completed by the file use program If the disk cache is set to be used for input / output of the file, the setting is canceled, and the input / output status storage field is updated according to the access status of the file. A disk cache comprising: Dynamic utilization system.
JP2233946A 1990-09-04 1990-09-04 Disk cache automatic usage method Expired - Lifetime JP2526728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2233946A JP2526728B2 (en) 1990-09-04 1990-09-04 Disk cache automatic usage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2233946A JP2526728B2 (en) 1990-09-04 1990-09-04 Disk cache automatic usage method

Publications (2)

Publication Number Publication Date
JPH04113414A JPH04113414A (en) 1992-04-14
JP2526728B2 true JP2526728B2 (en) 1996-08-21

Family

ID=16963100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2233946A Expired - Lifetime JP2526728B2 (en) 1990-09-04 1990-09-04 Disk cache automatic usage method

Country Status (1)

Country Link
JP (1) JP2526728B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3194201B2 (en) * 1992-02-24 2001-07-30 株式会社日立製作所 How to select cache mode
JP6299169B2 (en) 2013-11-14 2018-03-28 富士通株式会社 Storage device, storage device control method, and storage device control program

Also Published As

Publication number Publication date
JPH04113414A (en) 1992-04-14

Similar Documents

Publication Publication Date Title
US4593354A (en) Disk cache system
JPH0364890B2 (en)
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
JP2821345B2 (en) Asynchronous I / O control method
JP2526728B2 (en) Disk cache automatic usage method
JPS6258351A (en) Optical disk cache system
JP3180336B2 (en) Data access method using multilayer buffer
JP3130591B2 (en) Computer with cache memory
JP3221409B2 (en) Cache control system, readout method therefor, and recording medium recording control program therefor
JPH04148225A (en) System and device for controlling filing access
JPH04199444A (en) File controller
JPH02189658A (en) Cache memory
JP3255081B2 (en) File-access device and machine-readable recording medium recording program
JP2885907B2 (en) Online processing time analysis method
JP2912657B2 (en) File access processor
JP2787107B2 (en) Buffer control system and device
JP2994917B2 (en) Storage system
JP4131579B2 (en) Data management system and data management method
JP2735400B2 (en) Asynchronous I / O control method
JP2988048B2 (en) Dictionary information resident access device
JP2740572B2 (en) Program loading method
JPH04638A (en) System starting method
JPH01253024A (en) Buffer control method for data base management
JPH0736783A (en) Program cache method
JPH05165756A (en) Channel controller with macro processing function

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080614

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090614

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100614

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100614

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110614

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110614

Year of fee payment: 15