JP2000357125A - Method and device for buffer memory control - Google Patents

Method and device for buffer memory control

Info

Publication number
JP2000357125A
JP2000357125A JP11169920A JP16992099A JP2000357125A JP 2000357125 A JP2000357125 A JP 2000357125A JP 11169920 A JP11169920 A JP 11169920A JP 16992099 A JP16992099 A JP 16992099A JP 2000357125 A JP2000357125 A JP 2000357125A
Authority
JP
Japan
Prior art keywords
buffer memory
access pattern
buffer
data
segments
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
JP11169920A
Other languages
Japanese (ja)
Inventor
Takashi Mizuoka
貴志 水岡
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP11169920A priority Critical patent/JP2000357125A/en
Publication of JP2000357125A publication Critical patent/JP2000357125A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for control which convert the memory constitution of a buffer of a data storage system by access patterns of respective data so that the use efficiency of the buffer is optimized. SOLUTION: When a sequential access pattern is detected at a data access request from a host computer 109, the number of segments of the buffer 106 is decreased to alter the buffer memory constitution so that the segment size of the buffer becomes large, thereby achieving optimum sequential access performance. When a nonsequential access pattern is detected, on the other hand, the number of segments of the buffer 106 is increased and the buffer memory constitution is altered so that the data reuse efficiency in the buffer becomes large, thereby increasing the processing efficiency of data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、バッファメモリの
制御方法及び制御装置に関し、特にデータ記憶アクセス
パターンの変化に適用するバッファメモリの制御に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method and a control device for a buffer memory, and more particularly to a control of a buffer memory applied to a change in a data storage access pattern.

【0002】[0002]

【従来の技術】データ記憶アクセスパターンの変化に応
じて、制御方法を変化させる例として、特開平8−21
2054号公報により開示された“バッファメモリを動
作させる方法及び関連する装置”が知られている。これ
はデータのアクセス要求をモニタし、順次アクセスパタ
ーンであると検出されると、バッファメモリプリフェッ
チ記憶規則が循環上書きモードに切り替わり、非順次ア
クセスパターンが検出されると、バッファメモリプリフ
ェッチ記憶規則がそれに応じて非順次またはブロック上
書きモードに切り替わる。これにより、バッファ内のデ
ータブロックの再利用ヒットを最大化するというもので
ある。
2. Description of the Related Art An example of changing a control method according to a change in a data storage access pattern is disclosed in JP-A-8-21.
There is known a "method for operating a buffer memory and related devices" disclosed in Japanese Patent Publication No. 2054. This is to monitor the data access request, switch to the buffer overwrite prefetch storage rule if it is detected as a sequential access pattern, and switch to the circular overwrite mode. The mode is switched to the non-sequential or block overwrite mode accordingly. This maximizes the reuse hit of the data block in the buffer.

【0003】よって、この特開平8−212054号公
報により開示された“バッファメモリを動作させる方法
及び関連する制御装置”は、固定化された独立したセグ
メント内で、データのアクセス要求に応じて、バッファ
メモリの読み込み方式を切り替えるというものであり、
バッファメモリの構成は、単一のセグメントにより構成
された単一セグメント構成をしているか、バッファが複
数のセグメントに分割された構成のマルチセグメント構
成をしている。
[0003] Therefore, the "method for operating a buffer memory and related control device" disclosed in Japanese Patent Application Laid-Open No. H8-212054 discloses a method for responding to a data access request within a fixed independent segment. Switching the reading method of the buffer memory,
The configuration of the buffer memory has a single segment configuration composed of a single segment or a multi-segment configuration in which a buffer is divided into a plurality of segments.

【0004】[0004]

【発明が解決しようとする課題】データ記憶装置のバッ
ファメモリ構成において、単一セグメント構成の場合
は、順次アクセスパターンに対して、バッファのセグメ
ントサイズが大きいため、大量のデータをため込むこと
ができるため大変便利であるが、非順次アクセスパター
ンに対しては、データ出力時にバッファミスヒットを起
こしやすく、データ処理効率が悪いという問題がある。
In a buffer memory configuration of a data storage device, in the case of a single segment configuration, a large amount of data can be stored because a buffer segment size is large for a sequential access pattern. Although very convenient, a non-sequential access pattern has a problem that a buffer mishit is likely to occur at the time of data output, and the data processing efficiency is low.

【0005】一方、マルチセグメント構成の場合には、
非順次アクセスパターンに対して、バッファ内のデータ
再利用ができるためデータの処理効率が良いが、順次ア
クセスパターンに対しては、バッファのセグメントサイ
ズが小さいことにより、バッファフルになりやすくなり
オーバーヘッドが増えることによりCPU占有率が悪化
するという問題がある。このことは、特にバッファの容
量が小さなRAMを使用する場合に顕著である。
On the other hand, in the case of a multi-segment configuration,
For non-sequential access patterns, data processing efficiency is high because data in the buffer can be reused, but for sequential access patterns, the buffer segment size is small, so the buffer is likely to become full and overhead increases. There is a problem that the CPU occupancy is deteriorated by the increase. This is remarkable especially when a RAM having a small buffer capacity is used.

【0006】また、特開平8−212054号公報によ
り開示された“バッファメモリを動作させる方法及び関
連する装置”においては、バッファメモリは、単一セグ
メント構成、あるいはマルチセグメント構成として構成
される。そのため、特開平8−212054号公報によ
り開示された“バッファメモリを動作させる方法及び関
連する装置”においても上記単一セグメント構成、ある
いはマルチセグメント構成の問題点を同様に有してい
る。
[0006] In the "method for operating a buffer memory and related devices" disclosed in Japanese Patent Application Laid-Open No. H8-212054, the buffer memory is configured as a single-segment configuration or a multi-segment configuration. Therefore, the “method for operating a buffer memory and related devices” disclosed in Japanese Patent Application Laid-Open No. H08-212054 also has the above-described problem of the single-segment configuration or the multi-segment configuration.

【0007】本発明は、上記問題点に鑑みてなされたも
のであり、バッファメモリ構成を、要求データアクセス
パターンの変化により自動的に適応させることにより、
順次アクセスパターンの場合には、バッファのセグメン
トサイズを大きくし、CPUの占有率の悪化を防止する
ことができ、非順次アクセスパターンの場合には、デー
タの再利用効率を高くし、データの処理効率を上げるこ
とができるバッファメモリ制御装置を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has an object to automatically adapt a buffer memory configuration according to a change in a requested data access pattern.
In the case of the sequential access pattern, the segment size of the buffer can be increased to prevent the occupancy of the CPU from deteriorating. In the case of the non-sequential access pattern, the efficiency of data reuse can be increased, and It is an object of the present invention to provide a buffer memory control device that can increase efficiency.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかるバッファメモリ制御装置は、要求
データのアクセスパターンが順次アクセスパターンであ
るのか非順次アクセスパターンであるのかを判別するア
クセスパターン判別部と、要求データのアクセスパター
ンによりバッファメモリのセグメント数の変換を行なう
バッファメモリ構成変換部とを有するものである。
According to one aspect of the present invention, there is provided a buffer memory control device for determining whether an access pattern of request data is a sequential access pattern or a non-sequential access pattern. It has a pattern determining unit and a buffer memory configuration converting unit that converts the number of segments in the buffer memory according to the access pattern of the requested data.

【0009】また、請求項2にかかるバッファメモリ制
御装置は、請求項1に記載のバッファメモリ制御装置に
おいて、アクセスパターン判別部は、バッファメモリに
連続して入ってくるデータブロック数をカウントするカ
ウント部と、上記カウント部によりカウントされたデー
タブロック数と、任意に設定したしきい値とを比較する
比較部とを有し、上記しきい値を超えた場合には、順次
アクセスパターンであると判断し、しきい値以下である
場合には、非順次アクセスパターンであると判断するも
のである。
According to a second aspect of the present invention, in the buffer memory control device according to the first aspect, the access pattern determining unit counts the number of data blocks continuously input to the buffer memory. Unit, and a comparison unit for comparing the number of data blocks counted by the counting unit with an arbitrarily set threshold value. If it is determined that the access pattern is equal to or smaller than the threshold value, it is determined that the access pattern is a non-sequential access pattern.

【0010】また、請求項3にかかるバッファメモリ制
御装置は、請求項1に記載のバッファメモリ制御装置に
おいて、構成変換部は、要求データのアクセスパターン
が順次アクセスパターンである場合には、バッファのセ
グメント数を減らし、バッファのセグメントサイズが大
きくなるようにバッファメモリ構成を変換し、要求デー
タアクセスパターンが、非順次アクセスパターンである
場合には、バッファのセグメント数を増やし、バッファ
内のデータ再利用効率が高くなるようにバッファメモり
構成を変換するものである。
According to a third aspect of the present invention, in the buffer memory controller according to the first aspect, when the access pattern of the request data is the sequential access pattern, Convert the buffer memory configuration to reduce the number of segments and increase the segment size of the buffer.If the requested data access pattern is a non-sequential access pattern, increase the number of segments in the buffer and reuse the data in the buffer. The buffer memory configuration is converted to increase the efficiency.

【0011】また、請求項4にかかるバッファメモリ制
御方法は、要求データのアクセスパターンが順次アクセ
スパターンであるのか非順次アクセスパターンであるの
かを判別するアクセスパターン判別ステップと、要求デ
ータのアクセスパターンによりバッファメモリのセグメ
ント数の変換を行なうバッファメモリ構成変換ステップ
とを有するものである。
According to a fourth aspect of the present invention, there is provided a buffer memory control method, comprising: an access pattern determining step of determining whether a request data access pattern is a sequential access pattern or a non-sequential access pattern; And a buffer memory configuration conversion step of converting the number of segments in the buffer memory.

【0012】また、請求項5にかかるバッファメモリ制
御方法は、請求項4に記載のバッファメモリ制御方法に
おいて、アクセスパターン判別ステップは、バッファメ
モリに連続して入ってくるデータブロック数をカウント
するカウントステップと、上記カウント部によりカウン
トされたデータブロック数と、任意に設定したしきい値
とを比較する比較ステップとを有し、上記しきい値を超
えた場合には、順次アクセスパターンであると判断し、
しきい値以下である場合には、非順次アクセスパターン
であると判断するものである。
According to a fifth aspect of the present invention, in the buffer memory control method according to the fourth aspect, the access pattern determining step counts the number of data blocks continuously input to the buffer memory. And a comparing step of comparing the number of data blocks counted by the counting section with an arbitrarily set threshold value. If the threshold value is exceeded, the access pattern is determined to be a sequential access pattern. Judge,
If it is equal to or less than the threshold value, it is determined that the access pattern is a non-sequential access pattern.

【0013】また、請求項6にかかるバッファメモリ制
御方法は、請求項4に記載のバッファメモリ制御方法に
おいて、バッファメモリ構成変換ステップは、要求デー
タのアクセスパターンが順次アクセスパターンである場
合には、バッファのセグメント数を減らし、バッファの
セグメントサイズが大きくなるようにバッファメモリ構
成を変換するステップと、要求データアクセスパターン
が、非順次アクセスパターンである場合には、バッファ
のセグメント数を増やし、バッファ内のデータ再利用効
率が高くなるようにバッファメモリ構成を変換するステ
ップとを有するものである。
According to a sixth aspect of the present invention, in the buffer memory control method according to the fourth aspect, the buffer memory configuration conversion step includes the steps of: Converting the buffer memory configuration to reduce the number of buffer segments and increase the buffer segment size; and, if the requested data access pattern is a nonsequential access pattern, increasing the number of buffer segments and And converting the buffer memory configuration so as to increase the data reuse efficiency.

【0014】[0014]

【発明の実施の形態】(実施の形態1)以下に、本発明
のバッファメモリ制御方法及び制御装置の実施の形態の
一例を図1、図2、図3、図4を用いて説明する。図1
は、本発明の実施の形態1におけるバッファメモリ制御
装置を組み込んだデータ記憶装置のブロック線図であ
る。図示するように本実施の形態1のバッファメモリ制
御装置を組み込んだデータ記憶装置は、記憶媒体101
から、データの読み取りを行なうデータ読み取り部10
2と、上記データ読み取り部102により読み取った読
み取り信号の処理を行なう信号処理部103と、エラー
訂正を行なうエラー訂正部104と、バッファメモリ制
御装置としてバッファメモリの動作の制御を行なうバッ
ファメモリ制御部105と、データをセグメント内で循
環上書きすることにより一時的に蓄えるバッファメモリ
106と、データの出入力を行なうインターフェイス1
07と、データ記憶装置全体の制御を行なうマイクロプ
ロセッサ108と、記憶装置にデータのアクセス要求を
行なうホストピュータ109とを有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (Embodiment 1) An embodiment of a buffer memory control method and a control device according to the present invention will be described below with reference to FIGS. 1, 2, 3 and 4. FIG. FIG.
1 is a block diagram of a data storage device incorporating a buffer memory control device according to Embodiment 1 of the present invention. As shown in the figure, a data storage device incorporating the buffer memory control device of the first embodiment includes a storage medium 101.
Data reading unit 10 for reading data from
2, a signal processing unit 103 that processes a read signal read by the data reading unit 102, an error correction unit 104 that performs error correction, and a buffer memory control unit that controls the operation of a buffer memory as a buffer memory control device. 105, a buffer memory 106 for temporarily storing data by cyclically overwriting in the segment, and an interface 1 for inputting and outputting data
07, a microprocessor 108 for controlling the entire data storage device, and a host computer 109 for issuing a data access request to the storage device.

【0015】ここで、バッファメモリ制御装置105
は、要求データのアクセスパターンが順次アクセスパタ
ーンであるのか非順次アクセスパターンであるのかを判
別するアクセスパターン判別部110と、要求データの
アクセスパターンによりバッファメモリのセグメント数
の変換を行なうバッファメモリ構成変換部113とから
なり、アクセスパターン判別部は、さらにバッファメモ
リに連続して入ってくるデータブロック数をカウントす
るカウント部111と、上記カウント部111によりカ
ウントされたデータブロック数と、任意に設定したしき
い値とを比較する比較部112とからなる。
Here, the buffer memory control device 105
Is an access pattern determining unit 110 for determining whether the access pattern of the request data is a sequential access pattern or a non-sequential access pattern, and a buffer memory configuration conversion for converting the number of segments of the buffer memory according to the access pattern of the request data. The access pattern discriminating unit further includes a counting unit 111 for counting the number of data blocks continuously input to the buffer memory, and the number of data blocks counted by the counting unit 111. And a comparison unit 112 for comparing the threshold value.

【0016】次に動作について説明する。図1に示すよ
うに、ホストコンピュータ109からの要求データは、
インターフェイス107、マイクロプロセッサ108を
介し、データ読み取り部102により記憶媒体101の
データが読み取られる。当該データは、信号処理部10
3で信号処理された後、エラー訂正部104によりエラ
ー訂正され、バッファメモリ制御部105により制御さ
れたバッファメモリ106に、セグメント内で循環上書
きをすることにより一時貯められる。その後、バッファ
メモリ106に貯められたデータは、マイクロプロセッ
サ108により制御されたインターフェイス107によ
りホストコンピュータ109に転送される。
Next, the operation will be described. As shown in FIG. 1, the request data from the host computer 109 is:
The data in the storage medium 101 is read by the data reading unit 102 via the interface 107 and the microprocessor 108. The data is transmitted to the signal processing unit 10
After the signal processing in step 3, the error is corrected by the error correction unit 104, and is temporarily stored in the buffer memory 106 controlled by the buffer memory control unit 105 by performing cyclic overwriting within the segment. After that, the data stored in the buffer memory 106 is transferred to the host computer 109 by the interface 107 controlled by the microprocessor 108.

【0017】図2は、バッファメモリの構成の変換を説
明する説明図である。図2に示すように、バッファ回路
制御部105によるバッファメモリ106の制御は、バ
ッファメモリの構成をホストコンピュータ109からの
要求データのアクセスパターンが順次アクセスパターン
である場合には、バッファのセグメントサイズが大きく
なるように単一セグメント構成201に変換し、要求デ
ータアクセスパターンが、非順次アクセスパターンであ
る場合には、バッファのセグメント数を増やし、バッフ
ァ内のデータ再利用効率が高くなるようにマルチセグメ
ント構成202に変換する。
FIG. 2 is an explanatory diagram for explaining the conversion of the configuration of the buffer memory. As shown in FIG. 2, the buffer circuit control unit 105 controls the buffer memory 106 when the access pattern of the request data from the host computer 109 is a sequential access pattern. When the requested data access pattern is a non-sequential access pattern, the number of segments in the buffer is increased, and the multi-segment is set so as to increase the data reuse efficiency in the buffer. Convert to configuration 202.

【0018】ここで、要求データのアクセスパターンの
判別は、例えば、図1に示すように、バッファメモリに
連続して入ってくるデータブロック数をカウント部11
1によりカウントし、上記カウント部111によりカウ
ントされたデータブロック数と、任意に設定したしきい
値とを比較部112により比較することにより、しきい
値を超えた場合には、順次アクセスパターンであると判
断し、しきい値以下である場合には、非順次アクセスパ
ターンであると判断する。ここで、しきい値の値は、変
換されるバッファメモリの容量、またはセグメント数な
どの諸条件により自由に設定することができる。
Here, the access pattern of the request data is determined, for example, by counting the number of data blocks continuously entering the buffer memory as shown in FIG.
By comparing the number of data blocks counted by 1 with the arbitrarily set threshold value by the comparing unit 112 with the number of data blocks counted by the counting unit 111, if the threshold value is exceeded, the access pattern is sequentially changed. It is determined that there is a pattern, and if it is equal to or smaller than the threshold value, it is determined that the pattern is a non-sequential access pattern. Here, the threshold value can be freely set according to various conditions such as the capacity of the buffer memory to be converted or the number of segments.

【0019】以下、図2に示すマルチセグメント構成2
01と単一セグメント構成202の間でバッファメモリ
構成の変換を行なう場合についての一例として、図3、
図4のフローチャートとを用いて説明する。図3は、本
発明の実施の形態1におけるマルチセグメント構成20
1により構成されたバッファメモリの制御方法を示した
フローチャートである。まず、システム電源立ち上げ
後、ホストコンピュータ109からのアクセス要求に対
して、バッファメモリはマルチセグメント構成201で
読み込みを行なう。図3に示すように、デ−タアクセス
要求(S1)に対して、読み込み中のAセグメント20
3でバッファヒットしなかった時は(S2)、次のセグ
メントであるBセグメント204に切替えて(S3)デ
ータをバッファフルになるまで先読みを続ける(S
4)。
The multi-segment configuration 2 shown in FIG.
FIG. 3 shows an example of a case where the buffer memory configuration is converted between 01 and the single segment configuration 202.
This will be described with reference to the flowchart of FIG. FIG. 3 shows a multi-segment configuration 20 according to Embodiment 1 of the present invention.
3 is a flowchart illustrating a control method of the buffer memory configured by the first embodiment. First, after the system power is turned on, the buffer memory reads in a multi-segment configuration 201 in response to an access request from the host computer 109. As shown in FIG. 3, in response to the data access request (S1), the A segment 20 being read is read.
3, if there is no buffer hit (S2), switch to the next segment, B segment 204 (S3), and continue to read ahead until the buffer becomes full (S3).
4).

【0020】なお、Aセグメント203に読み込み中に
ホストコンピュータ109からのデータアクセス要求が
あった場合について説明したが、Bセグメント204に
読み込み中にホストコンピュータ109からのデータア
クセス要求があった場合であっても、同様の動作が可能
である。
Although the description has been given of the case where a data access request is issued from the host computer 109 while reading the A segment 203, the case where a data access request is issued from the host computer 109 while reading the B segment 204 is described. However, the same operation is possible.

【0021】一方、データアクセス要求(S1)に対し
て、読み込み中のAセグメント203内でバッファヒッ
トした場合には(S2)、ホストコンピュータ109か
らの連続したアクセス要求のデータブロック数と、任意
に設定したしきい値との比較を行ない(S5)、データ
ブロック数がしきい値以下(非順次アクセスパターン)
の場合は、読み込み中のAセグメント203内のデータ
を転送し、バッファフルになるまで先読みを続ける(S
4)。また、データブロック数がしきい値以上(順次ア
クセスパターン)の場合には、バッファメモリの構成を
バッファのセグメントサイズが小さいマルチセグメント
構成からバッファのセグメントサイズが大きい単一セグ
メント構成202に変換し、先読みを続ける(S6)。
On the other hand, if a buffer hit occurs in the A segment 203 being read in response to the data access request (S1) (S2), the number of data blocks in the continuous access request from the host computer 109 is arbitrarily determined. Comparison with the set threshold is performed (S5), and the number of data blocks is equal to or smaller than the threshold (non-sequential access pattern)
In the case of, the data in the A segment 203 being read is transferred, and the prefetch is continued until the buffer becomes full (S
4). If the number of data blocks is equal to or larger than the threshold (sequential access pattern), the configuration of the buffer memory is converted from a multi-segment configuration having a small buffer segment size to a single segment configuration 202 having a large buffer segment size, Continue reading ahead (S6).

【0022】図4は、本発明の実施の形態1における単
一セグメント構成202により構成されたバッファメモ
リの制御方法を示したフローチャートであり、マルチセ
グメント構成201から単一セグメント構成202にバ
ッファメモリの構成を変換されたバッファメモリに次の
アクセス要求が来た場合(S7)、アクセス要求の連続
したデータブロック数と、任意に設定したしきい値との
比較を行ない(S8)、データブロック数がしきい値以
上(順次アクセスパターン)の場合は、単一セグメント
205内のデータを転送し、バッファフルになるまで先
読みを続ける(S9)。また、データブロック数がしき
い値以下(非順次アクセスパターン)の場合には、バッ
ファメモリの構成をデータ処理効率が低い単一セグメン
ト構成202からデータ処理効率の高いマルチセグメン
ト201構成に変換して先読みを続ける(S10)。
FIG. 4 is a flowchart showing a control method of the buffer memory constituted by the single-segment structure 202 according to the first embodiment of the present invention. When the next access request comes to the buffer memory whose configuration has been converted (S7), the number of consecutive data blocks of the access request is compared with an arbitrarily set threshold value (S8), and the number of data blocks is reduced. If it is equal to or greater than the threshold (sequential access pattern), the data in the single segment 205 is transferred, and the prefetch is continued until the buffer becomes full (S9). When the number of data blocks is equal to or smaller than the threshold value (non-sequential access pattern), the configuration of the buffer memory is converted from the single segment configuration 202 having low data processing efficiency to the multi-segment 201 configuration having high data processing efficiency. Continue reading ahead (S10).

【0023】これにより、バッファメモリ構成を、要求
データアクセスパターンの変化に応じたバッファメモリ
構成に自動的に適応させることができ、順次アクセスパ
ターンの場合には、バッファメモリのセグメント数を減
らし、バッファのセグメントサイズを大きくすることに
より、CPUの占有率の悪化を防止することが可能とな
る。また、非順次アクセスパターンの場合には、バッフ
ァメモリのセグメント数を増やし、データの再利用効率
を高くすることにより、データの処理効率を上げること
が可能となる。
Thus, the buffer memory configuration can be automatically adapted to the buffer memory configuration according to the change in the requested data access pattern. In the case of the sequential access pattern, the number of segments in the buffer memory can be reduced, By increasing the segment size, it is possible to prevent the occupancy of the CPU from being deteriorated. In the case of a non-sequential access pattern, the number of segments in the buffer memory is increased to increase the data reuse efficiency, thereby improving the data processing efficiency.

【0024】なお、順次アクセスパターンの場合には、
単一セグメント構成202に、非順次アクセスパターン
の場合には、セグメント数が2個のマルチセグメント構
成に変換することについて説明したが、順次アクセスパ
ターンである場合には、バッファのセグメント数を減ら
すようにバッファメモリ構成を変換し、要求データアク
セスパターンが、非順次アクセスパターンである場合に
は、バッファのセグメント数を増やすようにバッファメ
モり構成を変換することにより、バッファのセグメント
サイズを調整する場合であっても同様の効果が得られ
る。
In the case of a sequential access pattern,
In the single-segment configuration 202, the case where the number of segments is converted to a multi-segment configuration having two segments in the case of a non-sequential access pattern has been described. When the buffer memory configuration is converted and the requested data access pattern is a non-sequential access pattern, the buffer memory configuration is converted so as to increase the number of buffer segments, thereby adjusting the buffer segment size. However, the same effect can be obtained.

【0025】[0025]

【発明の効果】以上のように本発明のバッファメモリ制
御方法及び制御装置によれば、要求データのアクセスパ
ターンの判別を行なうアクセスパターン判別部とバッフ
ァメモリの構成の変換を行なうバッファメモリ構成変換
部とからなるバッファメモリ制御装置により、順次アク
セスパターンの場合には、バッファメモリのセグメント
数を減らし、バッファのセグメントサイズを大きくする
ことにより、CPUの占有率の悪化を防止することが可
能となる。また、非順次アクセスパターンの場合には、
バッファメモリのセグメント数を増やし、データの再利
用効率を高くすることにより、データの処理効率を上げ
ることが可能となる。
As described above, according to the buffer memory control method and control apparatus of the present invention, an access pattern determining unit for determining an access pattern of request data and a buffer memory configuration converting unit for converting the configuration of a buffer memory In the case of a sequential access pattern, by reducing the number of segments of the buffer memory and increasing the segment size of the buffer, it is possible to prevent the CPU occupancy from deteriorating. In the case of a non-sequential access pattern,
By increasing the number of segments in the buffer memory and increasing the data reuse efficiency, it is possible to increase the data processing efficiency.

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

【図1】本発明の実施の形態1におけるバッファメモリ
制御装置を組み込んだデータ記憶装置のブロック図であ
る。
FIG. 1 is a block diagram of a data storage device incorporating a buffer memory control device according to a first embodiment of the present invention.

【図2】本発明の実施の形態1におけるバッファメモリ
の構成の変換を説明するための説明図である。
FIG. 2 is an explanatory diagram for explaining conversion of a configuration of a buffer memory according to the first embodiment of the present invention;

【図3】本発明の実施の形態1におけるマルチセグメン
ト構成により構成されたバッファメモリの制御方法を示
したフローチャートである。
FIG. 3 is a flowchart illustrating a control method of a buffer memory configured with a multi-segment configuration according to the first embodiment of the present invention.

【図4】本発明の実施の形態1における単一セグメント
構成により構成されたバッファメモリの制御方法を示し
たフローチャートである。
FIG. 4 is a flowchart showing a control method of a buffer memory configured with a single segment configuration according to the first embodiment of the present invention.

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

101 記録媒体 102 データ読み取り部 103 信号処理部 104 エラー訂正部 105 バッファメモリ制御部バッファメモリ 106 バッファメモリ 107 インターフェイス 108 マイクロプロセッサ 109 ホストコンピュータ 110 アクセスパターン判別部 111 カウント部 112 比較部 113 バッファメモリ構成変換部 201 マルチセグメント構成 202 単一セグメント構成 203 Aセグメント 204 Bセグメント 205 単一セグメント DESCRIPTION OF SYMBOLS 101 Recording medium 102 Data reading part 103 Signal processing part 104 Error correction part 105 Buffer memory control part Buffer memory 106 Buffer memory 107 Interface 108 Microprocessor 109 Host computer 110 Access pattern discrimination part 111 Count part 112 Comparison part 113 Buffer memory configuration conversion part 201 Multi-segment configuration 202 Single-segment configuration 203 A-segment 204 B-segment 205 Single-segment

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 バッファメモリの動作を制御するバッフ
ァメモリ制御装置において、 要求データのアクセスパターンが順次アクセスパターン
であるのか非順次アクセスパターンであるのかを判別す
るアクセスパターン判別部と、 要求データのアクセスパターンによりバッファメモリの
セグメント数の変換を行なうバッファメモリ構成変換部
とを有することを特徴とするバッファメモリ制御装置。
1. A buffer memory control device for controlling an operation of a buffer memory, comprising: an access pattern determining unit for determining whether a request data access pattern is a sequential access pattern or a non-sequential access pattern; A buffer memory control unit for converting the number of segments in the buffer memory according to a pattern.
【請求項2】 請求項1に記載のバッファメモリ制御装
置において、 アクセスパターン判別部は、バッファメモリに連続して
入ってくるデータブロック数をカウントするカウント部
と、 上記カウント部によりカウントされたデータブロック数
と、任意に設定したしきい値とを比較する比較部とを有
し、 上記しきい値を超えた場合には、順次アクセスパターン
であると判断し、しきい値以下である場合には、非順次
アクセスパターンであると判断することを特徴とするバ
ッファメモリ制御装置。
2. The buffer memory control device according to claim 1, wherein the access pattern determining unit counts the number of data blocks continuously input to the buffer memory, and the data counted by the counting unit. A comparison unit that compares the number of blocks with an arbitrarily set threshold value; if the threshold value is exceeded, the access pattern is sequentially determined; Is a non-sequential access pattern.
【請求項3】 請求項1に記載のバッファメモリ制御装
置において、 構成変換部は、要求データのアクセスパターンが順次ア
クセスパターンである場合には、バッファのセグメント
数を減らし、バッファのセグメントサイズが大きくなる
ようにバッファメモリ構成を変換し、要求データアクセ
スパターンが、非順次アクセスパターンである場合に
は、バッファのセグメント数を増やし、バッファ内のデ
ータ再利用効率が高くなるようにバッファメモリ構成を
変換することを特徴とするバッファメモリ制御装置。
3. The buffer memory control device according to claim 1, wherein the configuration conversion unit reduces the number of buffer segments and increases the buffer segment size when the access pattern of the requested data is a sequential access pattern. If the requested data access pattern is a non-sequential access pattern, the buffer memory configuration is changed so that the number of segments in the buffer is increased and the data reuse efficiency in the buffer is increased. A buffer memory control device.
【請求項4】 バッファメモリの動作を制御するバッフ
ァメモリ制御方法において、 要求データのアクセスパターンが順次アクセスパターン
であるのか非順次アクセスパターンであるのかを判別す
るアクセスパターン判別ステップと、 要求データのアクセスパターンによりバッファメモリの
セグメント数の変換を行なうバッファメモリ構成変換ス
テップとを有することを特徴とするバッファメモリ制御
方法。
4. A buffer memory control method for controlling an operation of a buffer memory, comprising: an access pattern determining step of determining whether a request data access pattern is a sequential access pattern or a non-sequential access pattern; A buffer memory configuration conversion step of converting the number of segments in the buffer memory according to a pattern.
【請求項5】 請求項4に記載のバッファメモリ制御方
法において、 アクセスパターン判別ステップは、バッファメモリに連
続して入ってくるデータブロック数をカウントするカウ
ントステップと、 上記カウント部によりカウントされたデータブロック数
と、任意に設定したしきい値とを比較する比較ステップ
とを有し、 上記しきい値を超えた場合には、順次アクセスパターン
であると判断し、しきい値以下である場合には、非順次
アクセスパターンであると判断することを特徴とするバ
ッファメモリ制御方法。
5. The buffer memory control method according to claim 4, wherein the step of determining an access pattern includes a step of counting the number of data blocks continuously input to the buffer memory, and a step of counting data counted by the counting unit. A comparing step of comparing the number of blocks with an arbitrarily set threshold value, and when the threshold value is exceeded, the access patterns are sequentially determined. Is a non-sequential access pattern.
【請求項6】 請求項4に記載のバッファメモリ制御方
法において、 バッファメモリ構成変換ステップは、要求データのアク
セスパターンが順次アクセスパターンである場合には、
バッファのセグメント数を減らし、バッファのセグメン
トサイズが大きくなるようにバッファメモリ構成を変換
するステップと、 要求データアクセスパターンが、非順次アクセスパター
ンである場合には、バッファのセグメント数を増やし、
バッファ内のデータ再利用効率が高くなるようにバッフ
ァメモり構成を変換するステップとを有することを特徴
とするバッファメモリ制御方法。
6. The buffer memory control method according to claim 4, wherein the buffer memory configuration conversion step comprises: when an access pattern of the requested data is a sequential access pattern,
Reducing the number of buffer segments and converting the buffer memory configuration so that the buffer segment size increases; and increasing the number of buffer segments if the requested data access pattern is a non-sequential access pattern.
Converting the buffer memory configuration so as to increase the data reuse efficiency in the buffer.
JP11169920A 1999-06-16 1999-06-16 Method and device for buffer memory control Pending JP2000357125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11169920A JP2000357125A (en) 1999-06-16 1999-06-16 Method and device for buffer memory control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11169920A JP2000357125A (en) 1999-06-16 1999-06-16 Method and device for buffer memory control

Publications (1)

Publication Number Publication Date
JP2000357125A true JP2000357125A (en) 2000-12-26

Family

ID=15895413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11169920A Pending JP2000357125A (en) 1999-06-16 1999-06-16 Method and device for buffer memory control

Country Status (1)

Country Link
JP (1) JP2000357125A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102428455A (en) * 2009-04-08 2012-04-25 谷歌公司 Data striping in a flash memory data storage device
WO2017145302A1 (en) * 2016-02-24 2017-08-31 株式会社日立製作所 Storage device and method for controlling same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102428455A (en) * 2009-04-08 2012-04-25 谷歌公司 Data striping in a flash memory data storage device
WO2017145302A1 (en) * 2016-02-24 2017-08-31 株式会社日立製作所 Storage device and method for controlling same
US10482019B2 (en) 2016-02-24 2019-11-19 Hitachi, Ltd. Storage apparatus and control method thereof

Similar Documents

Publication Publication Date Title
WO2002025448A2 (en) Adaptive throttling of memory accesses, such as throttling rdram accesses in a real-time system
US5016165A (en) Direct memory access controlled system
EP0844566A1 (en) Interface apparatus for adapting data width to system bus width
JP2000357125A (en) Method and device for buffer memory control
JP2006251923A (en) Look-ahead control method
JP3921192B2 (en) Adaptive command and data access method and structure
JP4054448B2 (en) Programmable controller
JP2776785B2 (en) Serial data transfer device
JPS60222917A (en) Image data transmission device
JP3548943B2 (en) Interrupt control method
JPH08278941A (en) Bus control method
KR100409011B1 (en) Stream Data Processing System
JPH0535642A (en) Buffer control system
JP2001125753A (en) Disk array device
JPH0485645A (en) Data transmission speed switching system
JPH10136027A (en) Communication controller
JPS6389951A (en) Cache memory device
JPH06251132A (en) Interface device
KR20050076274A (en) Muliti-bufferring dma data transferring apparatus adopting descriptor dma controller
JPH11296344A (en) Data buffer circuit
JPH0876971A (en) Interface control device
JPH0193849A (en) Controller
JPH08305544A (en) Graphic data processing system in graphic processing system
JPH04314157A (en) Communication equipment
JP2001014183A (en) Buffer controller, method and device for buffer evaluation, recording medium where program is recorded, central processor, and information processor