JPH05342152A - Buffer control system - Google Patents

Buffer control system

Info

Publication number
JPH05342152A
JPH05342152A JP4170073A JP17007392A JPH05342152A JP H05342152 A JPH05342152 A JP H05342152A JP 4170073 A JP4170073 A JP 4170073A JP 17007392 A JP17007392 A JP 17007392A JP H05342152 A JPH05342152 A JP H05342152A
Authority
JP
Japan
Prior art keywords
file
main storage
storage device
buffer
buffer control
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
JP4170073A
Other languages
Japanese (ja)
Inventor
Toshihiko Suzuki
寿彦 鈴木
Kenji Yokoyama
憲治 横山
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.)
OKI FUJIRITSUKU SYST KAIHATSU KK
Oki Electric Industry Co Ltd
Original Assignee
OKI FUJIRITSUKU SYST KAIHATSU KK
Oki Electric Industry 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 OKI FUJIRITSUKU SYST KAIHATSU KK, Oki Electric Industry Co Ltd filed Critical OKI FUJIRITSUKU SYST KAIHATSU KK
Priority to JP4170073A priority Critical patent/JPH05342152A/en
Publication of JPH05342152A publication Critical patent/JPH05342152A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To provide the buffer control system capable of accessing a file at a high speed in a cache buffer controller for controlling a file transfer between a main storage device and a disk device. CONSTITUTION:The system is constituted of a cache buffer controller 1 having information for managing a block of a file, a file deciding means 2 for registering and deciding a resident file, a main storage device 3, a disk device 4 and a program 5. By allowing a buffer to be resident in the main storage device 3 by a block (data) unit of the file, an access between the main storage device 3 and the disk device 4 becomes unnecessary, and a quick access is enabled irrespective of size of a cache and the number of times of a data access. Also, a table managed by a program up to the present is managed as a file by using the buffer control system of this system, by which at the time of changing a program, etc., the changing work quantity is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュ−タの主記憶
装置とディスク装置間のデ−タ伝送を制御するキャッシ
ュバッファ制御装置のバッファ制御方式に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer control system of a cache buffer control device for controlling data transmission between a main memory device of a computer and a disk device.

【0002】[0002]

【従来技術】従来、コンピュ−タのオペレ−ションシス
テムの入出力装置においてアクセス速度の遅い磁気ディ
スク装置(以下ディスクと略す)のアクセスを高速にす
るために主記憶装置(以下メモリと略す)を用いたキャ
ッシュ制御が用いられる。キャッシュ制御は、プログラ
ムから入出力要求のあったデ−タを磁気ディスク装置に
直接アクセスするのではなくメモリ上に蓄えておくこと
でアクセス性能を向上させる手法である。但しメモリ上
に蓄えられたデ−タは、最終的にはディスクに記録する
ものとする。
2. Description of the Related Art Conventionally, in an input / output device of a computer operation system, a main storage device (hereinafter abbreviated as memory) has been used to speed up access of a magnetic disk device (hereinafter abbreviated as a disk) having a slow access speed. The cache control used is used. The cache control is a method of improving access performance by storing data requested by a program for input / output in a memory instead of directly accessing the magnetic disk device. However, the data stored in the memory is finally recorded on the disc.

【0003】メモリ上でデ−タを蓄えるためには、複数
装着しているディスクの識別とディスク上の記憶位置が
必要である。ディスクの識別には、装置に一意の装置番
号を割り当てる。ディスク上の記録位置を割り当てる方
法には、論理的なファイル単位のブロック番号で割り当
てる方法と物理的なディスク位置(シリンダごとの番号
やセクタ番号)で割り当てる方法がある。以降では、本
発明の関与する論理的な割当て方法についてのみ述べ
る。
In order to store the data on the memory, it is necessary to identify a plurality of mounted disks and the storage positions on the disks. A unique device number is assigned to the device for disc identification. There are two methods for allocating the recording position on the disk: a logical block number for each file and a physical disk position (a number for each cylinder or a sector number). Only the logical allocation method to which the present invention is concerned will be described below.

【0004】論理的な割当て方法は、キャッシュをファ
イルの単位で管理し、ファイル毎の番号を付ける。又デ
ィスクをアクセスするための最小単位をブロック(例え
ば512バイト)として先頭から番号を付けて管理す
る。ここで、プログラムからディスクにアクセスする手
段を通して、論理的な割当て方法を用いたキャッシュ制
御を説明する。プログラムからディスクにデ−タの書き
込みをするためには、ファイルを開き、ヘッドを書き込
みをする位置に移動し書き込み要求を出す。キャッシュ
制御は、開かれたファイルと要求のあった位置に該当す
るブロックの情報を装置番号とファイル番号とブロック
番号として管理し書き込みをメモリ上のブロックに登録
する。
In the logical allocation method, the cache is managed in units of files and a number is assigned to each file. In addition, the minimum unit for accessing the disk is a block (for example, 512 bytes), and a number is assigned from the beginning for management. Here, cache control using a logical allocation method will be described through a means for accessing a disk from a program. In order to write data to the disc from the program, the file is opened, the head is moved to the writing position, and a write request is issued. The cache control manages the information of the opened file and the block corresponding to the requested position as the device number, the file number, and the block number, and registers the writing in the block on the memory.

【0005】プログラムが書き込んだデ−タを読み出す
場合には、メモリ上のブロックから読み出しディスクに
アクセスする必要がない。又、ディスクから始めて読み
込むときにはアクセスする必要はあるが、以降のプログ
ラムからの読み出し要求ではディスクへのアクセスが必
要ない。
When the data written by the program is read, it is not necessary to access the read disk from the block on the memory. Further, although it is necessary to access when reading from the disk for the first time, access to the disk is not necessary for subsequent read requests from the program.

【0006】キャッシュ制御に用いるメモリは、無制限
ではないため効率的に使用するために、LRU(Least
Recently Used rule)手法が用いられる。LRU手法
は、最も使用されていないメモリ上のブロックを廃棄す
る手法である。キャッシュ制御の場合、アクセス要求が
あった順に管理する情報を待ち行列の最後につなぎ、待
ち行列の先頭から取り出すことで最も古く読み書き要求
があったブロックをディスクに戻すこととなる。この処
理を掃き出し処理と呼ぶ。
Since the memory used for cache control is not unlimited, in order to use it efficiently, LRU (Least
Recently Used rule) method is used. The LRU method is a method of discarding a block on the memory that is least used. In the case of cache control, the information to be managed in the order of access requests is connected to the end of the queue, and the oldest read / write request block is returned to the disk by fetching from the head of the queue. This process is called a sweep process.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
キャッシュ制御装置においてプログラムが頻繁にアクセ
スしないが高速にアクセスしたいデ−タがあった場合、
LRU手法によって掃き出し対象となる可能性があるた
め高速なアクセスが出来ない。このため、従来プログラ
ムでは、このようなデ−タをプログラムの処理で固定的
なテ−ブルとしてメモリに持ち管理するためプログラム
が煩雑になり、又固定的なテ−ブルを複数のプログラム
がアクセスするため変更による食違いが発生するという
問題点があった。
However, in the conventional cache control device, when there is data which the program does not access frequently but wants to access at high speed,
High-speed access cannot be performed because there is a possibility that the LRU method will be the sweep target. Therefore, in the conventional program, since such data is held in the memory as a fixed table in the processing of the program and managed, the program becomes complicated, and the fixed table is accessed by a plurality of programs. Therefore, there is a problem in that a discrepancy occurs due to the change.

【0008】本発明は上述の点に鑑みてなされたもの
で、上記問題点を除去し、主記憶装置とディスク装置間
のデ−タ伝送を制御するキャッシュバッファ制御装置に
おいて高速アクセスが可能なバッファ制御方式を提供す
る。
The present invention has been made in view of the above-mentioned problems, and eliminates the above-mentioned problems and enables a high-speed access buffer in a cache buffer control device for controlling data transmission between a main storage device and a disk device. Provide a control method.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
本発明は、図2に示すように、主記憶装置3とディスク
装置4及びキャッシュバッファ制御装置1を具備し、該
キャッシュバッファ制御装置1により主記憶装置3とデ
ィスク装置4の間のデ−タ伝送制御するときの主記憶装
置3のバッファ制御方式において、ファイルの属性を登
録し判定するファイル判定手段2を設け、主記憶装置3
に常駐させるファイルの属性をファイル判定手段2に登
録し、該ファイルの情報処理は主記憶装置3のアクセス
のみで行いファイルアクセスの高速化を図る事を特徴と
する。
In order to solve the above problems, the present invention comprises a main storage device 3, a disk device 4 and a cache buffer control device 1, as shown in FIG. In the buffer control method of the main storage device 3 for controlling data transmission between the main storage device 3 and the disk device 4, the file determination means 2 for registering and determining the attribute of the file is provided.
It is characterized in that the attribute of the file to be made resident in is registered in the file determination means 2, and the information processing of the file is performed only by accessing the main storage device 3 to speed up the file access.

【0010】[0010]

【作用】本発明では、上記手段でファイルのブロック
(デ−タ)単位で主記憶装置3にバッファを常駐させる
ことにより主記憶装置3とディスク装置4の間のアクセ
スが無用となり、キャッシュのサイズやデ−タアクセス
の回数に関係無く高速アクセス可能なファイルを提供す
ることが出来る。また従来プログラムで管理していたテ
−ブルを本方法のバッファ制御方式を使用しファイルと
して管理することでプログラムの変更等に際し変更作業
量を軽減することが出来る。
According to the present invention, by making the buffer resident in the main storage device 3 in units of file blocks (data) by the above means, access between the main storage device 3 and the disk device 4 becomes unnecessary, and the size of the cache is increased. It is possible to provide a file that can be accessed at high speed regardless of the number of data accesses. Further, by managing the table which has been managed by the conventional program as a file by using the buffer control method of the present method, it is possible to reduce the amount of modification work when the program is modified.

【0011】[0011]

【実施例】以下本発明の一実施例を図面に基づいて詳細
に説明する。図1は本発明のバッファ制御方式の処理フ
ロ−を示す図であり、図2は本発明のバッファ制御方式
を適用する装置の構成を示すブロック図である。図2に
示すように、本装置はファイルのブロックを管理する情
報を持つキャッシュバッファ制御装置1、常駐ファイル
を登録し判定するファイル判定手段2、主記憶装置(メ
モリ)3、ディスク装置4、プログラム5から構成され
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a diagram showing a processing flow of the buffer control system of the present invention, and FIG. 2 is a block diagram showing a configuration of an apparatus to which the buffer control system of the present invention is applied. As shown in FIG. 2, the present apparatus is a cache buffer control apparatus 1 having information for managing file blocks, a file determination means 2 for registering and determining a resident file, a main storage device (memory) 3, a disk device 4, and a program. It is composed of 5.

【0012】図1は、ファイル単位にLRUの対象とし
ないブロックをメモリ上に確保するバッファ制御方式の
処理フロ−である。図2の構成図及び図1の手順にした
がって説明する。まず高速アクセスに必要なファイルを
主記憶装置3上に置きバッファ制御するため、ファイル
判定手段2に装置番号11とファイル番号12を登録す
る(ステップST11)。プログラム5からの入出力要
求を受け付ける(ステップST12)。キャッシュバッ
ファ制御装置1で入力要求をブロック番号13に変換
し、装置番号11とファイル番号12とブロック番号1
3から主記憶装置3上の要求対象ブロック用のバッファ
を検索する(ステップST13)。
FIG. 1 is a processing flow of a buffer control system for securing a block, which is not a target of LRU, on a memory for each file. A description will be given according to the configuration diagram of FIG. 2 and the procedure of FIG. First, the device number 11 and the file number 12 are registered in the file determining means 2 in order to place the files required for high-speed access on the main storage device 3 for buffer control (step ST11). An input / output request from the program 5 is accepted (step ST12). The cache buffer control device 1 converts the input request into the block number 13, and the device number 11, the file number 12, and the block number 1
The buffer for the requested block in the main memory 3 is searched from 3 (step ST13).

【0013】次に主記憶装置3上にバッファが有るか否
かを判定し(ステップST14)、バッファが有る場合
には、管理情報をLRU用のリストから外す(ステップ
ST15)。要求ブロックがファイル判定手段2に登録
されているファイルかどうかを調べる(ステップST1
6)。ファイル判定手段2に、装置番号11とファイル
番号12を渡し検索する。ファイルが登録されていない
ときには(ステップST17)、管理情報をLRU用の
リストの最後につなぐ(ステップST18)。
Next, it is judged whether or not there is a buffer in the main storage device 3 (step ST14), and if there is a buffer, the management information is removed from the list for LRU (step ST15). It is checked whether the requested block is a file registered in the file determination means 2 (step ST1).
6). The device number 11 and the file number 12 are passed to the file determination means 2 for searching. When the file is not registered (step ST17), the management information is linked to the end of the list for LRU (step ST18).

【0014】ファイルがファイル判定手段2に登録され
ているときには(ステップST17)、管理情報は待ち
行列につながないため掃き出し処理の対象とならず必ず
主記憶装置3上に置かれることになる。このため高速な
アクセスが可能になる。最後にデ−タを主記憶装置3上
のバッファ内容を要求元であるプログラム5の所定位置
へコピ−し(ステップST19)、ステップST12か
ら繰り返す。
When the file is registered in the file determining means 2 (step ST17), the management information is not subject to the sweeping process because it is not connected to the queue, and is always stored in the main storage device 3. Therefore, high speed access becomes possible. Finally, the data is copied to the predetermined position of the program 5 which is the request source by copying the buffer contents on the main storage device 3 (step ST19) and the process is repeated from step ST12.

【0015】バッファが主記憶装置3上にないときに
は、バッファを主記憶装置3上にとることが必要にな
る。この時、主記憶装置3上にバッファを確保する余裕
があれば(ステップST20)、バッファを確保し(ス
テップST23)必要であればディスク装置4からデ−
タを主記憶装置3に読み出す(ステップST24)。続
いてバッファが存在するときと同様にステップST16
に戻る。
When the buffer is not in the main storage device 3, it is necessary to store the buffer in the main storage device 3. At this time, if there is a room to secure a buffer in the main storage device 3 (step ST20), a buffer is secured (step ST23), and if necessary, the data is deleted from the disk device 4.
Data to the main storage device 3 (step ST24). Then, as in the case where the buffer exists, step ST16
Return to.

【0016】主記憶装置3上にバッファが確保出来ない
ときには(ステップST20)、バッファを確保するた
めに最も使用されていないバッファをLRU用のリスト
の先頭から管理情報をはずし(ステップST21)、必
要ならディスク装置4にバッファの内容を書き込む(ス
テップST22)。これによってバッファの内容は廃棄
され、バッファが確保されたためステップST23に戻
る。
When the buffer cannot be secured in the main storage device 3 (step ST20), the management information is removed from the head of the LRU list for the buffer that is least used to secure the buffer (step ST21). Then, the contents of the buffer are written to the disk device 4 (step ST22). As a result, the contents of the buffer are discarded and the buffer is secured, and the process returns to step ST23.

【0017】上述した本発明のバッファ制御方式は、例
えば住所から郵便番号を検索する場合とか、逆に郵便番
号から住所を検索する場合のように頻繁には使用されな
いが、使用されるときは早急に結果が欲しい場合に用い
られる。
The above-described buffer control system of the present invention is not frequently used, for example, when searching a postal code from an address, or conversely when searching an address from a postal code, but when it is used, it is prompt. Used when you want the result to.

【0018】[0018]

【発明の効果】以上、詳細に説明したように本発明によ
れば、下記のような効果が期待される。 (1)ファイルのブロック(デ−タ)単位で主記憶装置
にバッファを常駐させることにより主記憶装置とディス
ク装置の間のアクセスが無用となり、キャッシュのサイ
ズやデ−タアクセスの回数に関係無く高速アクセス可能
なファイルを提供することが出来る。 (2)また、従来プログラムで管理していたテ−ブルを
本方式のバッファ制御方式を使用しファイルとして管理
することでプログラムの変更等に際し変更作業量を軽減
することが出来る。
As described in detail above, according to the present invention, the following effects are expected. (1) By making a buffer resident in the main storage device in block (data) units of a file, access between the main storage device and the disk device becomes unnecessary, regardless of the size of the cache and the number of data accesses. It is possible to provide files that can be accessed at high speed. (2) Further, by managing the table which has been managed by the conventional program as a file by using the buffer control system of this system, it is possible to reduce the amount of modification work when the program is modified.

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

【図1】本発明のバッファ制御方式のフロ−チャ−トで
ある。
FIG. 1 is a flowchart of a buffer control system of the present invention.

【図2】本発明のバッファ制御方式の適用する装置の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an apparatus to which the buffer control system of the present invention is applied.

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

1 キャッシュバッファ制御装置 2 ファイル判定手段 3 主記憶装置 4 ディスク装置 5 プログラム 1 cache buffer control device 2 file determination means 3 main storage device 4 disk device 5 program

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】主記憶装置、ディスク装置及びキャッシュ
バッファ制御装置を具備し、該キャッシュバッファ制御
装置により主記憶装置とディスク装置間のデ−タ伝送制
御するときの前記主記憶装置のバッファ制御方式におい
て、 ファイルの属性を登録し判定するファイル判定手段を設
け、前記主記憶装置に常駐させるファイルの属性を前記
ファイル判定手段に登録し、該ファイルの情報処理は前
記主記憶装置のアクセスのみで行うことを特徴とするバ
ッファ制御方式。
1. A buffer control system for a main storage device comprising a main storage device, a disk device and a cache buffer control device, wherein the cache buffer control device controls data transmission between the main storage device and the disk device. In, a file judgment means for registering and judging the attribute of the file is provided, the attribute of the file to be made resident in the main storage device is registered in the file judgment means, and the information processing of the file is performed only by accessing the main storage device. A buffer control method characterized in that
JP4170073A 1992-06-04 1992-06-04 Buffer control system Pending JPH05342152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4170073A JPH05342152A (en) 1992-06-04 1992-06-04 Buffer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4170073A JPH05342152A (en) 1992-06-04 1992-06-04 Buffer control system

Publications (1)

Publication Number Publication Date
JPH05342152A true JPH05342152A (en) 1993-12-24

Family

ID=15898141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4170073A Pending JPH05342152A (en) 1992-06-04 1992-06-04 Buffer control system

Country Status (1)

Country Link
JP (1) JPH05342152A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100723512B1 (en) * 2005-11-23 2007-05-30 삼성전자주식회사 Cache Buffer Control Method and Disk Drive Using the Same
US7797477B2 (en) 2003-04-10 2010-09-14 Hitachi, Ltd. File access method in a storage system, and programs for performing the file access

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797477B2 (en) 2003-04-10 2010-09-14 Hitachi, Ltd. File access method in a storage system, and programs for performing the file access
KR100723512B1 (en) * 2005-11-23 2007-05-30 삼성전자주식회사 Cache Buffer Control Method and Disk Drive Using the Same

Similar Documents

Publication Publication Date Title
US4476526A (en) Cache buffered memory subsystem
US5418929A (en) Controller for storage unit and method of controlling storage unit
KR940005775B1 (en) Method of opening disk file
JP3898782B2 (en) Information recording / reproducing device
JPS58155464A (en) Detection of sequential data stream
JPH06342395A (en) Method and medium for storage of structured data
JPH03164840A (en) Method and system for optimizing data caching in disk-base computer system
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
US5696931A (en) Disc drive controller with apparatus and method for automatic transfer of cache data
US7406547B2 (en) Sequential vectored buffer management
US7254672B1 (en) Translation device driver for translating between disk device driver and tape device driver commands
JPH05342152A (en) Buffer control system
JPH06175894A (en) Method and system for retrieving nonspecific data in data processing system
JP3435176B2 (en) Magnetic disk drive
JP2002108704A (en) Disk cache control system
JPH0460730A (en) Cache control system
JPS58161058A (en) Apparatus for and method of controlling cash buffer for memory subsystem
JPH064225A (en) Disk controller for prefetching spare sectors
JP2973474B2 (en) Magneto-optical disk drive
WO1991008536A1 (en) Data record move apparatus for a virtual memory system
JPS63291145A (en) Method for managing file
WO1991008537A1 (en) Data record copy apparatus for a virtual memory system
JPH04336340A (en) Disk cache access control system
JPH01255028A (en) How to access external storage devices
JPH0650479B2 (en) Data processing device