[go: up one dir, main page]

JPH04336340A - Disk cache access control system - Google Patents

Disk cache access control system

Info

Publication number
JPH04336340A
JPH04336340A JP3107719A JP10771991A JPH04336340A JP H04336340 A JPH04336340 A JP H04336340A JP 3107719 A JP3107719 A JP 3107719A JP 10771991 A JP10771991 A JP 10771991A JP H04336340 A JPH04336340 A JP H04336340A
Authority
JP
Japan
Prior art keywords
disk cache
application program
cache
control information
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.)
Pending
Application number
JP3107719A
Other languages
Japanese (ja)
Inventor
Seiichiro Mimura
三村 誠一郎
Tsutomu Watanabe
渡邊 努
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators 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, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP3107719A priority Critical patent/JPH04336340A/en
Publication of JPH04336340A publication Critical patent/JPH04336340A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To effectively utilize a disk cache by adding disk cache control information in kind units of blocks to the data base description of an application program, and controlling the disk cache while referring to the information in a data base access routine. CONSTITUTION:This system has an external storage device 1 including plural magnetic disks 2, the data base access routine 4 which takes necessary data out by controlling the external storage device 1 and disk cache 3 at access requests from the disk cache 3 and application program, and the application program 6 which includes input/output device allocation information (with which I/O with the cache and I/O without the cache are possible) and the disk cache control information.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はディスクキャッシュアク
セス制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk cache access control system.

【0002】0002

【従来の技術】従来、この種のデータベースにディスク
キャッシュ機能を提供した場合、ディスクキャッシュへ
の常駐化はファイル単位でしか行えない。
2. Description of the Related Art Conventionally, when a disk cache function is provided to this type of database, only files can be made resident in the disk cache.

【0003】0003

【発明が解決しようとする課題】上述した従来のデータ
ベースのディスクキャッシュ常駐化はファイル単位でし
か行えず、アクセス頻度にかかわらず全てのデータをキ
ャッシュに格納してしまうので、ディスクキャッシュの
容量より大きいファイルでは実現不可能であった。
[Problems to be Solved by the Invention] The conventional database disk cache resident described above can only be done in file units, and all data is stored in the cache regardless of the access frequency, which is larger than the disk cache capacity. This was not possible with files.

【0004】0004

【課題を解決するための手段】本発明のディスクキャッ
シュアクセス制御方式は、アプリケーションプログラム
のデータベースのファイル記述にブロックの種別単位の
ディスクキャッシュ制御情報を付加し、前記データベー
スのアクセスルーチンは前記アプリケーションプログラ
ムのディスクキャッシュ制御情報を参照してキャッシュ
付きI/O,キャッシュなしI/Oの制御を行うように
して構成される。
[Means for Solving the Problems] The disk cache access control method of the present invention adds disk cache control information for each block type to the file description of a database of an application program, and the database access routine It is configured to control cached I/O and non-cached I/O by referring to disk cache control information.

【0005】また、本発明のディスクキャッシュアクセ
ス制御方式において、アクセス頻度の高いブロックをデ
ィスクキャッシュに常駐させるように前記ディスクキャ
ッシュ制御情報を構成する。
Further, in the disk cache access control system of the present invention, the disk cache control information is configured so that frequently accessed blocks are made to reside in the disk cache.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明する
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0007】図1はデータベースのディスクキャッシュ
アクセス制御方式の一実施例を示す説明図である。同図
においてディスクキャッシュアクセス制御方式は、複数
の磁気ディスク2を含む外部記憶装置1と,ディスクキ
ャッシュ3と,アプリケーションプログラムからのアク
セス要求によって外部記憶装置1とディスクキャッシュ
3を制御して必要なデータを取り出すデータベースアク
セスルーチン4と,電子計算機OS上の入出力装置割当
情報(この情報によりI/O時にキャッシュ付I/O、
キャッシュなしI/Oができる)5と,ディスクキャッ
シュ制御情報を含むアプリケーションプログラム6とを
有する。
FIG. 1 is an explanatory diagram showing an embodiment of a database disk cache access control system. In the figure, the disk cache access control method controls an external storage device 1 including a plurality of magnetic disks 2, a disk cache 3, and the external storage device 1 and the disk cache 3 according to an access request from an application program to obtain necessary data. Database access routine 4 that retrieves the input/output device allocation information on the computer OS (this information allows cached
(capable of cacheless I/O) 5, and an application program 6 containing disk cache control information.

【0008】まず、アプリケーションプログラム6でデ
ィスクキャッシュ制御情報にファイルのどの部分をディ
スクキャッシュに常駐させるかを指定する。ここでは、
索引部とデータ部の常駐を指定したとする。ファイルオ
ープン後、アプリケーションプログラム6よりデータの
アクセス要求が発行されると、データベースアクセスル
ーチン4はアプリケーションプログラム6上のディスク
キャッシュ制御情報を参照し、ディスクキャッシュ使用
の指定(ここでは索引部とデータ部の常駐指定)があれ
ば、電子計算機OS上の入出力装置割当情報5の外部記
憶装置1に対応する情報エリアに対してディスクキャッ
シュ使用を宣言する。
First, the application program 6 specifies in disk cache control information which part of the file is to be made resident in the disk cache. here,
Assume that the index section and data section are specified to be resident. After a file is opened, when a data access request is issued by the application program 6, the database access routine 4 refers to the disk cache control information on the application program 6 and specifies the use of the disk cache (here, the index section and data section). If there is a resident designation), use of the disk cache is declared for the information area corresponding to the external storage device 1 of the input/output device allocation information 5 on the computer OS.

【0009】次に、外部記憶装置1に格納されている索
引部をアクセスする際に、データベースアクセスルーチ
ン4はアプリケーションプログラム6のディスクキャッ
シュ制御情報を参照し、索引部の常駐指定があればアク
セスした内容をブロック単位にディスクキャッシュ3に
格納する。この時、すでにディスクキャッシュ3上に検
索すべきキーが存在すればディスクキャッシュ3への格
納は行わず、ディスクキャッシュ3上の索引データを使
用する。
Next, when accessing the index section stored in the external storage device 1, the database access routine 4 refers to the disk cache control information of the application program 6, and if the index section is designated as resident, the database access routine 4 accesses the index section stored in the external storage device 1. The contents are stored in the disk cache 3 block by block. At this time, if the key to be searched already exists on the disk cache 3, the key is not stored in the disk cache 3, but the index data on the disk cache 3 is used.

【0010】検索終了後、データベースアクセスルーチ
ン4は外部記憶装置1に格納されているデータをアクセ
スする。この時、再びアプリケーションプログラム6上
のディスクキャッシュ制御情報を参照し、データ部の常
駐指定があれば、ディスクキャッシュ3上に外部記憶装
置1よりアクセスした内容をブロック単位に格納する。 すでにディスクキャッシュ3上に該当するデータが存在
する場合はディスクキャッシュ3への格納は行わず、デ
ィスクキャッシュ3上のデータを使用する。
After the search is completed, the database access routine 4 accesses the data stored in the external storage device 1. At this time, the disk cache control information on the application program 6 is referred to again, and if the data portion is designated as resident, the contents accessed from the external storage device 1 are stored in the disk cache 3 in blocks. If the corresponding data already exists on the disk cache 3, the data on the disk cache 3 is not stored in the disk cache 3, but the data on the disk cache 3 is used.

【0011】ディスクキャッシュ3にアクセスした内容
を格納するときはブロック単位にブロック番号でマッピ
ングする。これにより磁気ディスク2が複数あっても、
ディスクキャッシュ3への格納を意識したファイルの作
成を行えばアクセス頻度の高いデータのみが残り、ディ
スクキャッシュ3を有効に活用できる。
[0011] When storing accessed contents in the disk cache 3, mapping is performed in units of blocks using block numbers. As a result, even if there are multiple magnetic disks 2,
If files are created with storage in the disk cache 3 in mind, only frequently accessed data will remain, allowing the disk cache 3 to be used effectively.

【0012】0012

【発明の効果】以上説明したように本発明は、アプリケ
ーションプログラムのデータベース記述にブロックの種
別単位のディスクキャッシュ制御情報を付加し、データ
ベースアクセスルーチンでこの情報を参照しながらディ
スクキャッシュを制御することにより、ディスクキャッ
シュを有効に活用できる効果がある。特に大容量のデー
タベースに適用した場合に効果がある。
As explained above, the present invention adds disk cache control information for each block type to the database description of an application program, and controls the disk cache while referring to this information in the database access routine. This has the effect of making effective use of disk cache. This is particularly effective when applied to large-capacity databases.

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

【図1】本発明の一実施例を示す説明図。FIG. 1 is an explanatory diagram showing one embodiment of the present invention.

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

1    外部記憶装置 2    磁気ディスク 3    ディスクキャッシュ 4    データベースアクセスルーチン5    入
出力装置割当情報
1 External storage device 2 Magnetic disk 3 Disk cache 4 Database access routine 5 I/O device allocation information

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  アプリケーションプログラムのデータ
ベースのファイル記述にブロックの種別単位のディスク
キャッシュ制御情報を付加し、前記データベースのアク
セスルーチンは前記アプリケーションプログラムのディ
スクキャッシュ制御情報を参照してキャッシュ付きI/
O,キャッシュなしI/Oの制御を行うことを特徴とす
るディスクキャッシュアクセス制御方式。
1. Disk cache control information for each block type is added to the file description of a database of an application program, and the access routine of the database refers to the disk cache control information of the application program to access the cached I/O.
O. A disk cache access control method characterized by controlling I/O without cache.
【請求項2】  請求項1記載のディスクキャッシュア
クセス制御方式において、アクセス頻度の高いブロック
をディスクキャッシュに常駐させるように前記ディスク
キャッシュ制御情報を構成することを特徴とするディス
クキャッシュアクセス制御方式。
2. The disk cache access control method according to claim 1, wherein the disk cache control information is configured so that frequently accessed blocks are made to reside in the disk cache.
JP3107719A 1991-05-14 1991-05-14 Disk cache access control system Pending JPH04336340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3107719A JPH04336340A (en) 1991-05-14 1991-05-14 Disk cache access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3107719A JPH04336340A (en) 1991-05-14 1991-05-14 Disk cache access control system

Publications (1)

Publication Number Publication Date
JPH04336340A true JPH04336340A (en) 1992-11-24

Family

ID=14466215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3107719A Pending JPH04336340A (en) 1991-05-14 1991-05-14 Disk cache access control system

Country Status (1)

Country Link
JP (1) JPH04336340A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09198308A (en) * 1996-01-17 1997-07-31 Hitachi Ltd Data storage system
JP2001027967A (en) * 1999-07-14 2001-01-30 Hitachi Ltd External storage device and information processing system
US7133976B2 (en) 2002-10-17 2006-11-07 Hitachi, Ltd. Disk array device, method for controlling the disk array device and storage system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09198308A (en) * 1996-01-17 1997-07-31 Hitachi Ltd Data storage system
JP2001027967A (en) * 1999-07-14 2001-01-30 Hitachi Ltd External storage device and information processing system
US7133976B2 (en) 2002-10-17 2006-11-07 Hitachi, Ltd. Disk array device, method for controlling the disk array device and storage system
US7139880B2 (en) 2002-10-17 2006-11-21 Hitachi, Ltd. Disk array device, method for controlling the disk array device and storage system
US7287125B2 (en) 2002-10-17 2007-10-23 Hitachi, Ltd. Disk array device, method for controlling the disk array device and storage system
US7487298B2 (en) 2002-10-17 2009-02-03 Hitachi, Ltd. Disk array device, method for controlling the disk array device and storage system

Similar Documents

Publication Publication Date Title
KR940005775B1 (en) Method of opening disk file
US5317727A (en) Method apparatus for determining prefetch operating for a data base
US20010029569A1 (en) Storage device and method for data sharing
JPS59220853A (en) Disc cache system
JPH04336340A (en) Disk cache access control system
JPH06110766A (en) Directory storage method of split storage file system and computer system
JP2586610B2 (en) File creation method
JPH0198020A (en) Index management system
JP2912657B2 (en) File access processor
JPH04112253A (en) Data accessing method using multilayer buffer
JP3118348B2 (en) Program cache method
JPH1185585A (en) Method and device for complete memory resident index
JPH01255028A (en) Method for making access to external storage device
JPH0474232A (en) Multi-task computer
JPH01282635A (en) Index maintaining system
JPS61276040A (en) File access system
JPH02208750A (en) File access system
JPS62182849A (en) Data control system
JPH05342152A (en) Buffer control system
JPH01191240A (en) Cyclic organization file processing system
JPS62145441A (en) Key-ordered data set update processing method
JPH01296334A (en) Disk control method
JPS63291145A (en) Method for managing file
JPH0916445A (en) Ledger file access method and banking system applied with the same
JPH05165723A (en) Disk cache system