JP2665180B2 - Disk cache buffer allocation method - Google Patents

Disk cache buffer allocation method

Info

Publication number
JP2665180B2
JP2665180B2 JP7033608A JP3360895A JP2665180B2 JP 2665180 B2 JP2665180 B2 JP 2665180B2 JP 7033608 A JP7033608 A JP 7033608A JP 3360895 A JP3360895 A JP 3360895A JP 2665180 B2 JP2665180 B2 JP 2665180B2
Authority
JP
Japan
Prior art keywords
disk
cache
buffer
cache buffer
data
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 - Fee Related
Application number
JP7033608A
Other languages
Japanese (ja)
Other versions
JPH08235066A (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 Software Hokkaido Ltd
Original Assignee
NEC Software Hokkaido 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 Software Hokkaido Ltd filed Critical NEC Software Hokkaido Ltd
Priority to JP7033608A priority Critical patent/JP2665180B2/en
Publication of JPH08235066A publication Critical patent/JPH08235066A/en
Application granted granted Critical
Publication of JP2665180B2 publication Critical patent/JP2665180B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ディスクキャッシュバ
ッファの確保方式に関し、特に、ファイルI/Oを管理
するファイルシステムにおけるディスクキャッシュバッ
ファの確保方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for securing a disk cache buffer, and more particularly to a method for securing a disk cache buffer in a file system for managing file I / O.

【0002】[0002]

【従来の技術】一般にディスクキャシュバッファは、メ
モリ上に確保された磁気ディスク装置に対するI/O
(Input/Output:入出力)専用のデータバッファであっ
て、磁気ディスク装置からのデータ読み取り時には、目
的とするデータがディスクキャッシュバッファに存在す
る場合には、そこからデータを読み込む。また、データ
書き込み時には、メモリ上のディスクキャッシュバッフ
ァへ書き込むことにより、磁気ディスク装置へのアクセ
ス(以下、ディスクアクセスという)を行わない。この
ようなディスクキャッシュバッファは、システム処理性
能の向上を目的として使用される。
2. Description of the Related Art Generally, a disk cache buffer is an I / O for a magnetic disk device secured on a memory.
This is a dedicated data buffer for (Input / Output: input / output). When data is read from the magnetic disk device, if the target data exists in the disk cache buffer, the data is read therefrom. Further, at the time of data writing, access to the magnetic disk device (hereinafter, referred to as disk access) is not performed by writing to the disk cache buffer on the memory. Such a disk cache buffer is used for the purpose of improving system processing performance.

【0003】次に、従来のディスクキャッシュバッファ
の確保方式について図面を参照して説明する。
Next, a conventional method for securing a disk cache buffer will be described with reference to the drawings.

【0004】図5は、従来のディスクキャッシュバッフ
ァの確保方式の一例を説明するための情報処理システム
の構成図であって、この情報処理システムは、ユーザア
プリケーション1と、磁気ディスク装置内のファイル管
理を行うファイルシステム2と、磁気ディスク装置7と
からなっている。そして、ファイルシステム2には、ユ
ーザアプリケーション1からの要求によりファイルアク
セスを行うファイルI/O管理手段3と、ユーザデータ
を保持するディスクキャッシュバッファ4と、ファイル
I/O管理手段からの要求により磁気ディスク装置をア
クセスするディスクI/O手段6と、ファイルシステム
が動作する上で必要な情報を初期設定する初期化処理手
段10とを備え、初期化処理手段10はディクキャシュ
バッファ用のメモリを確保するためのディクキャッシュ
バッファ確保処理を行う。また、磁気ディスク装置7
は、I/O専用バッファであるデータバッファ8と磁気
記録媒体である磁気ディスク9とを内蔵している。
FIG. 5 is a configuration diagram of an information processing system for explaining an example of a conventional method of securing a disk cache buffer. This information processing system includes a user application 1 and a file management system in a magnetic disk device. And a magnetic disk device 7. The file system 2 has a file I / O management unit 3 for performing file access in response to a request from the user application 1, a disk cache buffer 4 for holding user data, and a magnetic disk in response to a request from the file I / O management unit. A disk I / O unit 6 for accessing the disk device and an initialization unit 10 for initializing information necessary for the operation of the file system are provided. The initialization unit 10 secures a memory for a disc cache buffer. To secure the disk cache buffer to perform Also, the magnetic disk drive 7
Has a built-in data buffer 8 as an I / O dedicated buffer and a magnetic disk 9 as a magnetic recording medium.

【0005】次に、図6,図7,図8および図9をそれ
ぞれ参照して、従来の報処理システムにおけるディスク
キャッシュバッファの確保方式を説明する。
Next, with reference to FIGS. 6, 7, 8 and 9, a description will be given of a method of securing a disk cache buffer in a conventional report processing system.

【0006】図6は、従来方式における初期化処理の動
作の流れを示す流れ図であり、図7は、図5のファイル
I/O管理手段3の動作の流れを示す流れ図であり、図
8は、図5のディスクキャッシュバッファ4の構成を示
す構成図であり、図9は、従来方式よるディスクキャッ
シュバッファの確保方式を説明する動作図である。
FIG. 6 is a flow chart showing the flow of the operation of the initialization processing in the conventional system, FIG. 7 is a flow chart showing the flow of the operation of the file I / O management means 3 of FIG. 5, and FIG. FIG. 9 is a configuration diagram showing the configuration of the disk cache buffer 4 shown in FIG. 5, and FIG. 9 is an operation diagram illustrating a conventional disk cache buffer reservation system.

【0007】まず、図6を参照すると、システム起動時
に実行されるファイルシステム2の初期化処理手段10
は、ディスクキャシュバッファ4に必要なメモリの確保
を行う(S11)。この確保処理は、システム規定値と
して設定されているキャッシュセグメントサイズとキャ
ッシュセグメント数とからディスクキャッシュバッファ
容量を算出し、その容量分を確保する。
First, referring to FIG. 6, the initialization processing means 10 of the file system 2 executed when the system is started up.
Secures a memory required for the disk cache buffer 4 (S11). In this securing process, the disk cache buffer capacity is calculated from the cache segment size and the number of cache segments set as the system prescribed values, and the capacity is secured.

【0008】この場合のキャッシュセグメントは、図8
に示すように、ディスク全キャッシュバッファの分割単
位を意味し、セグメントサイズ:mバイト,セグメント
数:nで構成され、ディスクアクセスの際は、このセグ
メント単位で行われる。
The cache segment in this case is shown in FIG.
As shown in (1), it means a division unit of the entire disk cache buffer, and is composed of a segment size: m bytes and the number of segments: n, and disk access is performed in units of this segment.

【0009】この初期化処理により確保されたディスク
キャッシュバッファ4は、システムが終了するまでメモ
リ上に常駐される。そして、システム起動後に、アプリ
ケーション1から発生するデータの読み出しまたは書き
込み要求(以下、データリードライト要求という)は、
ファイルシステム2に伝えられ、ファイルI/O管理手
段3で受け取られる。
The disk cache buffer 4 secured by this initialization process is resident on the memory until the system is terminated. Then, after the system is started, a data read or write request (hereinafter referred to as a data read / write request) generated from the application 1 is:
The information is transmitted to the file system 2 and received by the file I / O management unit 3.

【0010】次に、図6を参照すると、ファイルI/O
管理手段3では、目的データがディスクキャッシュバッ
ファ4上に存在するか否かを検索する(S21)。そし
て検索結果、目的データがディスクキャッシュバッファ
4上に存在している場合は(S22)、そのキャッシュ
セグメントに対し、リード(読み出し)またはライト
(書き込み)を実行する(S23)。
Next, referring to FIG. 6, file I / O
The management means 3 searches whether or not the target data exists in the disk cache buffer 4 (S21). As a result of the search, if the target data exists in the disk cache buffer 4 (S22), a read (read) or a write (write) is executed for the cache segment (S23).

【0011】また、S22において、目的データがディ
スクキャッシュバッファ4上に存在しない場合は、未使
用キャッシュセグメントを検索し、このとき、未使用キ
ャッシュセグメントが存在する場合は(S24)、未使
用キャッシュセグメントを使用し、ディスクI/O手段
6を介して磁気ディスク装置7に対しリード(読み出
し)またはライト(書き込み)を実行する(S26)。
In S22, if the target data does not exist in the disk cache buffer 4, an unused cache segment is searched. If there is an unused cache segment (S24), the unused cache segment is searched. To read (read) or write (write) the magnetic disk device 7 via the disk I / O means 6 (S26).

【0012】また、S24において、未使用キャッシュ
セグメントが存在しない場合は、使用中のキャッシュセ
グメントのうち、アクセスされてから最も時間が経過し
ているキャッシュセグメントを検索する。そして、この
キャッシュセグメントの持つデータもディスクI/O手
段6により磁気ディスク装置7へ排出し(S25)、未
使用キャッシュセグメントが存在した場合と同様に、目
的データ用のキャッシュセグメントとして使用してリー
ドまたはライトを実行する(S26)。
If there is no unused cache segment in S24, the cache segment that has been accessed for the longest time since being accessed is searched for among the used cache segments. Then, the data of the cache segment is also discharged to the magnetic disk device 7 by the disk I / O means 6 (S25), and is read and used as a cache segment for the target data in the same manner as when there is an unused cache segment. Alternatively, a write is executed (S26).

【0013】このとき、S25において、キャッシュセ
グメントから排出されたデータは、ディスク装置7内の
データバッファ8へ書き込まれる。そして、この時点で
複数個のデータバッファ8が全て使用状態である場合に
は、磁気ディスク9に記録される。なお、データバッフ
ァ8は、ディスクキャッシュバッファ4と同様に、複数
のキャッシュセグメントに分割されている。その後、フ
ァイルI/O管理手段3は、処理完了を要求元アプリケ
ーションに通知する。
At this time, in S25, the data discharged from the cache segment is written to the data buffer 8 in the disk device 7. If all of the data buffers 8 are in use at this point, the data is recorded on the magnetic disk 9. Note that, like the disk cache buffer 4, the data buffer 8 is divided into a plurality of cache segments. Thereafter, the file I / O management unit 3 notifies the request source application of the completion of the processing.

【0014】次に、ディスクキャッシュバッファの使用
方法について、その一例を図9に示す動作図を参照して
説明する。
Next, an example of a method of using the disk cache buffer will be described with reference to an operation diagram shown in FIG.

【0015】まず、ファイルシステム2内のキャッシュ
セグメント(個数:200,セグメントサイズ:1K
B,合計200KB)は、要求のあったユーザデータ
a,b,c,d,…を保持している。また、磁気ディス
ク装置7内のデータバッファ(個数:2,サイズ10K
B)も、過去に使用したデータA,Bをそれぞれ保持し
ている。この場合に、ユーザデータv,x,z(各1K
B)の書き込み要求が発生すると、ファイルシステム2
内のキャッシュセグメントのすべてが使用中であるた
め、最も過去に使用されたキャッシュセグメントから、
ユーザデータがa,c,bの順に排出される。
First, the cache segments (number: 200, segment size: 1K) in the file system 2
B, total 200 KB) holds requested user data a, b, c, d,... The data buffer (number: 2, size 10K) in the magnetic disk device 7
B) also holds data A and B used in the past, respectively. In this case, the user data v, x, z (each 1K
When the write request of B) occurs, the file system 2
Since all of the cache segments in are in use,
User data is discharged in the order of a, c, and b.

【0016】このため、磁気ディスク装置内のデータバ
ッファのAは、キャッシュセグメントからのユーザデー
タaを受け取るために、Aを磁気ディスク媒体に書き込
む(図中、)。そして、ユーザデータcを受け取るた
めに、磁気ディスク装置7内のデータバッファのBが磁
気ディスク媒体に書き込まれる(図中、)。また、ユ
ーザデータbを受け取るために、ユーザデータaが磁気
ディスク9に書き込まれる(図中、)。
Therefore, A of the data buffer in the magnetic disk device writes A to the magnetic disk medium in order to receive the user data a from the cache segment (in the figure). Then, in order to receive the user data c, the data buffer B in the magnetic disk device 7 is written to the magnetic disk medium (in the figure). In order to receive the user data b, the user data a is written on the magnetic disk 9 (in the figure).

【0017】この結果、ファイルシステム2内のキャッ
シュセグメントには、左からユーザデータv,x,z,
d,…が存在し、磁気ディスク装置7内のデータバッフ
ァにはユーザデータb,cが存在する。また、この処理
に伴う磁気ディスク装置7へのI/O処理は3回であ
る。
As a result, in the cache segment in the file system 2, the user data v, x, z,
.. exist, and user data b and c exist in the data buffer in the magnetic disk device 7. The I / O processing to the magnetic disk device 7 accompanying this processing is performed three times.

【0018】[0018]

【発明が解決しようとする課題】上述した従来のディス
クキャッシュ方式において、ファイルシステム内のキャ
ッシュセグメントのサイズが磁気ディスク装置内のデー
タバッファサイズよりも小さい場合には、効率よくデー
タバッファを活用できないという欠点がある。
In the conventional disk cache system described above, if the size of the cache segment in the file system is smaller than the data buffer size in the magnetic disk device, the data buffer cannot be used efficiently. There are drawbacks.

【0019】例えば、図9を参照すると、ユーザデータ
zを書き込む場合が問題となる。この書き込みにより発
生するキャッシュセグメントbの書き出しでは、デー
タバッファにあるユーザデータaのデータ(1KB)を
磁気ディスクAに書き込む、という処理が伴う。
For example, referring to FIG. 9, there is a problem in writing the user data z. The writing of the cache segment b generated by this writing involves a process of writing the data (1 KB) of the user data a in the data buffer to the magnetic disk A.

【0020】ここで、本来ならば、ユーザデータa,b
は、連続するデータであるため、データバッファのAに
同時に保持されるべきである。しかしながら、ファイル
システムからの1回の入出力処理に対し、1つのデータ
バッファが割り当てられるため、非連続データとして一
括処理されない。
Here, originally, the user data a, b
Are consecutive data, and therefore should be held in A of the data buffer at the same time. However, since one data buffer is allocated to one input / output process from the file system, it is not batch-processed as discontinuous data.

【0021】この結果、有効データ1KBに対して10
KBのデータバッファが割り当てられ、9KBの無効デ
ータも同時に扱われてしまう。従って、データバッファ
が有効に活用できない上、ディスクアクセスの多発にも
つながり、システム性能が低下するという欠点がある。
As a result, 10 KB for 1 KB of valid data
A data buffer of KB is allocated, and invalid data of 9 KB is also handled at the same time. Therefore, the data buffer cannot be used effectively, and disk access frequently occurs, resulting in a decrease in system performance.

【0022】本発明の目的は、このような欠点を解決
し、より効率的かつ高性能な情報処理システムを提供す
ることにある。
An object of the present invention is to solve such a disadvantage and to provide a more efficient and high-performance information processing system.

【0023】[0023]

【課題を解決するための手段】本発明は、データバッフ
ァを内蔵する磁気ディスク装置と、ディスクキャシュバ
ッファを有するファイルシステムとを備える情報処理シ
ステムにおけるディスクキャッシュバッファの確保方式
であって、接続する磁気ディスク装置を認識する接続デ
ィスク認識手段と、磁気ディスク装置の型番,キャッシ
ュセグメントサイズからなる情報を格納したディスク別
キャッシュバッファ情報と、前記接続ディスク認識手段
で得た前記磁気ディスク装置の型番を基に前記ディスク
別キャッシュバッファ情報を検索し、かつ求めたキャッ
シュセグメントサイズから前記ディスクキャッシュバッ
ファに必要なメモリを確保するディスクキャッシュバッ
ファ確保処理手段とを備えることを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to a method for reserving a disk cache buffer in an information processing system including a magnetic disk device having a built-in data buffer and a file system having a disk cache buffer. A connection disk recognizing means for recognizing a disk device, disk-based cache buffer information storing information including a model number of the magnetic disk device and a cache segment size, and a model number of the magnetic disk device obtained by the connection disk recognizing means. A disk cache buffer reserving means for retrieving the disk-specific cache buffer information and reserving a memory required for the disk cache buffer from the obtained cache segment size.

【0024】[0024]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0025】図1は、本発明のディスクキャッシュバッ
ファの確保方式の一実施例を実現する情報処理システム
を示す構成図である。本実施例の情報処理システムは、
図1に示すように、ファイルシステム2の初期化処理手
段5に、接続する磁気ディスク装置を認識して最適なキ
ャッシュセグメントサイズを設定する接続ディスク認識
処理5aと、接続ディスク認識処理にて使用するディス
ク別キャッシュバッファ情報5bと、ディクキャシュバ
ッファ用のメモリを確保するディクキャッシュバッファ
確保処理5cとを備えており、それ以外は従来と同様の
構成である。
FIG. 1 is a block diagram showing an information processing system for realizing an embodiment of a method for securing a disk cache buffer according to the present invention. The information processing system according to the present embodiment includes:
As shown in FIG. 1, the initialization processing means 5 of the file system 2 recognizes a magnetic disk device to be connected and sets an optimum cache segment size by using a connection disk recognition process 5a and a connection disk recognition process. It has disk-specific cache buffer information 5b and a disk cache buffer securing process 5c for securing a memory for a disk cache buffer. The rest of the configuration is the same as the conventional one.

【0026】また、ユーザアプリケーション1,ファイ
ルシステム2,ファイルI/O管理手段3、キャッシュ
バッファ4,ディスクI/O手段6,磁気ディスク装置
7,データバッファ8,磁気ディスク9は、前述した従
来の情報処理システムと同様の構成であって、これらに
ついては、図5に示す情報処理システムの場合と同じ符
号を用いた。なお、初期化処理手段5におけるディスク
キャッシュバッファ確保処理5cは、図5に示す初期化
処理手段10と同様の機能を有するものである。
The user application 1, the file system 2, the file I / O management means 3, the cache buffer 4, the disk I / O means 6, the magnetic disk device 7, the data buffer 8 and the magnetic disk 9 The configuration is the same as that of the information processing system, and the same reference numerals as those of the information processing system shown in FIG. The disk cache buffer securing processing 5c in the initialization processing means 5 has the same function as the initialization processing means 10 shown in FIG.

【0027】次に、図2,図3および図4をそれぞれ参
照して、本発明のディスクキャッシュバッファの確保方
式を説明する。
Next, referring to FIGS. 2, 3 and 4, a description will be given of a method of securing a disk cache buffer according to the present invention.

【0028】図2は、図1の初期化処理手段5における
動作の流れを示す流れ図であり、図3は、本発明による
磁気ディスク装置別のキャッシュバッファ情報の構成を
示す構成図であり、図4は、本発明の情報処理システム
におけるディスクキャッシュバッファの確保方式を説明
する動作図である。
FIG. 2 is a flow chart showing the flow of the operation in the initialization processing means 5 in FIG. 1, and FIG. 3 is a configuration diagram showing the configuration of cache buffer information for each magnetic disk device according to the present invention. FIG. 4 is an operation diagram illustrating a method for securing a disk cache buffer in the information processing system of the present invention.

【0029】まず、図2を参照すると、システム起動時
に実行されるファイルシステム2初期化処理手段5で
は、接続する磁気ディスク装置を認識するための接続デ
ィスク認識処理5aが行われ、最初にディスクI/O手
段6を経由し接続されている磁気ディスク装置7の型番
を入手する(S1)。次に、この認識処理で得られたデ
ィスク型番に基づいて、図3に示すディスク型番,キャ
ッシュセグメントサイズからなるディスク別キャッシュ
バッファ情報5bから、対応するキャッシュセグメント
サイズを検索して求める(S2)。
First, referring to FIG. 2, in the file system 2 initialization processing means 5 executed when the system is started, a connection disk recognition processing 5a for recognizing a magnetic disk device to be connected is performed. The model number of the magnetic disk device 7 connected via the / O means 6 is obtained (S1). Next, based on the disk model number obtained in this recognition processing, a corresponding cache segment size is searched and obtained from the disk-specific cache buffer information 5b including the disk model number and the cache segment size shown in FIG. 3 (S2).

【0030】続いて、求めたキャッシュセグメントサイ
ズを用いて、ディスクキャッシュバッファ4として必要
なメモリを確保するためのディスクキャッシュバッファ
確保処理5cを行う(S3)。この確保処理では、得ら
れたキャッシュセグメントサイズとキャッシュセグメン
ト数とにより、キャッシュバッファ容量を算出し、その
容量分を確保する。
Subsequently, a disk cache buffer securing process 5c for securing a memory required as the disk cache buffer 4 is performed using the determined cache segment size (S3). In this securing process, the cache buffer capacity is calculated based on the obtained cache segment size and the number of cache segments, and the amount corresponding to the capacity is secured.

【0031】なお、最大キャッシュバッファ容量は一定
であるため、従来、システム規定値とされていたキャッ
シュセグメント数nは、最大キャッシュバッファ容量を
キャッシュセグメントサイズで割算した可変値となる。
これらを数式で示すと、 キャッシュバッファ容量 =(キャッシュセグメントサイズm) ×(キャッシュセグメント数n) キャッシュセグメント数n=(最大キャッシュバッファ容量) ÷(キャッシュセグメントサイズ) となる。
Since the maximum cache buffer capacity is constant, the number n of cache segments conventionally set as a system-specified value is a variable value obtained by dividing the maximum cache buffer capacity by the cache segment size.
When these are expressed by formulas, cache buffer capacity = (cache segment size m) × (cache segment number n) cache segment number n = (maximum cache buffer capacity) ÷ (cache segment size).

【0032】また、システム起動後に発生するアプリケ
ーション1からの、データリードライト要求が実行され
終了するまでのファイルシステム2内の処理は、従来方
式の場合と同様であり、重複を避けるために説明を省略
するが、ファイルシステム2内のキャッシュセグメント
および磁気ディスク装置7内のデータバッファ8の動作
は、従来方式とは異なる。
Further, the processing in the file system 2 from the application 1 until the data read / write request is executed after the system is started and is completed is the same as that of the conventional system. Although omitted, the operations of the cache segment in the file system 2 and the data buffer 8 in the magnetic disk device 7 are different from those of the conventional system.

【0033】次に、本発明におけるディスクキャッシュ
バッファの使用方法について、図4の動作図を参照して
説明する。
Next, a method of using the disk cache buffer according to the present invention will be described with reference to the operation diagram of FIG.

【0034】まず、ファイルシステム2内のキャッシュ
セグメント(個数:20、セグメントサイズ:10K
B)は、要求のあったユーザデータa〜k,l〜uを保
持している。また、磁気ディスク装置7内のデータバッ
ファ(個数:20,セグメントサイズ:10KB)は、
過去に使用したデータA,Bを保持している。この場合
に、ユーザデータv,x,z(各1KB)の書き込み要
求が発生すると、ファイルシステム2内のキャッシュセ
グメントのすべてが使用中であるため、最も過去に使用
されたセグメントa〜kが排出される。
First, the cache segments in the file system 2 (number: 20, segment size: 10K)
B) holds the requested user data a to k, l to u. The data buffer (number: 20, segment size: 10 KB) in the magnetic disk device 7
Data A and B used in the past are stored. In this case, when a write request for the user data v, x, z (1 KB each) occurs, all of the cache segments in the file system 2 are in use, and the segments a to k used most recently are discharged. Is done.

【0035】これにより、磁気ディスク装置7内のデー
タバッファのAは、キャッシュセグメントa〜kを受け
取るためにAを磁気デイスクに書き込む(図中、)。
そして、ユーザデータvに対するキャッシュセグメント
が割り当てられる。また、10KBのセグメントサイズ
によりユーザデータx,zもvと同一キャッシュセグメ
ント内に記録されるこの結果、ファイルシステム2内の
ディスクキャッシュバッファ4には、ユーザデータv〜
とl〜uとが存在し、磁気ディスク装置7内のデータバ
ッファ8には、ユーザデータa〜kとBとが存在する。
また、この処理に伴う磁気ディスク装置7へのI/O処
理は1回のみである。
Thus, the data buffer A in the magnetic disk device 7 writes A to the magnetic disk to receive the cache segments a to k (in the figure).
Then, a cache segment for the user data v is allocated. Further, the user data x and z are also recorded in the same cache segment as v with the segment size of 10 KB. As a result, the user data v to z are stored in the disk cache buffer 4 in the file system 2.
And user data a to k and B exist in the data buffer 8 in the magnetic disk device 7.
Further, the I / O processing to the magnetic disk device 7 accompanying this processing is performed only once.

【0036】[0036]

【発明の効果】以上説明したように、本発明のディスク
キャッシュバッファの確保方式は、ファイルシステム内
のキャッシュセグメントのサイズが、磁気ディスク装置
内のデータバッファサイズと同一サイズとなるため、効
率よくデータバッファを活用でき、データバッファから
磁気ディスク装置への書き込み回数を減少できる。従っ
て、効率的かつ高性能な情報処理システムを提供できる
という効果がある。
As described above, according to the disk cache buffer securing method of the present invention, since the size of the cache segment in the file system is the same as the size of the data buffer in the magnetic disk device, data can be efficiently stored. The buffer can be utilized, and the number of times of writing from the data buffer to the magnetic disk device can be reduced. Therefore, there is an effect that an efficient and high-performance information processing system can be provided.

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

【図1】本発明のディスクキャッシュバッファの確保方
式を実現する情報処理システムを示す構成図である。
FIG. 1 is a configuration diagram showing an information processing system for realizing a disk cache buffer securing method according to the present invention.

【図2】図1の初期化処理手段5における動作の流れを
示す流れ図である。
FIG. 2 is a flowchart showing a flow of an operation in an initialization processing means 5 of FIG. 1;

【図3】本発明による磁気ディスク装置別のキャッシュ
バッファ情報の構成を示す構成図である。
FIG. 3 is a configuration diagram showing a configuration of cache buffer information for each magnetic disk device according to the present invention.

【図4】本発明によるディスクキャッシュバッファの確
保方式を説明する動作図である。
FIG. 4 is an operation diagram illustrating a method for securing a disk cache buffer according to the present invention.

【図5】従来のディスクキャッシュバッファの確保方式
を説明するための情報処理システムを示す構成図であ
る。
FIG. 5 is a configuration diagram showing an information processing system for explaining a conventional method of securing a disk cache buffer.

【図6】従来方式における初期化処理の動作の流れを示
す流れ図である。
FIG. 6 is a flowchart showing an operation flow of an initialization process in a conventional method.

【図7】図5のファイルI/O管理手段3の動作の流れ
を示す流れ図である。
7 is a flowchart showing an operation flow of the file I / O management means 3 of FIG.

【図8】図5のディスクキャッシュバッファ4の構成を
示す構成図である。
8 is a configuration diagram showing a configuration of a disk cache buffer 4 of FIG.

【図9】従来方式よるディスクキャッシュバッファの確
保方式を説明する動作図である。
FIG. 9 is an operation diagram illustrating a method of securing a disk cache buffer according to a conventional method.

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

1 ユーザアプリケーション 2 ファイルシステム 3 ファイルI/O管理手段 4 ディスクキャッシュバッファ 5,10 初期化処理手段 5a 接続ディスク認識処理 5b ディスク別キャッシュバッファ情報 5c キャッシュバッファ確保処理 6 ディスクI/O手段 7 ディスク装置 8 データバッファ 9 磁気ディスク DESCRIPTION OF SYMBOLS 1 User application 2 File system 3 File I / O management means 4 Disk cache buffer 5, 10 Initialization processing means 5a Connection disk recognition processing 5b Disk-specific cache buffer information 5c Cache buffer reservation processing 6 Disk I / O means 7 Disk device 8 Data buffer 9 Magnetic disk

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データバッファを内蔵する磁気ディスク
装置と、ディスクキャシュバッファを有するファイルシ
ステムとを備える情報処理システムにおけるディスクキ
ャッシュバッファの確保方式であって、 接続する磁気ディスク装置を認識する接続ディスク認識
手段と、磁気ディスク装置の型番,キャッシュセグメン
トサイズからなる情報を格納したディスク別キャッシュ
バッファ情報と、前記接続ディスク認識手段で得た前記
磁気ディスク装置の型番を基に前記ディスク別キャッシ
ュバッファ情報を検索し、かつ求めたキャッシュセグメ
ントサイズから前記ディスクキャッシュバッファに必要
なメモリを確保するディスクキャッシュバッファ確保処
理手段とを備えることを特徴とするディスクキャッシュ
バッファの確保方式。
1. A method for reserving a disk cache buffer in an information processing system including a magnetic disk device having a built-in data buffer and a file system having a disk cache buffer, wherein the connection disk recognition recognizes the magnetic disk device to be connected. Means, disk-based cache buffer information storing information comprising a model number of the magnetic disk device and cache segment size, and searching for the disk-based cache buffer information based on the model number of the magnetic disk device obtained by the connected disk recognizing means. A disk cache buffer securing processor for securing a memory required for the disk cache buffer from the determined cache segment size.
JP7033608A 1995-02-22 1995-02-22 Disk cache buffer allocation method Expired - Fee Related JP2665180B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7033608A JP2665180B2 (en) 1995-02-22 1995-02-22 Disk cache buffer allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7033608A JP2665180B2 (en) 1995-02-22 1995-02-22 Disk cache buffer allocation method

Publications (2)

Publication Number Publication Date
JPH08235066A JPH08235066A (en) 1996-09-13
JP2665180B2 true JP2665180B2 (en) 1997-10-22

Family

ID=12391183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7033608A Expired - Fee Related JP2665180B2 (en) 1995-02-22 1995-02-22 Disk cache buffer allocation method

Country Status (1)

Country Link
JP (1) JP2665180B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5593955B2 (en) * 2010-08-23 2014-09-24 日本電気株式会社 Data processing apparatus, data processing method, and computer program
JP5709563B2 (en) * 2011-02-07 2015-04-30 キヤノン株式会社 Buffer cache management method, buffer cache management device and program

Also Published As

Publication number Publication date
JPH08235066A (en) 1996-09-13

Similar Documents

Publication Publication Date Title
JP3898782B2 (en) Information recording / reproducing device
JP4163461B2 (en) Cache buffer control method and control apparatus
JP3183993B2 (en) Disk control system
US7979631B2 (en) Method of prefetching data in hard disk drive, recording medium including program to execute the method, and apparatus to perform the method
JP2804115B2 (en) Disk file system
JP2003015915A (en) Automatic expansion method for storage device capacity
JP3568110B2 (en) Cache memory control method, computer system, hard disk drive, and hard disk controller
US7376786B2 (en) Command stack management in a disk drive
US5835939A (en) Data transfer control method and apparatus for external storage subsystem adapted to perform erasing after writing
JPH08328747A (en) Magnetic disk device and buffer management method in magnetic disk device
JP7131053B2 (en) Storage device, information processing program and information processing system
JP3800903B2 (en) Storage device and access control method thereof
JP2665180B2 (en) Disk cache buffer allocation method
JPH04259048A (en) Pre-read data control system using statistic information
JP3969809B2 (en) Data buffer management method in storage device
JPH11327802A (en) Disk system
US6950905B2 (en) Write posting memory interface with block-based read-ahead mechanism
JP2003150445A (en) Computer system having external storage device
JP2985385B2 (en) Image data retrieval system
JPH01303547A (en) Control system for information memory
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JPH05257810A (en) Information recording and reproducing device and information recording method
JPH11224165A (en) Disk device
JPH0863397A (en) Method for controlling disk cache
JP2000227865A (en) Device and method for recording and reproducing information for segment cache system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970527

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees