JPH07248971A - Data reading processor - Google Patents

Data reading processor

Info

Publication number
JPH07248971A
JPH07248971A JP6041670A JP4167094A JPH07248971A JP H07248971 A JPH07248971 A JP H07248971A JP 6041670 A JP6041670 A JP 6041670A JP 4167094 A JP4167094 A JP 4167094A JP H07248971 A JPH07248971 A JP H07248971A
Authority
JP
Japan
Prior art keywords
block
read
storage device
cache
information
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
JP6041670A
Other languages
Japanese (ja)
Inventor
Kotaro Okazaki
耕太郎 岡▲崎▼
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6041670A priority Critical patent/JPH07248971A/en
Publication of JPH07248971A publication Critical patent/JPH07248971A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To provide a data reading processor which improves the access efficiency in consideration of the block that is pre-read by a pre-reading cache mechanism when the data are read out of such a storage as a magnetic disk that has the pre-reading cache mechanism. CONSTITUTION:In reference to a storage that has a cache mechanism and pre-reads a block to hold it in a cache, a cache data recognizing part 30 stores the pre-reading block information 32 to show the pre-reading block that is decided by the block read last. Then a reading processing part 31 carries out with preference the reading request of the block included in the information 32 among plural blocks when it carries out the reading requests of those blocks to the storage. Then the part 31 carries out the reading requests of the blocks which are not included in the information 32.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、先読みキャッシュ機構
を持つ磁気ディスク等の記憶装置からのデータ読み込み
における、データ読み込み処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data read processing device for reading data from a storage device such as a magnetic disk having a prefetch cache mechanism.

【0002】[0002]

【従来の技術と発明が解決しようとする課題】磁気ディ
スク記憶装置等、例えば回転するディスク記憶媒体にデ
ータを記憶する記憶装置に、先読みキャッシュ機構を設
けることはよく知られているとおりであり、例えばSC
SI規格に、READ AHEAD CACHE機構と
して規格化されている。
2. Description of the Related Art It is well known to provide a read-ahead cache mechanism in a magnetic disk storage device or the like, for example, a storage device that stores data in a rotating disk storage medium. SC
It is standardized in the SI standard as a READ AHEAD CACHE mechanism.

【0003】そのような先読みキャッシュ機構を持つ記
憶装置では、読み込み要求によって要求されたデータの
ブロックを読み出した場合に、最後のブロックに続く記
憶位置の一定個数のブロックを自動的に先読みし、先読
みキャッシュ機構のキャッシュに記憶する。
In a storage device having such a read-ahead cache mechanism, when a block of data requested by a read request is read, a predetermined number of blocks at storage positions following the last block are automatically read-ahead and read-ahead. Store in the cache of the cache mechanism.

【0004】例えば図2(a)に示すように、ディスク記
憶媒体1の連続する記憶位置に第1ブロックから第50ブ
ロックまで記憶できるとして、例えば第9〜第12ブロッ
クの読み込み要求があり、それらのブロックをディスク
記憶媒体1から読み出して、要求元へ転送したとする。
For example, as shown in FIG. 2 (a), assuming that the first block to the 50th block can be stored in consecutive storage positions of the disk storage medium 1, for example, there is a read request for the 9th to 12th blocks. It is assumed that this block is read from the disk storage medium 1 and transferred to the request source.

【0005】その場合には、自動的に第13ブロックから
例えば8ブロックを読み出し、それらの第13〜第20ブロ
ックをキャッシュ2に記憶する。なおこの動作を終わっ
たとき、ディスク記憶媒体1上の記憶情報読取のための
ヘッドは、次の第21ブロックを読み出す位置にある。
In this case, for example, 8 blocks are automatically read from the 13th block and those 13th to 20th blocks are stored in the cache 2. When this operation is finished, the head for reading stored information on the disk storage medium 1 is at the position for reading the next 21st block.

【0006】次の読み込み要求があると、記憶装置では
要求のブロックがキャッシュに先読みされているか識別
し、先読みされていればディスク記憶媒体からの読出し
を行うことなく、該当ブロックをキャッシュから読み出
して要求元に送る。
When there is a next read request, the storage device identifies whether or not the requested block is pre-read in the cache, and if it is pre-read, the corresponding block is read from the cache without reading from the disk storage medium. Send to requester.

【0007】即ち前記図2(a)の例の状態で、例えば第
17〜第20ブロックの読み込み要求があれば、ディスク記
憶媒体1からの読出しは行わずに、キャッシュ2からそ
れらのブロックを読み出して要求元に送る。
That is, in the state of the example of FIG.
If there is a read request for the 17th to 20th blocks, the blocks are not read from the disk storage medium 1 but are read from the cache 2 and sent to the request source.

【0008】このようにすることにより、必要なブロッ
クがキャッシュにあれば、ディスク記憶媒体の場合より
も格段に短いアクセス時間で読み出すことができるが、
以上の動作から明らかなように、先読みキャッシュ機構
が最も有効なのは、連続する記憶位置のブロックを、何
回かに分けて順番に読み出す場合である。
By doing so, if the required block is in the cache, it can be read in a much shorter access time than in the case of the disk storage medium.
As is apparent from the above operation, the read-ahead cache mechanism is most effective when the blocks at consecutive storage locations are divided into several blocks and sequentially read.

【0009】一方、よく知られているように不連続な複
数ブロックの読み込み要求もしばしばあるが、その場合
に最初の要求ブロックがキャッシュに先読みされていな
ければ、先読みブロックは利用されないが、読み込み要
求において、キャッシュにあるブロックを考慮すること
は行われていない。
On the other hand, as is well known, there are often read requests for discontinuous plural blocks. In that case, if the first request block is not prefetched in the cache, the prefetch block is not used, but the read request is not used. In, no consideration is given to blocks in the cache.

【0010】又、二重化した記憶装置の、各記憶装置が
先読みキャッシュ機構を持つ場合に、それらのキャッシ
ュ機構に記憶されているブロックを考慮して、アクセス
することは行われていてない。
Further, when each storage device of the duplicated storage device has a prefetch cache mechanism, access is not performed in consideration of the blocks stored in those cache mechanisms.

【0011】本発明は、記憶装置の先読みキャッシュ機
構に先読みされているブロックを考慮してアクセス効率
を改善するデータ読み込み処理装置を目的とする。
It is an object of the present invention to provide a data read processing device which improves the access efficiency by taking into consideration the block that is prefetched in the prefetch cache mechanism of the storage device.

【0012】[0012]

【課題を解決するための手段】図1は、本発明の構成を
示すブロック図である。図はデータ読み込み処理装置の
構成であって、記憶媒体上に情報を記憶し、ヘッドを移
動して記憶位置を選択し、記憶内容を読み出す機構を有
する記憶装置であって、キャッシュ機構を有し、読み込
み要求によって指定されるブロックが該キャッシュに保
持されている場合には、該キャッシュから読み出し、該
キャッシュに保持されていない場合には、該記憶媒体か
ら読み出して、読み出した該当ブロックを要求元に転送
し、該記憶媒体上で最後に読み出した該ブロックに続く
記憶位置の所定個数のブロックを先読みブロックとして
読み出して、該キャッシュに保持するようにした記憶装
置から、ブロックの読み込みを行う装置であって、第1
の発明においてキャッシュデータ認識部30と読み込み処
理部31とを有する。
FIG. 1 is a block diagram showing the configuration of the present invention. The figure shows the configuration of a data read processing device, which is a storage device having a mechanism for storing information on a storage medium, moving a head to select a storage position, and reading the stored contents, and having a cache mechanism. , If the block specified by the read request is held in the cache, read it from the cache; if not, read it from the storage medium and request the read block Is a device for reading a block from a storage device that is configured to read a predetermined number of blocks at a storage position subsequent to the block last read on the storage medium as a prefetch block and retain the block in the cache. Yes, first
In the invention, the cache data recognition unit 30 and the read processing unit 31 are included.

【0013】キャッシュデータ認識部30は、該記憶装置
に対して読み込み要求を行うごとに、最後に読み込んだ
ブロックから定まる該先読みブロックを示す先読みブロ
ック情報32を記憶する。
Each time the cache data recognizing unit 30 makes a read request to the storage device, the cache data recognizing unit 30 stores the read-ahead block information 32 indicating the read-ahead block determined from the last read block.

【0014】読み込み処理部31は、該記憶装置に対して
複数ブロックの読み込み要求を行う場合に、該複数ブロ
ックのうち、先読みブロック情報32に含まれる該ブロッ
クの読み込み要求を優先して行い、次いで該先読みブロ
ック情報に含まれない該ブロックの読み込み要求を行
う。
When a read request for a plurality of blocks is made to the storage device, the read processing unit 31 gives priority to a read request for the block contained in the prefetch block information 32 among the plurality of blocks, and then A read request for the block not included in the prefetch block information is issued.

【0015】第2の発明において、キャッシュデータ認
識部30は、前記先読みブロック情報で示される前記先読
みブロックに続くブロックの記憶位置をヘッド位置33と
して保持する。
In the second aspect of the invention, the cache data recognizing section 30 holds the storage position of the block following the prefetch block indicated by the prefetch block information as the head position 33.

【0016】読み込み処理部31は、前記先読みブロック
情報32に含まれないブロックの読み込み要求を行う場合
には、ヘッド位置33に最も近い記憶位置のブロックから
順に読み込み要求を行う。
When a read request is made for a block that is not included in the prefetch block information 32, the read processing unit 31 makes a read request in order from the block at the storage position closest to the head position 33.

【0017】第3の発明において、前記の記憶装置2台
に同一情報を記憶して、二重化ボリュームとして運用す
るシステムの該記憶装置から、ブロックの読み込みを行
う装置であって、キャッシュデータ認識部40と、装置選
択部44と、読み込み処理部41とを有する。
In the third aspect of the present invention, the cache data recognizing unit 40 is a device for reading the block from the storage device of the system that operates as a duplicated volume by storing the same information in the two storage devices. And a device selection unit 44 and a read processing unit 41.

【0018】キャッシュデータ認識部40は、前記と同様
の先読みブロック情報42a、42bとヘッド位置43a、43
bとを、各該記憶装置ごとに保持する。装置選択部44
は、該記憶装置からブロックの読み込みを行う場合に、
該読み込みを要するブロックを含む先読みブロック情報
42に対応する該記憶装置が不使用状態であれば、当該記
憶装置を選択し、該読み込みを要するブロックを含む該
先読みブロック情報が無い場合、該読み込みを要するブ
ロックに最も近いヘッド位置43に対応する該記憶装置が
不使用状態であれば、当該記憶装置を選択する。
The cache data recognizing unit 40 has the same prefetch block information 42a, 42b and head positions 43a, 43 as described above.
and b are held for each storage device. Device selection unit 44
When reading a block from the storage device,
Read-ahead block information including the block that needs to be read
If the storage device corresponding to 42 is in an unused state, select the storage device, and if there is no pre-read block information including the block that needs to be read, then correspond to the head position 43 that is closest to the block that needs to be read. If the storage device to be used is not in use, the storage device is selected.

【0019】読み込み処理部41は、該選択された記憶装
置に対して読み込み要求を行う。
The read processing unit 41 issues a read request to the selected storage device.

【0020】[0020]

【作用】本発明のデータ読み込み処理装置により、先読
みキャッシュ機構を持つ記憶装置へデータの読み込み要
求をする要求元では、キャッシュに先読みされている予
定のブロックを識別するための先読みブロック情報とし
て、例えば各読み込み要求終了時に、例えば最後のブロ
ックのブロック番号を記憶している。
According to the data read processing device of the present invention, at the request source which makes a data read request to the storage device having the read-ahead cache mechanism, for example, the read-ahead block information for identifying the block which is expected to be read ahead in the cache is used, for example. At the end of each read request, for example, the block number of the last block is stored.

【0021】その記憶装置への読み込み要求に際して
は、要求ブロックの中に、先読みブロック情報として保
持するブロック番号の後に続く、例えば8ブロックを先
読みブロックとして、先読みブロックに含まれるブロッ
クがあるか識別し、該当するものがあれば、そのブロッ
クの読み込み要求を先に出す。
At the time of a read request to the storage device, it is discriminated whether or not there is a block included in the prefetch block in the request block, for example, 8 blocks following the block number held as prefetch block information, for example. , If there is a corresponding one, issue a read request for that block first.

【0022】次に、その他のブロックの読み込み要求を
出すとき、先読みブロックの直後をヘッド位置として、
ヘッド位置に近いブロックから順に読み込み要求をする
ようにスケジュールする。
Next, when a read request for another block is issued, the head position is immediately after the prefetch block,
Schedule the read requests in order from the block closest to the head position.

【0023】又、二重化記憶装置の場合にも、同様に何
れかの記憶装置のキャッシュにあるブロックの読み込み
要求があれば、その記憶装置を使用してアクセスする。
以上のように、先読みキャッシュ機構を持つ記憶装置に
ついて、自身が出した読み込み要求に基づいて記憶装置
の状態を識別する情報を作成して記憶し、その情報によ
り記憶装置の状態を有効に利用して、データ読み込みの
アクセス時間を短縮することができる。
Also in the case of the dual storage device, if there is a request to read a block in the cache of any one of the storage devices, the storage device is used to access.
As described above, for a storage device having a read-ahead cache mechanism, information for identifying the state of the storage device is created and stored based on the read request issued by itself, and the state of the storage device is effectively used by the information. Thus, the access time for reading data can be shortened.

【0024】[0024]

【実施例】図3は第1及び第2の発明のデータ読み込み
処理装置の処理の流れの一例を示す図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 3 is a diagram showing an example of the processing flow of the data read processing device of the first and second inventions.

【0025】図1(a)の読み込み処理部31はデータ要求
元からブロックの読み込み要求を受け取ると、図3の処
理ステップ10で先読みブロック情報32を参照して、要求
のブロックに先読みブロックに含まれるものがあるか識
別する。
When the read processing unit 31 of FIG. 1A receives a block read request from the data request source, it refers to the prefetch block information 32 in processing step 10 of FIG. 3 and includes the prefetch block in the request block. Identify if there are any

【0026】先読みブロック情報32は、キャッシュデー
タ認識部30により、後述のように例えば最後に読み込み
を行ったブロックの番号Lが保持されているので、記憶
装置の先読みキャッシュ機構のキャッシュの容量が例え
ば8ブロックであれば、 L<要求ブロックの番号≦L+8 を満足する要求ブロックを探す。
As the prefetch block information 32, the cache data recognizing unit 30 holds, for example, the number L of the last read block as described later, so that the cache capacity of the prefetch cache mechanism of the storage device is, for example, If there are 8 blocks, a request block satisfying L <request block number ≦ L + 8 is searched.

【0027】その結果、上式を満たすブロックがあった
場合には、処理ステップ11でそれらのブロック番号を例
えば昇順に並べ、それらのブロックの読み込み要求を記
憶装置に発行する。
As a result, if there are blocks satisfying the above equation, those block numbers are arranged in ascending order in processing step 11, and a read request for those blocks is issued to the storage device.

【0028】次に処理ステップ12で読み込み要求のブロ
ックに残りがあるか識別し、のこりが無ければ処理ステ
ップ15に進むが、残りがあれば処理ステップ13でヘッド
位置33を参照して、残りブロックの番号をヘッド位置33
の内容に近い順に並べ、処理ステップ14でそれらのブロ
ックの読み込み要求を記憶装置に発行する。
Next, in processing step 12, it is discriminated whether or not there is a remaining block in the read request, and if there is no residue, the process proceeds to processing step 15. If there is any remaining residue, the head position 33 is referred to in processing step 13 and the remaining block Number of head position 33
Are arranged in the order close to the contents of, and a read request for those blocks is issued to the storage device in processing step 14.

【0029】先の処理ステップ10で、先読みブロック情
報に含まれる要求ブロックが無いと識別した場合には、
直ちに処理ステップ13の処理に入る。以上で記憶装置に
対する読み込み要求の発行を終わると、キャッシュデー
タ認識部30が処理ステップ15で、最後に読み込み要求を
したブロックの番号を先読みブロック情報32、それより
9ブロック先のブロック番号をヘッド位置33として記憶
する。
If it is identified in the previous processing step 10 that there is no request block included in the prefetch block information,
Immediately, the process of process step 13 is started. When the issuance of the read request to the storage device is completed as described above, the cache data recognizing unit 30 determines the block number of the last read request in the prefetch block information 32 and the block number 9 blocks ahead of the head position in the processing step 15. Remember as 33.

【0030】以上の処理により、例えば前記図2(a)の
状態の記憶装置について、例えば第50、第20、第10ブロ
ックの読み込み要求をこの順にブロックを指定して読み
込み処理部31が受け取ったとする。
By the above processing, for example, with respect to the storage device in the state of FIG. 2A, the read processing unit 31 receives read requests for the 50th, 20th, and 10th blocks by designating the blocks in this order. To do.

【0031】このとき前の読み込み要求の実行により、
先読みブロック情報32にはブロック番号「12」が、ヘッ
ド位置33にはブロック番号「21」が、キャッシュデータ
認識部30により記憶されている筈である。
At this time, by executing the previous read request,
The cache data recognition unit 30 should store the block number “12” in the prefetch block information 32 and the block number “21” in the head position 33.

【0032】そこで、読み込み処理部31は、要求ブロッ
クのうち第20ブロックが先読みブロックに含まれること
を識別して、先ず第20ブロックの読み込み要求を記憶装
置に発行し、次に残りの第50及び第10ブロックについ
て、ヘッド位置「21」に近い第10ブロックを先にし、次
に第50ブロックを読むように、記憶装置に読み込み要求
を発行する。
Therefore, the read processing unit 31 identifies that the 20th block of the request blocks is included in the prefetch block, first issues a read request for the 20th block to the storage device, and then the remaining 50th block. For the 10th block and the 10th block, a read request is issued to the storage device so that the 10th block close to the head position "21" is read first and then the 50th block is read.

【0033】図4は第3の発明の処理の流れの一例を示
す図であり、図1(b)の読み込み処理部41はデータ要求
元からブロックの読み込み要求を受け取ると装置選択部
44に通知し、図4の処理ステップ20で、装置選択部44が
先読みブロック情報42a及び42bによる先読みブロック
に要求ブロックを含むものがあるか識別する。
FIG. 4 is a diagram showing an example of the flow of processing of the third invention. When the read processing unit 41 of FIG. 1B receives a block read request from the data request source, the device selection unit
44 is notified, and in the processing step 20 of FIG. 4, the device selection unit 44 identifies whether or not the prefetch block according to the prefetch block information 42a and 42b includes the request block.

【0034】何れかに要求ブロックが含まれる場合に
は、処理ステップ21で、その情報に対応する記憶装置が
他の要求を実行のために使用中か識別し、使用中で無け
ればその記憶装置を選択する。
If any of the request blocks is included, then in process step 21 it is determined whether the storage device corresponding to the information is in use to execute another request, and if not, the storage device is in use. Select.

【0035】処理ステップ20で要求ブロックを含む先読
みブロック情報が何れにも無い場合には、処理ステップ
22でヘッド位置43a及び43bのうち、要求ブロックの何
れかに最も近いブロック番号を持つ方を選ぶ。
If there is no prefetch block information including the request block in processing step 20, processing step
At 22, one of the head positions 43a and 43b having the block number closest to any of the requested blocks is selected.

【0036】処理ステップ23で、その選んだヘッド位置
43a又は43bに対応する記憶装置が使用中か識別し、使
用中で無ければその記憶装置を選択する。処理ステップ
21、処理ステップ23で装置が使用中なら、処理ステップ
24において、相手側の記憶装置が使用中で無ければ相手
側記憶装置を選択し、相手側も使用中であれば、使用が
終わるのを待ち合わせて早く使用中状態が終わった側の
記憶装置を選択する。
In processing step 23, the selected head position
It is identified whether the storage device corresponding to 43a or 43b is in use, and if not, that storage device is selected. Processing step
21, processing step 23, if the device is in use, processing step
In 24, if the storage device on the other side is not in use, select the storage device on the other side.If the storage device on the other side is also in use, wait for the end of use and select the storage device on the side that is in the in-use state early. select.

【0037】装置選択部44が以上何れかの判断で記憶装
置を選択すると、それを読み込み処理部41に通知するの
で、読み込み処理部41は処理ステップ25でその記憶装置
に読み込み要求を発行する。なお、その場合に、前記図
3で説明したと同様にして、要求ブロックの読み込み順
を調整する。
When the device selection unit 44 selects a storage device by any of the above judgments, it notifies the read processing unit 41, and the read processing unit 41 issues a read request to the storage device in processing step 25. In that case, the reading order of the requested blocks is adjusted in the same manner as described with reference to FIG.

【0038】以上で記憶装置に対する読み込み要求の発
行を終わると、キャッシュデータ認識部40が処理ステッ
プ26で、選択された記憶装置に対応して、最後に読み込
み要求をしたブロックの番号を先読みブロック情報42a
又は42bへ、それより9ブロック先のブロック番号をヘ
ッド位置43a又は43bへ記憶する。
When the issuance of the read request to the storage device is completed as described above, the cache data recognizing unit 40 determines the block number of the last read request corresponding to the selected storage device in the processing step 26 as prefetch block information. 42a
Or 42b, and the block number 9 blocks ahead is stored in the head position 43a or 43b.

【0039】例えば図2(b) に示すように二重化した記
憶装置3a及び3bがあり、各記憶装置は記憶媒体1a及び1
b、先読みキャッシュ機構のキャッシュ2a及び2bからな
るものとする。
For example, as shown in FIG. 2B, there are duplicated storage devices 3a and 3b, and each storage device has storage media 1a and 1b.
b, the cache 2a and 2b of the read-ahead cache mechanism.

【0040】ここで各記憶装置の状態を、図示のように
記憶装置3aでは、キャッシュ2aに第3〜第10ブロックが
先読みされ、従って記憶媒体1a上のヘッドは第11ブロッ
クにあり、記憶装置3bでは、キャッシュ2bに第11〜第18
ブロックが先読みされ、従ってヘッドは第19ブロックに
あるとする。
Here, as shown in the figure, in the storage device 3a, the third to tenth blocks are pre-read in the cache 2a, so that the head on the storage medium 1a is in the eleventh block. In 3b, the cache 2b has 11th to 18th
Suppose the block is read ahead, so the head is in block 19.

【0041】このとき、記憶装置3a及び3bに対応して設
けられる情報として、先読みブロック情報42aには
「2」、ヘッド位置43aには「11」、先読みブロック情
報42bには「10」、ヘッド位置43bには「19」が記憶さ
れている。
At this time, the information provided corresponding to the storage devices 3a and 3b is "2" for the prefetch block information 42a, "11" for the head position 43a, "10" for the prefetch block information 42b, and the head. "19" is stored in the position 43b.

【0042】ここで、第11ブロックの読み込み要求があ
ったとすると、前記の処理により、記憶装置3aはヘッド
が第11ブロック上にあるが、記憶装置3bは第11ブロック
をキャッシュに先読みしているので、使用中で無い限り
記憶装置3bに読み込み要求が出される。
If there is a read request for the 11th block, the head of the storage device 3a is located on the 11th block by the above processing, but the storage device 3b prefetches the 11th block into the cache. Therefore, a read request is issued to the storage device 3b unless it is in use.

【0043】[0043]

【発明の効果】以上の説明から明らかなように本発明に
よれば、先読みキャッシュ機構を持つ記憶装置につい
て、自身が出した読み込み要求に基づいて記憶装置の状
態を識別する情報を作成して記憶し、その情報により記
憶装置の状態を有効に利用して、データ読み込みのアク
セス時間を短縮することができるという著しい工業的効
果がある。
As is apparent from the above description, according to the present invention, for a storage device having a read-ahead cache mechanism, information for identifying the state of the storage device is created and stored based on a read request issued by itself. However, there is a remarkable industrial effect that the access time for data reading can be shortened by effectively utilizing the state of the storage device by the information.

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

【図1】 本発明の構成を示すブロック図FIG. 1 is a block diagram showing the configuration of the present invention.

【図2】 先読みキャッシュ機構を説明する図FIG. 2 is a diagram illustrating a read-ahead cache mechanism.

【図3】 本発明の処理の流れ図(その1)FIG. 3 is a flowchart of the process of the present invention (No. 1)

【図4】 本発明の処理の流れ図(その2)FIG. 4 is a flowchart of the process of the present invention (No. 2)

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

1、1a、1b ディスク記憶媒体 2、2a、2b キャッシュ 3、3a、3b 記憶装置 10〜15、20〜26 処理ステップ 30、40 キャッシュデータ認識部 31、41 読み込み処理部 32、42a、42b 先読みブロック情報 33、43a、43b ヘッド位置 44 装置選択部 1, 1a, 1b Disk storage medium 2, 2a, 2b Cache 3, 3a, 3b Storage device 10-15, 20-26 Processing step 30, 40 Cache data recognition unit 31, 41 Read processing unit 32, 42a, 42b Look-ahead block Information 33, 43a, 43b Head position 44 Device selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記憶媒体上に情報を記憶し、ヘッドを移
動して記憶位置を選択し、記憶内容を読み出す機構を有
する記憶装置であって、キャッシュ機構を有し、読み込
み要求によって指定されるブロックが該キャッシュに保
持されている場合には、該キャッシュから読み出し、該
キャッシュに保持されていない場合には、該記憶媒体か
ら読み出して、読み出した該当ブロックを要求元に転送
し、該記憶媒体上で最後に読み出した該ブロックに続く
記憶位置の所定個数のブロックを先読みブロックとして
読み出して、該キャッシュに保持するようにした記憶装
置から、ブロックの読み込みを行う装置であって、 キャッシュデータ認識部(30)と読み込み処理部(31)とを
有し、 該キャッシュデータ認識部(30)は、該記憶装置に対して
読み込み要求を行うごとに、最後に読み込んだブロック
から定まる該先読みブロックを示す先読みブロック情報
(32)を記憶し、 該読み込み処理部(31)は、該記憶装置に対して複数ブロ
ックの読み込み要求を行う場合に、該複数ブロックのう
ち、該先読みブロック情報(32)に含まれる該ブロックの
読み込み要求を優先して行い、次いで該先読みブロック
情報に含まれない該ブロックの読み込み要求を行うよう
に構成されていることを特徴とするデータ読み込み処理
装置。
1. A storage device having a mechanism for storing information on a storage medium, moving a head to select a storage position, and reading the stored contents, which has a cache mechanism and is designated by a read request. When the block is held in the cache, the block is read from the cache. When the block is not held in the cache, the block is read from the storage medium and the read block is transferred to the request source. A cache data recognizing unit for reading a block from a storage device configured to read a predetermined number of blocks at a storage position subsequent to the last read block as a prefetch block and hold the block in the cache. (30) and a read processing unit (31), and the cache data recognition unit (30) makes a read request to the storage device. Read-ahead block information that indicates door in, the tip reading block, which is determined from the last read block
(32) is stored, and when the read processing unit (31) issues a read request for a plurality of blocks to the storage device, the block included in the prefetch block information (32) among the plurality of blocks The data read processing device is configured so that the read request for the block that is not included in the prefetch block information is issued first, and then the read request for the block that is not included in the prefetch block information.
【請求項2】 前記キャッシュデータ認識部(30)は、前
記先読みブロック情報(32)で示される前記先読みブロッ
クに続くブロックの記憶位置をヘッド位置として保持
し、 前記読み込み処理部(31)は、前記先読みブロック情報(3
2)に含まれないブロックの読み込み要求を行う場合に
は、該ヘッド位置(33)に最も近い記憶位置のブロックか
ら順に読み込み要求を行うように構成されていることを
特徴とする請求項1記載のデータ読み込み処理装置。
2. The cache data recognition unit (30) holds a storage position of a block following the prefetch block indicated by the prefetch block information (32) as a head position, and the read processing unit (31), The prefetch block information (3
2. When a read request is made for a block not included in 2), the read request is made in order from the block at the storage position closest to the head position (33). Data reading processor.
【請求項3】 請求項1記載の記憶装置2台に同一情報
を記憶して、二重化ボリュームとして運用するシステム
の該記憶装置から、ブロックの読み込みを行う装置であ
って、 キャッシュデータ認識部(40)と、装置選択部(44)と、読
み込み処理部(41)とを有し、 該キャッシュデータ認識部(40)は、請求項1記載の先読
みブロック情報(42a、42b)と請求項2記載のヘッド位置
(43a、43b)とを、各該記憶装置ごとに保持し、 該装置選択部(44)は、該記憶装置からブロックの読み込
みを行う場合に、該読み込みを要するブロックを含む該
先読みブロック情報(42a、42b)に対応する該記憶装置が
不使用状態であれば、当該記憶装置を選択し、 該読み込みを要するブロックを含む該先読みブロック情
報が無い場合、該読み込みを要するブロックに最も近い
該ヘッド位置(43a、43b)に対応する該記憶装置が不使用
状態であれば、当該記憶装置を選択し、 該読み込み処理部(41)は、該選択された記憶装置に対し
て読み込み要求を行うように構成されていることを特徴
とするデータ読み込み処理装置。
3. A cache data recognizing unit (40) for reading blocks from the storage device of a system that stores the same information in two storage devices according to claim 1 and operates as a duplicated volume. ), A device selection unit (44), and a read processing unit (41), and the cache data recognition unit (40) has prefetch block information (42a, 42b) and claim 2 according to claim 1. Head position
(43a, 43b) for each storage device, and when the device selection unit (44) reads a block from the storage device, the read-ahead block information (block including the block that needs to be read) If the storage device corresponding to 42a, 42b) is in an unused state, the storage device is selected, and if there is no prefetch block information including the block that needs to be read, the head that is closest to the block that needs to be read. If the storage device corresponding to the position (43a, 43b) is not in use, the storage device is selected, and the read processing unit (41) makes a read request to the selected storage device. A data read processing device characterized by being configured as follows.
JP6041670A 1994-03-14 1994-03-14 Data reading processor Pending JPH07248971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6041670A JPH07248971A (en) 1994-03-14 1994-03-14 Data reading processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6041670A JPH07248971A (en) 1994-03-14 1994-03-14 Data reading processor

Publications (1)

Publication Number Publication Date
JPH07248971A true JPH07248971A (en) 1995-09-26

Family

ID=12614843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6041670A Pending JPH07248971A (en) 1994-03-14 1994-03-14 Data reading processor

Country Status (1)

Country Link
JP (1) JPH07248971A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6745212B2 (en) 2001-06-27 2004-06-01 International Business Machines Corporation Preferential caching of uncopied logical volumes in an IBM peer-to-peer virtual tape server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6745212B2 (en) 2001-06-27 2004-06-01 International Business Machines Corporation Preferential caching of uncopied logical volumes in an IBM peer-to-peer virtual tape server

Similar Documents

Publication Publication Date Title
JP3183993B2 (en) Disk control system
US5890208A (en) Command executing method for CD-ROM disk drive
JP2637290B2 (en) System and method for dynamically controlling cache management
US5577224A (en) Method and system for caching data
JP2007011523A (en) Data look-ahead method and computer system
EP0862108A2 (en) File management apparatus, file management method, and recording medium containing file management program
JPH1063578A (en) Information recording and reproducing device
JPH0687224B2 (en) Method and system for optimizing data caching in a disk-based computer system
US6901500B1 (en) Method and apparatus for prefetching information and storing the information in a stream buffer
US5696931A (en) Disc drive controller with apparatus and method for automatic transfer of cache data
JPH0675897A (en) Method and device for managing buffer memory for allowing division
JPH04259048A (en) Pre-read data control system using statistic information
JPH07248971A (en) Data reading processor
JPH076088A (en) Information storage device
JPS6258351A (en) Optical disk cache system
JP2001117818A (en) Memory managing device, managing method, and recording medium recorded with managing program
JP2502844B2 (en) Electronic file device
JP2008146516A (en) Data read-ahead processing method for recorder
JP2567903B2 (en) Data transfer method
US6032206A (en) Method of reducing access when passing data from external memory through buffer to data processor by allocating buffer portion for receiving external memory&#39;s identification data
JPH0776941B2 (en) Data prefetch control method
JPS6331808B2 (en)
JPH064225A (en) Disk controller prereading stand-by sector
JP2636564B2 (en) Move-in control method for cache memory
JPH05342152A (en) Buffer control system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20021203