JP2008146516A - Data read-ahead processing method for recorder - Google Patents

Data read-ahead processing method for recorder Download PDF

Info

Publication number
JP2008146516A
JP2008146516A JP2006335247A JP2006335247A JP2008146516A JP 2008146516 A JP2008146516 A JP 2008146516A JP 2006335247 A JP2006335247 A JP 2006335247A JP 2006335247 A JP2006335247 A JP 2006335247A JP 2008146516 A JP2008146516 A JP 2008146516A
Authority
JP
Japan
Prior art keywords
data
read
cache memory
prefetch
recording medium
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
JP2006335247A
Other languages
Japanese (ja)
Inventor
Jun Yoshihara
潤 吉原
Shinki Enomoto
真貴 榎本
Minoru Otawara
実 大田原
Kota Yamaguchi
浩太 山口
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.)
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi 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 Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP2006335247A priority Critical patent/JP2008146516A/en
Publication of JP2008146516A publication Critical patent/JP2008146516A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To quicken an access to a positionally discontinuous data arranged on a recorder. <P>SOLUTION: A retrieval system comprises a controller for controlling retrieval processing, and the recorder mounted with a read-ahead command for storing an assignment data in a cache memory built in the recorder. The controller indicates data read-ahead required in the next to the recorder, using the read-ahead command, during processing of the data, the recorder reads out the assigned data from a recording medium, to be stored into the cache memory, and the data is thereby read quickly from the recorder built in the recorder, without accessing the recording medium, when the controller reads the next data from the recorder. A hit rate of the cache memory is also enhanced to quicken the reading, by adding a priority and a protection flag to an area indicated and read by the read-ahead command to control efficiently the cache memory. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、記録装置上にデータを格納し、それを読み出す処理プログラムにおいて、データを事前に記録装置内部キャッシュメモリ上に読み込ませることにより、記録装置からのデータ読み出し時間を短縮可能にした処理プログラムと記録装置に関するものである。   The present invention relates to a processing program for storing data on a recording device and reading the data, and by causing the data to be read in advance on the internal cache memory of the recording device so that the time for reading data from the recording device can be shortened. And the recording apparatus.

コンピュータシステムでは、一般にコンピュータ内部でのデータ処理に要する時間に比べ、記録装置とコンピュータ内部のメモリとの間のデータの読み出しおよび書き込みに要する時間が非常に大きい。関連性のあるデータを連続的に読み出すコンピュータシステムでは、このデータの読み出し処理を効率化することでシステムの処理性能を向上させることができる。   In a computer system, generally, a time required for reading and writing data between a recording device and a memory inside a computer is much longer than a time required for data processing inside the computer. In a computer system that continuously reads related data, the processing performance of the system can be improved by improving the efficiency of the data reading process.

そのための方法として、記録装置内部のキャッシュメモリを効率的に利用し、読み出し要求への応答時間を短縮する手法と、コンピュータシステムにおいて、読み出し済みのデータに対する表示や検索などの処理を行っている間の空き時間に、後に必要となるデータを記録装置からあらかじめ読み出す手法がある。   As a method for this, a method for efficiently using the cache memory in the recording device and shortening the response time to the read request, and a process of displaying or searching the read data in the computer system are performed. There is a method of reading data required later from the recording device in advance during the idle time.

図1は、このコンピュータシステムの概略を示すブロック構成図であり、利用者の検索指示を受付け、データの検索、加工および出力を制御する制御装置10と、データを格納する記録装置11から構成される。制御装置10は、データの検索および加工などのデータ操作と、記録装置へのデータ入出力処理の制御を行うデータ処理部101、利用者からの検索指示を受け取る入力部102、データ処理部101で生成された情報を利用者に向けて出力する出力部103、記録装置11から読み出したデータを一時的に蓄えるメモリ104から構成され、記録装置11は、実際にデータを格納する記録媒体111、この記録媒体111から読み出したデータを保持するキャッシュメモリ112、記録媒体111からの読み出しとキャッシュメモリ112へのデータ格納を制御する入出力制御部113から構成される。   FIG. 1 is a block diagram showing the outline of this computer system, which is composed of a control device 10 that accepts a user's search instruction and controls the search, processing, and output of data, and a recording device 11 that stores data. The The control device 10 includes a data processing unit 101 that controls data operations such as data search and processing, and data input / output processing to the recording device, an input unit 102 that receives a search instruction from a user, and a data processing unit 101. An output unit 103 that outputs the generated information to the user, and a memory 104 that temporarily stores data read from the recording device 11, the recording device 11 includes a recording medium 111 that actually stores data, A cache memory 112 that holds data read from the recording medium 111 and an input / output control unit 113 that controls reading from the recording medium 111 and storage of data in the cache memory 112 are configured.

図2に一般的なキャッシュ機能を備えた記録装置11でのデータ読み出し処理を示す。入出力制御部113は、指定データがキャッシュメモリ112上に格納されているかを確認し(ステップ201)、格納されていなければ記録媒体111から読み出し(ステップ202)、キャッシュメモリ112上に保持する(ステップ203)。このデータを要求元の制御システムに転送し(ステップ204)、読み出し処理は完了する(ステップ205)。ここで入出力制御部113は、記録媒体111上で最後にアクセスしたデータに位置的に連続したものが近い将来にアクセスされる可能性が高いことを利用して、要求されたデータだけでなくそれに位置的に連続するデータもあらかじめ記録媒体111から読み出し(ステップ202)、キャッシュメモリ112上に保持しておく(ステップ203)。このため、後続の読み出し要求では、取得対象データがキャッシュメモリ112上に保持されている場合は記録媒体111へアクセスせずに、読み出し要求に高速に応答することができる(ステップ201、204、および205)。例えば、文献管理システムなどでは、一連の文献データを記録媒体111上に物理的に連続格納することによって、記録装置11の先読み効果を利用して検索性能を向上している。   FIG. 2 shows a data reading process in the recording apparatus 11 having a general cache function. The input / output control unit 113 confirms whether the designated data is stored in the cache memory 112 (step 201), and if not, reads it from the recording medium 111 (step 202) and holds it on the cache memory 112 (step 201). Step 203). This data is transferred to the requesting control system (step 204), and the reading process is completed (step 205). Here, the input / output control unit 113 uses not only the requested data but also the fact that the data that is positionally continuous with the last accessed data on the recording medium 111 is likely to be accessed in the near future. Data that is consecutive in position is also read from the recording medium 111 in advance (step 202) and stored in the cache memory 112 (step 203). Therefore, in the subsequent read request, when the acquisition target data is held in the cache memory 112, it is possible to respond to the read request at high speed without accessing the recording medium 111 (Steps 201, 204, and 205). For example, in a document management system or the like, a series of document data is physically continuously stored on the recording medium 111 to improve search performance by using the prefetching effect of the recording device 11.

カーナビゲーションシステムでは、目的地を設定したルート走行において自車の移動に従って移動先の地図データを読み出し、遅延なく地図画像を表示する必要がある。しかし、2次元的な広がりを持つ地図データを、あらかじめ予測できないルートに従って連続的に記録媒体111上に配置することはできないため、記録装置11の先読み効果を利用することはできない。そこで、制御装置10では、データ処理部101および出力部103が読み出し済みデータの処理および表示を行っている間の空き時間を利用して、以後必要とされる可能性のあるデータをあらかじめ記録装置11から読み出し、メモリ104に保持しておく。この処理は記録媒体111からの読み出し(ステップ202)を伴うため処理時間がかかるが、データ処理部101が対象データを必要とした時点での記録装置11へのアクセスが不要となり、速やかにデータの処理および表示を行うことができる。   In a car navigation system, it is necessary to read out map data of a destination in accordance with the movement of the host vehicle in a route traveling with a destination set and display a map image without delay. However, since the map data having a two-dimensional extent cannot be continuously arranged on the recording medium 111 according to a route that cannot be predicted in advance, the prefetch effect of the recording device 11 cannot be used. Therefore, the control device 10 uses the idle time while the data processing unit 101 and the output unit 103 process and display the read data, and records in advance a data that may be required thereafter. 11 and stored in the memory 104. Since this process involves reading from the recording medium 111 (step 202), it takes a long time. However, when the data processing unit 101 needs the target data, access to the recording apparatus 11 becomes unnecessary, and the data can be quickly stored. Processing and display can be performed.

なお、本発明に関連する公知技術文献としては下記の特許文献1がある。   In addition, there exists the following patent document 1 as a well-known technical document relevant to this invention.

特開2003−263348号公報JP 2003-263348 A

カーナビゲーションシステムの例のように、格納位置の連続性はないが関連性のある複数のデータを記録装置から読み出す処理を行うシステムにおいては、記録装置が持つ従来の先読みキャッシュの機能については効果が期待できない。そこで、記録装置上のデータをあらかじめ制御装置側のメモリ上に読み出す方式を使用することになるが、この方式には以下の問題がある。
(1)将来必要になるデータを事前に記録装置から読み出す処理では、対象データが記録装置の持つキャッシュメモリ上に存在せずに記録媒体からの読み出しを伴う可能性が高く、その完了を待つ必要があるため、制御装置の処理に十分な空き時間が必要である。
(2)記録装置から先読みしたデータを、使用されるまで制御装置のメモリ領域上に保持するため、その間はメモリ領域の一部が占有される。
In a system that reads a plurality of related data from a recording device that does not have continuity of storage positions, as in the case of a car navigation system, the conventional prefetch cache function of the recording device is effective. I can't expect it. Therefore, a method of reading data on the recording device in advance to the memory on the control device side is used, but this method has the following problems.
(1) In the process of reading data that will be required in the future from the recording device in advance, there is a high possibility that the target data does not exist in the cache memory of the recording device and is read from the recording medium, and it is necessary to wait for its completion Therefore, sufficient free time is required for processing of the control device.
(2) Since the prefetched data from the recording device is held in the memory area of the control device until it is used, a part of the memory area is occupied during that time.

本発明の目的は、上記問題点を解決した上で、格納位置に連続性のないデータの先読みを効率的に行うことができるデータの先読み処理方式を提供することにある。   An object of the present invention is to provide a data prefetching processing method that can efficiently perform prefetching of data having no continuity at storage positions after solving the above-mentioned problems.

上記目的を達成するために、本発明のデータの先読み処理方式は、利用者の要求データの読み出し処理を行う処理プログラムと、内部キャッシュ機構を備えた記録装置であって、処理プログラムからの先読み要求を受け付ける手段と、先読み要求データを記録媒体から記録装置内部のキャッシュメモリに読み込む手段とを備え、前記処理プログラムは、要求データの読み出し処理を行う処理プログラムであって、利用者の指示する先読みが必要な複数のデータの先読み要求を受け付ける手段と、受け付けた要求を元に記録装置へ先読み指示を行う手段と、記録装置が先読み処理を行うことと並行して読み出し済みデータの処理を行う手段を備え、前記記録装置は、処理プログラムからの先読み指示に従い、要求データの先読みを行う記録装置であって、先読み指示を受け付けた時点で記録媒体からの読み出し処理を開始すると同時に要求元への要求受け付け完了報告を行う手段と、要求のあったデータを要求元へは返却せず、記録媒体から記録装置内部キャッシュメモリへの読み出しのみを行う手段と、処理プログラムからの読み出し指示によりキャッシュメモリ上に読み出し済みのデータを要求元へ転送する手段を設けたものである。   In order to achieve the above object, the data prefetch processing method of the present invention is a processing program that performs a read process of user request data, and a recording device including an internal cache mechanism, and a prefetch request from the processing program. And a means for reading prefetch request data from a recording medium into a cache memory inside the recording apparatus, and the processing program is a processing program for performing a read process of the request data. Means for receiving a prefetch request for a plurality of necessary data, means for instructing a prefetch to the recording device based on the accepted request, and means for processing the read data in parallel with the prefetch processing performed by the recording device A recording apparatus that pre-reads request data in accordance with a pre-read instruction from a processing program. When the pre-reading instruction is received, the reading process from the recording medium is started, and at the same time, a request acceptance completion report to the request source is sent, and the requested data is not returned to the request source, but from the recording medium. There are provided means for only reading to the internal cache memory of the recording apparatus and means for transferring the data already read on the cache memory to the request source in accordance with a read instruction from the processing program.

本発明のデータの先読み処理方式によれば、次のような効果がある。   According to the data prefetching processing method of the present invention, the following effects are obtained.

データがインデクス部とデータ部に分かれて管理されている、またはデータがチェイン構造で管理されているなどのように、記録媒体上の格納位置に連続性がなく、従来の記録装置の先読みキャッシュの効果が低いような配置でデータを格納するシステムにおいて、記録装置による先読み機能を利用できる。   The storage location on the recording medium is not continuous, as in the case where the data is managed separately in the index part and the data part, or the data is managed in the chain structure. In a system that stores data in an arrangement that has a low effect, the prefetch function by the recording device can be used.

記録媒体上の格納位置に連続性がない複数のデータの読み出し処理において、制御装置でのデータ処理と並列して記録装置内部で先読み処理を行うことにより、制御装置での処理時間を消費せずに先読み処理を実現し、高速なデータアクセスができる。   In the read processing of a plurality of data where the storage positions on the recording medium are not continuous, the processing time in the control device is not consumed by performing the pre-read processing in the recording device in parallel with the data processing in the control device. Pre-read processing is realized, and high-speed data access is possible.

記録媒体上の格納位置に連続性がない複数のデータの読み出し処理において、記録装置内部のキャッシュメモリに先読みデータを保持することにより、制御装置のメモリ領域を使用せずに先読み処理を実現し、高速なデータアクセスができる。   In the read processing of a plurality of data where the storage position on the recording medium has no continuity, prefetch processing is realized without using the memory area of the control device by holding the prefetch data in the cache memory inside the recording device, High-speed data access is possible.

記録装置において、利用者が指示した先読み要求に従いデータを記録媒体から読み出してキャッシュメモリに格納する際に、記録媒体からの読み出し順を最適に並べ替えることにより、利用者の指定した順で読み出しを行う方法よりも高速に記録媒体からの読み出しを完了する。   In the recording device, when data is read from the recording medium and stored in the cache memory according to the prefetch request instructed by the user, the data is read in the order specified by the user by optimally rearranging the reading order from the recording medium. Reading from the recording medium is completed faster than the method to be performed.

記録装置において、利用者が指示した先読み要求で読み出したデータについて、優先度をつけてキャッシュメモリ内に他のデータ領域より長く保持するか、実際に読み出されるまでキャッシュメモリ内に保持することにより、通常のキャッシュ管理方式よりもキャッシュヒット率を向上させることができる。   In the recording device, the data read by the prefetch request instructed by the user is given a priority and is held longer than the other data area in the cache memory, or is held in the cache memory until it is actually read, The cache hit rate can be improved as compared with the normal cache management method.

以下、本発明を適用した検索システムの一実施の形態について説明する。   Hereinafter, an embodiment of a search system to which the present invention is applied will be described.

図3は、本発明の実施の形態の一例を示すシステム構成図であり、本検索システムは、地図データを格納した記録装置31と、このデータに対する検索、表示処理を行う制御装置30から構成されるカーナビゲーションシステムである。この制御装置30はデータの検索、加工などの処理を行うデータ処理部301と、利用者からの操作やGPS(Global Positioning System)の位置情報を取得する入力部302と、地図画像を表示する出力部303と、データを一時的に保持するメモリ304から構成される。   FIG. 3 is a system configuration diagram showing an example of an embodiment of the present invention. This search system is composed of a recording device 31 that stores map data and a control device 30 that performs search and display processing for this data. This is a car navigation system. The control device 30 includes a data processing unit 301 that performs processing such as data search and processing, an input unit 302 that acquires user operation and GPS (Global Positioning System) position information, and an output that displays a map image. And a memory 304 that temporarily stores data.

記録装置31には、地図データを格納した記録媒体311と、キャッシュメモリ312と、入出力制御部313と、先読み制御部314が内蔵されている。制御装置30と記録装置31との間のインタフェースは、必要ならば記録装置インタフェース回路を使用する。入出力制御部313は、記録媒体311からのデータの読み出しを行う読み出しコマンドを含む一般的なアクセス用コマンドを受け付け、記録媒体311とキャッシュメモリ312のデータ入出力処理を制御する。先読み制御部314は、記録媒体311からデータを読み出しキャッシュメモリ312へデータを格納するための先読みコマンドを受け付け、入出力制御部313と相互作用し、記録媒体311とキャッシュメモリ312のデータ入出力処理を制御する。   The recording device 31 includes a recording medium 311 storing map data, a cache memory 312, an input / output control unit 313, and a prefetch control unit 314. The interface between the control device 30 and the recording device 31 uses a recording device interface circuit if necessary. The input / output control unit 313 receives a general access command including a read command for reading data from the recording medium 311 and controls data input / output processing between the recording medium 311 and the cache memory 312. The prefetch control unit 314 receives a prefetch command for reading data from the recording medium 311 and storing the data in the cache memory 312, interacts with the input / output control unit 313, and performs data input / output processing between the recording medium 311 and the cache memory 312. To control.

図4は、記録媒体311に格納された地図データの物理的な配置と、意味的な関連性を示す。地図データはインデクス部43とデータ部44に分かれて管理され、記録媒体311に格納されている。また、データ部44は地図データを固定サイズ単位に分割した地図区画データで構成される。現在位置41の近傍をあらわす地図区画データ421〜427は意味的には隣接した地図情報を表すが、記録媒体311上での物理的な配置には必ずしも連続性がない。   FIG. 4 shows the physical arrangement of map data stored in the recording medium 311 and the semantic relevance. The map data is managed by being divided into an index part 43 and a data part 44 and stored in the recording medium 311. The data unit 44 is composed of map section data obtained by dividing the map data into fixed size units. The map section data 421 to 427 representing the vicinity of the current position 41 semantically represent adjacent map information, but the physical arrangement on the recording medium 311 is not necessarily continuous.

本システムの制御装置30における検索処理のフローを図5に示し、先読み制御部314が先読みコマンドを受け付けた際のデータの先読み処理のフローを図6に示す。入出力制御部313が読み出しコマンドを受け付けた際のデータの読み出し処理は図2と同様である。   FIG. 5 shows a flow of search processing in the control device 30 of this system, and FIG. 6 shows a flow of data prefetch processing when the prefetch control unit 314 receives a prefetch command. Data read processing when the input / output control unit 313 receives a read command is the same as that in FIG.

まず、データ処理部301は現在位置41に対応する地図情報を検索し、該当する地図区画データ424を記録装置31から読み出し、メモリ304に格納する(ステップ501)。このデータを元に地図画像を生成し、出力部303が表示処理を行う。   First, the data processing unit 301 searches for map information corresponding to the current position 41, reads the corresponding map section data 424 from the recording device 31, and stores it in the memory 304 (step 501). A map image is generated based on this data, and the output unit 303 performs display processing.

データ処理部301は入力部302の入力情報に従い、次に読み出すべき地図画像を決定する(ステップ502)。現在位置と進行方向の経路情報から、次に必要となるデータは地図区画422および425であると予測される。ここで、地図区画425は読み出し済みの地図区画424と記録媒体311上での格納位置が連続しているため、記録装置31の先読みによりキャッシュメモリ312に格納されている可能性が高いが、地図区画422は格納位置が離れているため、その可能性は低い。   The data processing unit 301 determines a map image to be read next in accordance with the input information of the input unit 302 (step 502). From the current position and the route information of the traveling direction, the next necessary data is predicted to be map sections 422 and 425. Here, the map section 425 is stored in the cache memory 312 by the pre-reading of the recording device 31 because the stored map section 424 and the storage position on the recording medium 311 are continuous. Since the storage position of the section 422 is remote, the possibility is low.

データ処理部301は、現在位置の近傍の地図区画データ421の範囲内の情報を表示している間に、記録装置31に対して、地図区画422および425のデータを指定して先読みコマンドを発行する(ステップ503)。記録装置の先読み制御部314はコマンドを受け付けるとすぐに、要求元に受付完了の通知を行う(ステップ601)。このためデータ処理部301はコマンド発行後すぐに、メモリ304上に格納済みの現在位置近傍のデータを使用し、画像の生成および表示処理を続行できる(ステップ504)。   The data processing unit 301 issues the prefetch command by designating the data of the map sections 422 and 425 to the recording device 31 while displaying the information within the range of the map section data 421 near the current position. (Step 503). As soon as the prefetch control unit 314 of the recording apparatus accepts the command, it notifies the request source of the completion of acceptance (step 601). Therefore, immediately after issuing the command, the data processing unit 301 can use the data in the vicinity of the current position stored in the memory 304 and continue the image generation and display processing (step 504).

データ処理部301が処理を続行しているのに並行して、記録装置の先読み制御部314は先読みコマンドの処理を続行する。指定データがキャッシュメモリ312に格納されているかを確認し(ステップ602)、格納されていない場合は記録媒体311から対象データを読み出し(ステップ603)、キャッシュメモリ312に格納する(ステップ604)。この時点ではキャッシュメモリ312への読み出しのみを行い、要求元への転送は行わない。   In parallel with the data processing unit 301 continuing the processing, the prefetch control unit 314 of the recording apparatus continues the prefetch command processing. It is confirmed whether the designated data is stored in the cache memory 312 (step 602). If not, the target data is read from the recording medium 311 (step 603) and stored in the cache memory 312 (step 604). At this time, only reading to the cache memory 312 is performed, and transfer to the request source is not performed.

ここで、連続して発行された先読みコマンドについて、先読み制御部314は要求されたデータの物理的な配置にしたがってその要求を並べ替え、記録媒体311へのアクセスを最適化してから、実際の読み出し処理を行う。コマンドの発行元では、先読みコマンドを発行する際に、対象データの配置およびコマンドの発行順序を意識する必要がない。   Here, for the pre-read commands issued continuously, the pre-read control unit 314 rearranges the requests in accordance with the physical arrangement of the requested data, optimizes access to the recording medium 311, and then performs actual reading. Process. The command issuer need not be aware of the arrangement of the target data and the command issue order when issuing the prefetch command.

現在位置41が遷移しデータ処理部301が地図区画422および225のデータを必要となったとき、データ処理部301は記録装置31に対して読み出しコマンドを発行し、対象データを記録装置31から読み出し、メモリ304に格納する(ステップ505)。この時点では、あらかじめ発行しておいた先読みコマンドは処理を完了しており、記録装置のキャッシュメモリ312に対象データが格納されている。したがって、読み出しコマンドを受け付けた入出力制御部313は、記録媒体311へアクセスせずにキャッシュメモリ312から制御装置のメモリ304へのデータ転送のみを行い、コマンドは短時間で完了する。これにより、データ処理部301および出力部303は現在位置41の移動に伴う地図画像の表示を遅延なく行うことができる。   When the current position 41 changes and the data processing unit 301 needs the data of the map sections 422 and 225, the data processing unit 301 issues a read command to the recording device 31 and reads the target data from the recording device 31. And stored in the memory 304 (step 505). At this point, the pre-read command issued in advance has been processed, and the target data is stored in the cache memory 312 of the recording apparatus. Therefore, the input / output control unit 313 that has received the read command performs only data transfer from the cache memory 312 to the memory 304 of the control device without accessing the recording medium 311, and the command is completed in a short time. Thereby, the data processing unit 301 and the output unit 303 can display the map image accompanying the movement of the current position 41 without delay.

このように、記録装置31に対して指定データをキャッシュメモリ312に格納する指示をあらかじめ出しておくことにより、制御装置30におけるデータ処理と記録装置31における記録媒体311からの読み出し処理が並列化され、記録媒体311上で位置的に分散して格納されているデータへのアクセスの高速化を図ることができる。この先読み処理方式は、インデクス管理のデータ構造だけではなく、チェーン管理のデータなど、読み出すデータを線形に並べづらく単純な先読みキャッシュでは効果が小さいようなデータへのアクセスを行う様々なシステムに適応することができる。   In this way, by giving an instruction to store the designated data in the cache memory 312 to the recording device 31 in advance, the data processing in the control device 30 and the reading processing from the recording medium 311 in the recording device 31 are parallelized. Thus, it is possible to speed up access to data stored in a distributed manner on the recording medium 311. This read-ahead processing method is applicable not only to the data structure of index management but also to various systems that access data that is less effective with a simple read-ahead cache, such as chain management data, in which it is difficult to arrange read data linearly. be able to.

図7は、読み出し処理および先読み処理における、記録装置31内蔵のキャッシュメモリ312へのデータ格納の処理を表す。これは読み出し処理のステップ203、および先読み処理のステップ604に相当する処理である。   FIG. 7 shows a process of storing data in the cache memory 312 built in the recording device 31 in the read process and the prefetch process. This is a process corresponding to step 203 of the read process and step 604 of the prefetch process.

まずキャッシュメモリ312に空き領域があるかを判定し(ステップ701)、空き領域があればそれをデータ格納領域とする(ステップ703)。空きがなければ格納済みデータの中でもっとも優先度の低いデータを破棄対象として選択し、その領域を新たなデータの格納領域とする(ステップ702)。このように選択したキャッシュメモリ312上の格納領域にデータを格納する(ステップ704)。   First, it is determined whether there is a free area in the cache memory 312 (step 701). If there is a free area, it is set as a data storage area (step 703). If there is no free space, the data with the lowest priority among the stored data is selected as the discard target, and the area is set as a new data storage area (step 702). Data is stored in the storage area on the cache memory 312 selected in this way (step 704).

一般的な記録装置では、データ領域の読み出し頻度の高いものや、格納時期の新しいものなどを優先するというアルゴリズムに基づき格納データに優先度を設定し、キャッシュ満杯時には優先度の低いデータを破棄する処理を行う。本発明では、特に先読みコマンドを用いて読み出したデータ領域に対して、他のキャッシュ上のデータよりも高い優先度を設定する(ステップ705および706)ことで、破棄対象データの選択処理(ステップ702)において、先読みコマンドで読み出されたデータを他のデータよりも優先的に残すようにする。これにより、先読みコマンドで指定したデータが、通常の読み出し要求を受け付けた時点でキャッシュメモリ312に格納されている確率を上げることができる。   In general recording devices, priorities are set for stored data based on an algorithm that gives priority to data areas that are read frequently or data that has a new storage time, and discards low priority data when the cache is full. Process. In the present invention, the data area read using the prefetch command is set to a higher priority than the data on the other caches (steps 705 and 706), so that the discard target data is selected (step 702). ), Data read by the pre-read command is preferentially left over other data. As a result, it is possible to increase the probability that the data specified by the prefetch command is stored in the cache memory 312 when a normal read request is received.

また、先読みコマンドを用いて読み出したデータ領域には、保護フラグを設定する(ステップ707)。キャッシュメモリ312が満杯になった際の破棄対象データの選択時(ステップ702)には、保護フラグが設定されている領域を破棄しないとすることにより、先読みコマンドを発行して(ステップ503)読み出したデータ領域が実際のデータ読み出し時点(ステップ505)までにキャッシュメモリ312から破棄されることを防ぐことができる。この保護フラグは、実際にキャッシュから該当データ領域が読み出された際に解除する。また、保護フラグが設定されたデータが読み出されないままキャッシュメモリ312上に蓄積され続けた場合は、その割合が閾値を超えた際に、優先度の最も低いものを選択し設定を解除する。   Also, a protection flag is set in the data area read using the prefetch command (step 707). When selecting the data to be discarded when the cache memory 312 is full (step 702), the pre-read command is issued (step 503) by not discarding the area where the protection flag is set. The data area can be prevented from being discarded from the cache memory 312 until the actual data read time (step 505). This protection flag is canceled when the corresponding data area is actually read from the cache. If the data with the protection flag set continues to be stored in the cache memory 312 without being read, when the ratio exceeds the threshold, the one with the lowest priority is selected and the setting is canceled.

優先度によるキャッシュメモリ312の管理と、保護フラグによるキャッシュメモリ312の管理は、それぞれ単独で適用することも、両者を併用することもできる。   The management of the cache memory 312 based on the priority and the management of the cache memory 312 based on the protection flag can be applied individually or in combination.

このように、記録装置31の内蔵キャッシュメモリ312へ格納したデータ領域の管理方法を改良することにより、本発明の先読みコマンドを利用してキャッシュメモリ312の利用効率を向上させることができる。   As described above, by improving the management method of the data area stored in the built-in cache memory 312 of the recording device 31, the use efficiency of the cache memory 312 can be improved by using the prefetch command of the present invention.

従来の検索システムの概略構成図である。It is a schematic block diagram of the conventional search system. 記録装置でのデータ読み出し処理を示すフローチャートである。It is a flowchart which shows the data reading process in a recording device. 本発明の一実施の形態例を示すシステム構成図である。1 is a system configuration diagram showing an embodiment of the present invention. 記録媒体上のデータの配置の具体例の説明図である。It is explanatory drawing of the specific example of arrangement | positioning of the data on a recording medium. 検索システムのデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of a search system. 記録装置でのデータ先読み処理を示すフローチャートである。It is a flowchart which shows the data prefetch process in a recording device. 記録装置でのキャッシュ格納処理を示すフローチャートである。It is a flowchart which shows the cache storage process in a recording device.

符号の説明Explanation of symbols

30…制御装置、301…データ処理部、302…入力部、303…出力部、304…メモリ、31…記録装置、311…記録媒体311…キャッシュメモリ、313…入出力制御部、314…先読み制御部。   DESCRIPTION OF SYMBOLS 30 ... Control apparatus, 301 ... Data processing part, 302 ... Input part, 303 ... Output part, 304 ... Memory, 31 ... Recording apparatus, 311 ... Recording medium 311 ... Cache memory, 313 ... Input / output control part, 314 ... Prefetch control Department.

Claims (4)

利用者の要求データの読み出し処理を行う処理プログラムと、内部キャッシュ機構を備えた記録装置であって、処理プログラムからの先読み要求を受け付ける手段と、先読み要求データを記録媒体から記録装置内部のキャッシュメモリに読み込む手段とを備えることを特徴とするデータの先読み処理方式。   A recording apparatus having a processing program for reading user request data and an internal cache mechanism, a means for receiving a prefetch request from the processing program, and a cache memory in the recording apparatus for prefetch request data from the recording medium A data pre-reading processing method characterized by comprising: 請求項1のデータの先読み処理方式において、利用者の指示する先読みが必要な複数のデータの先読み要求を受け付ける手段と、受け付けた要求を元に記録装置へ先読み指示を行う手段と、記録装置における先読み処理と並行して読み出し済みデータの処理を行う手段を備えることを特徴とするデータの先読み処理プログラム。   In the data prefetching processing method according to claim 1, in the recording device, means for accepting a prefetch request for a plurality of data requiring prefetching instructed by a user, means for instructing a prefetch to the recording device based on the accepted request, A data prefetch processing program comprising means for processing read data in parallel with the prefetch processing. 請求項1のデータの先読み処理方式において、処理プログラムからの先読み指示を受け付け、先読み指示を受け付けた時点で記録媒体からの読み出し処理を開始すると同時に要求元への要求受け付け完了報告を行う手段と、要求のあったデータを要求元へは返却せず、記録媒体から記録装置内部キャッシュメモリへの読み出しのみを行う手段と、処理プログラムからの読み出し指示によりキャッシュメモリ上に読み出し済みのデータを要求元へ転送する手段を備えることを特徴とする記録装置。   In the data prefetching processing method according to claim 1, means for receiving a prefetching instruction from the processing program, and starting a reading process from the recording medium when the prefetching instruction is accepted, and simultaneously performing a request acceptance completion report to the request source; The requested data is not returned to the request source, but only means for reading from the recording medium to the internal cache memory of the recording apparatus, and the data already read on the cache memory by the read instruction from the processing program to the request source A recording apparatus comprising a transfer unit. 請求項3の記録装置において、要求されたデータの記録媒体からの読み出し処理を最適にするために要求の実行順序の並び替えを行う手段と、記録装置内部の記録媒体から満杯になっているキャッシュメモリにデータを読み込んで格納する際、格納済みデータのうち先読み指定により格納されたデータを他のデータよりもキャッシュメモリに優先的に残しておく手段と、記録装置内部キャッシュメモリへ読み込んだデータに対する実際の読み出し要求において通常のキャッシュ先読み制御を抑止する手段とを備えることを特徴とする記録装置制御方式。   4. The recording apparatus according to claim 3, wherein means for rearranging the execution order of the requested data in order to optimize a process for reading the requested data from the recording medium, and a cache that is full from the recording medium in the recording apparatus. When reading and storing data in the memory, a means for preferentially leaving the data stored by the pre-read designation among the stored data, and for the data read into the internal cache memory of the recording device A recording apparatus control system comprising: means for suppressing normal cache prefetch control in an actual read request.
JP2006335247A 2006-12-13 2006-12-13 Data read-ahead processing method for recorder Pending JP2008146516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006335247A JP2008146516A (en) 2006-12-13 2006-12-13 Data read-ahead processing method for recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006335247A JP2008146516A (en) 2006-12-13 2006-12-13 Data read-ahead processing method for recorder

Publications (1)

Publication Number Publication Date
JP2008146516A true JP2008146516A (en) 2008-06-26

Family

ID=39606601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006335247A Pending JP2008146516A (en) 2006-12-13 2006-12-13 Data read-ahead processing method for recorder

Country Status (1)

Country Link
JP (1) JP2008146516A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011044056A (en) * 2009-08-24 2011-03-03 Fujitsu Ltd Storage system, device and method for controlling cache
JP2012084156A (en) * 2010-10-14 2012-04-26 Sony Corp Near field communication device and method for near field communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011044056A (en) * 2009-08-24 2011-03-03 Fujitsu Ltd Storage system, device and method for controlling cache
JP2012084156A (en) * 2010-10-14 2012-04-26 Sony Corp Near field communication device and method for near field communication

Similar Documents

Publication Publication Date Title
CN103562843B (en) Method and apparatus for the data in supervisory sequence access storage device
US8639883B2 (en) Reducing write amplification in a cache with flash memory used as a write cache
US7203815B2 (en) Multi-level page cache for enhanced file system performance via read ahead
KR101095740B1 (en) Memory system and controller
JP2007241927A (en) Data storage device and method
JP2007011523A (en) Data look-ahead method and computer system
US20090265506A1 (en) Storage device
JPH06289999A (en) Disk control system
JP2012128815A (en) Memory system
JPWO2008149453A1 (en) Storage device, storage control device, and control method
US9471227B2 (en) Implementing enhanced performance with read before write to phase change memory to avoid write cancellations
JP2008146516A (en) Data read-ahead processing method for recorder
JP2017072981A (en) Information processing apparatus, cache control method, and cache control program
CN109478163B (en) System and method for identifying a pending memory access request at a cache entry
CN116069752A (en) Mixed prefetching method for distributed file system
JP4374956B2 (en) Cache memory control device and cache memory control method
US20120257880A1 (en) Reproducing apparatus and reproducing method
US20060047901A1 (en) Access control method, disk control unit and storage apparatus
JP2001117818A (en) Memory managing device, managing method, and recording medium recorded with managing program
US11656993B2 (en) LBNs prefetching per CPU
JPH07271958A (en) Image file device and image file access method
JP2009087460A (en) Command processing method for disk storage device
KR101831126B1 (en) The controlling method of the data processing apparatus in storage
JP2002244816A (en) Disk device
JP2000035918A (en) Cache memory device