JPH04102915A - Direct access storage device - Google Patents

Direct access storage device

Info

Publication number
JPH04102915A
JPH04102915A JP2220597A JP22059790A JPH04102915A JP H04102915 A JPH04102915 A JP H04102915A JP 2220597 A JP2220597 A JP 2220597A JP 22059790 A JP22059790 A JP 22059790A JP H04102915 A JPH04102915 A JP H04102915A
Authority
JP
Japan
Prior art keywords
performance
data
recording medium
storage device
direct access
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
JP2220597A
Other languages
Japanese (ja)
Inventor
Toshinori Nagahashi
敏則 長橋
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2220597A priority Critical patent/JPH04102915A/en
Publication of JPH04102915A publication Critical patent/JPH04102915A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the performance of a cache by allowing this direct access storage device itself to select an optimum value as segment length to be a reference unit for managing the cache by calculating time required for practical I/O. CONSTITUTION:The DASD 1 is provided with a recording medium to be a rotating body, the cache 4, a data correspondence storage means 5 for managing correspondence between the contents stored in the cache 4 and the contents of the recording medium, an I/O time calculating means 6 for calculating time required for I/O based upon the performance value of the DASD 1, and a performance storage means 7 for storing the seaking performance of a head, rotation waiting performance and the performance of data transfer to be executed between the cache 4 and the recording medium after positioning the head on a prescribed sector. The DASD 1 itself determines the segment length so as to improve its performance in accordance with the property of an access from a host computer. Thus, the performance of the DASD 1 can be extracted up to its maximum.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は直接アクセス記憶装置に関するものである。[Detailed description of the invention] [Industrial application field] The present invention relates to direct access storage devices.

[従来の技術] 光磁気ディスク装置、固定磁気ディスク装置などのよう
な直接アクセス記憶装置は、データの記録・再生を行う
場合、所定セクタのトラック位置にヘッドを移動させる
シーク動作、所定セクタにヘッドを位置づける回転待ち
の動作を伴う。これらの動作は、機械的であるために直
接アクセス記憶装置の性能向上の障害となっている。
[Prior Art] Direct access storage devices such as magneto-optical disk devices and fixed magnetic disk devices perform a seek operation to move the head to a track position in a predetermined sector and a seek operation to move the head to a track position in a predetermined sector when recording and reproducing data. Accompanied by the movement of waiting for positioning and rotation. Since these operations are mechanical, they are an obstacle to improving the performance of direct access storage devices.

これらの対策の一つとして直接アクセス記憶装置に半導
体メモリなどを利用したキヤ、ッシュを備え、このキャ
ッシュにデータを置くことにより、記録媒体へのアクセ
ス頻度を減らし、高速化を行う。
As one of these measures, the direct access storage device is equipped with a cache using semiconductor memory or the like, and by storing data in this cache, the frequency of access to the recording medium is reduced and speed is increased.

キャッシュは、記録媒体の記憶容量よりもはるかに小容
量なのが一般的であり(直接アクセス記憶装置容量の約
1/100以下)、このためアクセスするデータを効率
的に管理し、必要なデータをアクセスするのに要する時
間(以降、入出力時間と称する)の向上のため種々のア
ルゴリズムが用いられている。
The cache generally has a much smaller capacity than the storage capacity of the recording medium (approximately 1/100 or less of the capacity of a direct access storage device), so it can efficiently manage the data to be accessed and access the necessary data. Various algorithms have been used to improve the time required to do this (hereinafter referred to as input/output time).

一般的に用いられる手法では、キャッシュを固定的な長
さに仮想的に区切って管理する。以降、この単位をセグ
メントと呼ぶ。セグメントは記録媒体に対する読み込み
・書き込み、データの置き換えの単位として使用される
。置き換えの対象とするセグメントの選択は、例えばL
RU(Least  Recently  Used)
に基づいて行われる。
In a commonly used method, the cache is managed by virtually partitioning it into fixed lengths. Hereinafter, this unit will be referred to as a segment. A segment is used as a unit for reading from, writing to, and replacing data on a recording medium. The selection of the segment to be replaced is, for example, L
RU (Least Recently Used)
It is carried out based on.

セグメントの大きさは、ホストコンピュータからの読み
込み要求の平均的なデータ長を想定して、この大きさを
越えるように直接アクセス記憶装置生産時に設定し、先
読みによるヒツト率の向上、入出力時間の向上を図る。
The size of the segment is set to exceed the average data length of a read request from the host computer during production of the direct access storage device, which improves the hit rate and input/output time by reading ahead. We aim to

[発明が解決しようとする課題] しかしながら、ランタムなアクセスをホストフ一 ンピュータが要求するランダムアクセスの場合〈例えば
、セクタ1000.0〜100、・・をアクセス)、先
読みによる入出力時間の短縮を期待することはできない
。加えて、セグメント長を大きくすると、シーク距離が
増大し、記録媒体からの読み込みデータ長が大きくなる
ために、逆に入出力時間を増大させ、性能を低下させる
ことがあり得る。
[Problem to be solved by the invention] However, in the case of random access in which the host computer requests random access (for example, accessing sectors 1000.0 to 100, etc.), it is expected that the input/output time will be shortened by read-ahead. I can't. In addition, increasing the segment length increases the seek distance and the length of data read from the recording medium, which may conversely increase input/output time and degrade performance.

一方、アクセスするデータ個所が順次に変化する順次ア
クセスの場合(例えばセクタ0〜1.2〜3、・・をア
クセス)、セグメント長は平均データ長よりも大きく、
かつ最大長、すなわちキャッシュ容量−セグメント長、
とするのが最も入出力時間を短縮することができる。
On the other hand, in the case of sequential access in which the data locations to be accessed change sequentially (for example, accessing sectors 0 to 1.2 to 3, etc.), the segment length is larger than the average data length,
and the maximum length, i.e. cache capacity - segment length,
This can reduce input/output time the most.

また、ホストコンピュータからのアクセスパターンによ
っては、セグメント長を大きくするにしたがって、セグ
メントの内容を置き換える回数が増え、ヒツト率、入出
力時間の増大につながる可能性も存在する。
Furthermore, depending on the access pattern from the host computer, as the segment length increases, the number of times the segment contents are replaced increases, which may lead to an increase in hit rate and input/output time.

このように、セグメント長の設定はホストコンピユータ
から見た直接アクセス記憶装置の性能に大きく影響を与
える。しかしながら、平均データ長、アクセスするパタ
ーン(順次アクセス性か強いか、ランダムアクセス性か
強いか)はホストコンピュータ上で動作するオペレーテ
イングンステムや応用プログラムに依存するにもかかわ
らず、セグメント長は直接アクセス記憶装置生産時の値
に固定するのか一般的である。
Thus, the segment length setting greatly affects the performance of the direct access storage device from the perspective of the host computer. However, although the average data length and the access pattern (sequential or strong access, random access or strong) depend on the operating system and application programs running on the host computer, the segment length is It is common to fix the value to the value at the time of device production.

そこで本発明は、ホストコンピュータからのアクセスの
性質に応して最も直接アクセス記憶装置の性能を高める
ようにセグメント長を直接アクセス記憶装置自身により
設定する手段を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a means for setting the segment length by the direct access storage device itself so as to maximize the performance of the direct access storage device depending on the nature of the access from the host computer.

[課題を解決するための手段] 本発明における直接アクセス記憶装置は、(1)回転体
の記録媒体を使用し、 (a)必要なデータを記録し、再生する記録・再生手段
、 (b)ホストコンピュータとの間で制御情報及びデータ
を送受信するインタフェース手段、 (c)あるアルコリズムにしたがって記録媒体に記録さ
れるデータを半導体メモリなとに格納するキャッシュと
称するデータ高速記憶手段、 (d)データ高速記+、0手段により記憶されている内
容と記録媒体上の内容の対応を管理するデータ対応記憶
手段、 (c)直接アクセス記憶装置の性能値に基ついて、入出
力に要する時間を計算する入出力時間計算手段、 (f)ヘットのシーク性能、ヘッドか所定のトラックに
到達した後、ヘッドが所定のセクタに位置づけられる回
転待ち性能、ヘッドが所定のセクタに位置づけられた後
、データ高速記憶手段と記録媒体との間で行うデータ転
送の性能を記憶する手段を有することを特徴とする。
[Means for Solving the Problems] The direct access storage device of the present invention uses (1) a rotating recording medium, (a) recording/reproducing means for recording and reproducing necessary data, and (b) a host. an interface means for transmitting and receiving control information and data to and from a computer; (c) a high-speed data storage means called a cache for storing data recorded on a recording medium according to a certain algorithm in a semiconductor memory; (d) data (c) data-compatible storage means for managing the correspondence between the contents stored by the high-speed recording means and the contents on the recording medium; (c) an input means for calculating the time required for input/output based on the performance value of the direct access storage device; output time calculation means; (f) seek performance of the head; rotational waiting performance for positioning the head in a predetermined sector after the head reaches a predetermined track; and data high-speed storage means after the head has been positioned in a predetermined sector; The device is characterized by having means for storing performance of data transfer performed between the device and the recording medium.

(2)回転体の記録媒体を使用し、 (a)必要なデータを記録し、再生する記録・再生手段
、 (b)ホストコンピュータとの間て制御情報及びデータ
を送受信するインタフェース手段、 (、C)あるアルゴリズムにしたがって記録媒体に記録
されるデータを半導体メモリなとに格納するキャッシュ
と称するデータ高速記憶手段、 (d)データ高速記憶手段により記憶されている内容と
記録媒体上の内容の対応を管理するデータ対応記憶手段
、 (e)直接アクセス記憶装置の性能値に基ついて、入出
力に要する時間を計算する入出力時間計算手段、 (f)時間を測定できる時刻検出手段、(g)直接アク
セス記憶装置のシークする性能を前記時刻検出手段を用
いて測定するシーク性能測定手段、 (h)ヘッドか所定のトランクに到達した後、ヘッドが
所定のセクタに位置づけられる時間を^り定する回転待
ち性能測定手段、(i)ヘッドが所定のセクタに位置つ
けられた後、データ高速記憶手段と記録媒体との間で行
うデータ転送の性能を前記時刻検出手段を用いて測定す
るデータ転送性能測定手段を有することを特徴とする。
(2) Using a rotating recording medium, (a) recording/reproducing means for recording and reproducing necessary data; (b) interface means for transmitting and receiving control information and data to and from a host computer; C) A high-speed data storage means called a cache that stores data recorded on a recording medium according to a certain algorithm in a semiconductor memory, etc. (d) Correspondence between the contents stored by the high-speed data storage means and the contents on the recording medium. (e) input/output time calculation means for calculating the time required for input/output based on the performance value of the direct access storage device; (f) time detection means for measuring time; (g) direct access storage device; seek performance measuring means for measuring the seek performance of the storage device using the time detecting means; (h) a rotational wait for determining the time during which the head is positioned in a predetermined sector after the head reaches a predetermined trunk; Performance measuring means: (i) data transfer performance measuring means for measuring the performance of data transfer performed between the data high-speed storage means and the recording medium using the time detection means after the head is positioned in a predetermined sector; It is characterized by having the following.

[作用] 本発明は、直接アクセス記憶装置のシーク性能、回転待
ち性能、データ転送性能を考慮し、直接アクセス記憶装
置か接続されるホストコンピュータからのアクセスの性
質を判断することにより、キャッシュを効率的に管理し
、直接アクセス記憶装置の性能を最大限に引き出すこと
かできる。
[Operation] The present invention takes into consideration the seek performance, rotational waiting performance, and data transfer performance of the direct access storage device, and determines the nature of access from the direct access storage device or the connected host computer, thereby efficiently using the cache. You can manage and maximize the performance of your direct access storage devices.

[実施例] 以下、本発明について図面に基ついて詳細に説明する。[Example] Hereinafter, the present invention will be explained in detail based on the drawings.

第1図(a)は、本発明における直接アクセス記憶装置
1の構成を示すブロック図である。
FIG. 1(a) is a block diagram showing the configuration of a direct access storage device 1 according to the present invention.

第1図(b)は、本発明における直接アクセス記憶装置
lの構成を示すブロック図である。
FIG. 1(b) is a block diagram showing the configuration of a direct access storage device l according to the present invention.

第2図は、本発明における直接アクセス記憶装置1に電
源がオンされた時のフローチャートを示すブロック図で
ある。
FIG. 2 is a block diagram showing a flowchart when power is turned on to the direct access storage device 1 according to the present invention.

電源オン後、直接アクセス記憶装置1が必要な立ち上げ
処理と、光磁気ディスク装置のように記録媒体が交換可
能な場合は、記録媒体の挿入を待つ(1)。記録媒体へ
のアクセスが可能になったならば、シーク性能測定手段
9、回転待ち性能測定手段10.  データ転送性能測
定手段11により必要な性能データを獲得する。
After the power is turned on, the direct access storage device 1 waits for necessary startup processing and for insertion of the recording medium if the recording medium is replaceable, such as in a magneto-optical disk device (1). Once it is possible to access the recording medium, seek performance measuring means 9, rotation waiting performance measuring means 10. Necessary performance data is acquired by the data transfer performance measuring means 11.

入出力時間を比較するセグメント長をsl、s2、・・
Snとして設定する(2)。これらの値は、セグメント
長として最適と予想されるものを候補として設定する。
Set the segment lengths for comparing input/output times to sl, s2, etc.
Set as Sn (2). These values are set as candidate segment lengths that are expected to be optimal.

以降、これらのセグメント長S1・・・Snを採用した
と仮定して、ヘッド位置H1・・・Hn、シフトラック
数およびシーク時間、回転待ち時間、データ転送時間T
I・・・Tnを計算し、入出力時間の算出を行う。
Hereinafter, assuming that these segment lengths S1...Sn are adopted, head positions H1...Hn, number of shift racks, seek time, rotation waiting time, data transfer time T
I...Tn is calculated to calculate the input/output time.

Sl・・・Snに対応して計算される入出力時間T1・
・・Tnを0に設定し、初期化する(3)。
Input/output time T1 calculated corresponding to Sl...Sn
...Set Tn to 0 and initialize it (3).

Sl・・・Snに対応するヘッドの位置H1・・・Hn
を現在のトラック位置に初期化する(4)。実際に記録
媒体にアクセスする回数を記憶するアクセス回数をOに
初期化する(5)。また、実際の入出力処理に使用する
セグメント長soを5k(k=1、 2、・・n)、す
なわち前記処理においてに選択したいづれかの値にする
(6)。インタフェース手段3により伝達されるホスト
コンピュータからのアクセス要求を待つ(7)。
Head positions H1...Hn corresponding to Sl...Sn
is initialized to the current track position (4). The access count, which stores the number of times the recording medium is actually accessed, is initialized to O (5). Further, the segment length so used in the actual input/output processing is set to 5k (k=1, 2, . . . n), that is, any value selected in the above processing (6). It waits for an access request from the host computer transmitted by the interface means 3 (7).

なお、ここでいう入出力時間は、目標セクタが存在する
トラックにシークするのに要する時間、目標セクタにヘ
ッドが位置づけられるのに要する時間、必要なデータを
データ高速記憶手段4と記録媒体との間で転送するのに
要する時間の総和である。
Note that the input/output time referred to here means the time required to seek to the track where the target sector exists, the time required to position the head in the target sector, and the time required to transfer necessary data between the data high-speed storage means 4 and the recording medium. This is the total time required for transfer between

第3図は、シーク性能測定手段9のフローチャートを示
すブロック図である。
FIG. 3 is a block diagram showing a flowchart of the seek performance measuring means 9.

時刻検出手段8により現時刻を検出する(1)。The current time is detected by the time detection means 8 (1).

シークを行う(2)。時刻検出手段8により現時刻を再
度検出する(3)。シーク時間を算出する・(4)。入
出力時間算出のためのシークトラック数とシーク時間の
対応表が完成すれば終了する。
Perform a seek (2). The current time is detected again by the time detection means 8 (3). Calculate the seek time (4). The process ends when the correspondence table between the number of seek tracks and the seek time for calculating the input/output time is completed.

完成していなければ、シークするトラック数を変えて再
度シーク時間の測定を行う(5)。
If it is not completed, change the number of tracks to be sought and measure the seek time again (5).

第4図は、回転待ち性能測定手段10のフローチャート
を示すブロック図である。
FIG. 4 is a block diagram showing a flowchart of the rotation waiting performance measuring means 10.

時刻検出手段8により現時刻を検出する(1)。The current time is detected by the time detection means 8 (1).

対象セクタに位置づけられるのを待つ(2)。時刻検出
手段8により、再度現時刻を検出する(3)。
Wait until it is positioned in the target sector (2). The time detection means 8 detects the current time again (3).

回転待ち時間を算出する(4)。入出力時間算出のため
の回転待ち性能表が完成すれば、終了する。
Calculate the rotation waiting time (4). Once the rotational wait performance table for calculating input/output time is completed, the process ends.

終了していなければ、対象とするセクタを変えて回転待
ち時間を測定する(5)。
If it has not finished, change the target sector and measure the rotation waiting time (5).

第5図は、データ転送性能測定手段11のフローチャー
トを示すブロック図である。
FIG. 5 is a block diagram showing a flowchart of the data transfer performance measuring means 11.

時刻検出手段8により現時刻を検出する(1)。The current time is detected by the time detection means 8 (1).

すてにヘッドが位置づけられたアクセス開始セクタ、ア
クセスセクタ数を設定し、記録媒体からの読み込み、ま
たは書き込みを行う(2)。時刻検山手段8により現時
刻を再度検出する(3)。1セクタあたりのデータ転送
時間を求める(4)。
The access start sector where the head is already positioned and the number of access sectors are set, and reading from or writing from the recording medium is performed (2). The current time is detected again by the time detection means 8 (3). Find the data transfer time per sector (4).

入出力時間算出のためのデータ転送性能表が完成すれば
、終了する。完成していなければ、開始セクタ、セクタ
数を変えてデータ転送性能を測定する(5)。
Once the data transfer performance table for calculating input/output time is completed, the process ends. If it is not completed, change the starting sector and the number of sectors and measure the data transfer performance (5).

第6図は、読み込み要求があった時の直接アクセス記憶
装置の処理を示すフローチャートを示すブロック図であ
る。
FIG. 6 is a block diagram showing a flowchart showing the processing of the direct access storage device when there is a read request.

まず、入出力時間計算手段6によりセグメント長Sl・
・・Snを採用したと仮定した時の入出力時間TI・・
・Tnを計算する。
First, the input/output time calculating means 6 calculates the segment length Sl.
...Input/output time TI assuming that Sn is adopted...
・Calculate Tn.

次に、データ対応記憶手段5によりデータ高速記憶手段
4に読み込み対象データが存在するかどうかを調べる。
Next, it is checked by the data correspondence storage means 5 whether or not the data to be read exists in the data high speed storage means 4.

データ高速記憶手段4に存在すれば、インタフェース手
段3によりホストコンピュータにデータを転送する(1
)。データ高速記憶手段4に読み込み対象セクタが一部
または全部が存在していない時、記録・再生手段2によ
りセグメント単位にデータを読み込み(2)、インタフ
エース手段3によりホストコンピュータに必要なデータ
を転送する(3)。この時、使用するセグメント長はS
Oである。アクセス回数を1カウントアツプしく4)、
アクセス回数がセグメント長を変更する所定回数に達し
たか調へる(5)。所定回数に達していれば、セグメン
ト長を変更しく6)、終了する。
If the data exists in the high-speed storage means 4, the data is transferred to the host computer by the interface means 3 (1
). When some or all sectors to be read do not exist in the data high-speed storage means 4, the recording/reproducing means 2 reads the data segment by segment (2), and the interface means 3 transfers the necessary data to the host computer. Do (3). At this time, the segment length used is S
It is O. Increase the number of accesses by 1 4)
Check whether the number of accesses has reached a predetermined number of times for changing the segment length (5). If the predetermined number of times has been reached, the segment length is changed 6) and the process ends.

このように、セグメント長を変更する契機は、記録媒体
へのアクセス回数かあらかじめ設定していた回数(所定
回数)に達した時である。所定回数は、セグメント長の
変更か頻繁すぎず、かつ少なすぎない数値に設定する。
In this way, the trigger for changing the segment length is when the number of accesses to the recording medium or the preset number of times (predetermined number of times) is reached. The predetermined number of times is set to a value that is neither too frequent nor too small when changing the segment length.

第7図は、書き込み要求かあった時の直接アクセス記憶
装置の処理を示すフローチャートを示すブロック図であ
る。
FIG. 7 is a block diagram showing a flowchart showing the processing of the direct access storage device when there is a write request.

まず、入出力時間計算手段6によりセグメント長S1・
・・Snを採用したと仮定した時の入出力時間T1・・
・Tnを計算する。データ対応記憶手段5によりホスト
コンピュータか書き込むデータを格納するキャッシュ」
二の位置を決める。
First, the input/output time calculation means 6 calculates the segment length S1.
...Input/output time T1 when assuming Sn is adopted...
・Calculate Tn. A cache that stores data to be written by the host computer using the data-compatible storage means 5.
Decide on the second position.

次に、インタフェース手段3によりデータ高速記憶手段
4にホストコンピュータからのデータをキャッシュに転
送する(1)。このとき、記録・再生手段2により記録
媒体にもデータの書き込みを行う(2)。アクセス回数
を1カウントアツフしく3)、アクセス回数かセグメン
ト長を変更する所定回数に達したか調べる(4)。所定
回数に達していれば、セグメント長を変更しく5)、終
了する。
Next, the interface means 3 transfers data from the host computer to the data high-speed storage means 4 to the cache (1). At this time, data is also written to the recording medium by the recording/reproducing means 2 (2). The number of accesses is counted up by one (3), and it is checked whether the number of accesses has reached the predetermined number of times for changing the segment length (4). If the predetermined number of times has been reached, the segment length is changed (5) and the process ends.

第8図は、入出力時間計算手段6のフローチャーを示す
ブロック図である。設定されているセグメント長を識別
するlを1に設定する(1)。
FIG. 8 is a block diagram showing the flowchart of the input/output time calculation means 6. l, which identifies the set segment length, is set to 1 (1).

nt(セグメント長Siを採用したと仮定した時の現在
のヘッド位置)とシーク対象トラックとの差を計算する
(2)。Hiをシーク対象トラックに設定する(3)。
The difference between nt (the current head position assuming that the segment length Si is adopted) and the track to be sought is calculated (2). Set Hi as the track to be sought (3).

シーク性能測定手段9または性能記憶手段7からシーク
に要する時間を得る(4)。
The time required for seeking is obtained from the seek performance measurement means 9 or the performance storage means 7 (4).

回転待ち性能測定手段10または性能記憶手段7から回
転待ち時間を得る(5)。データ転送性能手段11また
は性能記憶手段7からデータ転送時間を得る(6)。T
iにシーク時間、回転待ち時間、データ転送時間を加え
る(7)。iに1を加える(8)。設定されているセグ
メント長すべて番こついて計算か終了したら、計算を終
了する(9)。
The rotation wait time is obtained from the rotation wait performance measurement means 10 or the performance storage means 7 (5). The data transfer time is obtained from the data transfer performance means 11 or the performance storage means 7 (6). T
Add the seek time, rotation waiting time, and data transfer time to i (7). Add 1 to i (8). When all set segment lengths have been calculated and the calculation has been completed, the calculation is ended (9).

第9図は、セグメント長の変更のフローチャーI・を示
すブロック図である。
FIG. 9 is a block diagram showing flowchart I. of changing the segment length.

セグメント長S1・・・Snに対応した入出力時間T1
・・・Tnのうち最小のTkを選び出す(1)。
Input/output time T1 corresponding to segment length S1...Sn
...Choose the minimum Tk from Tn (1).

以降の処理に使用するセグメント長SOをSkに設定す
る(2)。以降のアクセス処理に伴う入出力時間を再び
計算するためにT1・・・TnをOに初期化する(3)
。Hl・・・I−1nを現在へ・ソドが存在しているト
ラックの値にする(4)。また、アクセス回数を0に初
期化する(5)。
The segment length SO used for subsequent processing is set to Sk (2). Initialize T1...Tn to O in order to recalculate the input/output time associated with subsequent access processing (3)
. Hl... Set I-1n to the value of the track where Sodo currently exists (4). Also, the number of accesses is initialized to 0 (5).

セグメント長が変更された場合、変更以前のセグメント
長に基ついてデータ高速記憶手段4に記憶されているシ
ークは、以前のセグメント長により置き換えや書き込ろ
か行われる。
When the segment length is changed, the seek stored in the data high-speed storage means 4 based on the segment length before the change is replaced or written by the previous segment length.

以上本実施例においては、CLV、ZCAVのようにア
クセスするセクタの位置によって、性能が異なる場合を
想定しているため、性能表を作成することを前提にした
か、平均値を使用するならば必ずしも性能表を作成する
必要はない。
As mentioned above, in this embodiment, since it is assumed that the performance differs depending on the position of the accessed sector such as CLV and ZCAV, it is assumed that a performance table is created, or if the average value is used. It is not necessarily necessary to create a performance table.

さらに、直接アクセス記憶装置1生産時に性能記憶手段
7により直接アクセス記憶装置1の性能を記憶しておく
ならば、各性能測定手段を用いる必要はない。
Furthermore, if the performance of the direct access storage device 1 is stored in the performance storage means 7 when the direct access storage device 1 is produced, there is no need to use each performance measuring means.

また、本実施例は、シークの書き込みに際しては、w 
r i t e−t h r o u g h方式にN
Eツいているが、write−back方式を採用して
も本実施例と同様に適用できることは言うまでもない。
Furthermore, in this embodiment, when writing a seek, w
N to r it e-t h r o u g h method
However, it goes without saying that the write-back method can also be applied in the same way as this embodiment.

[発明の効果] 以上述へたように本発明によれば、直接アクセス記憶装
置自身がキャッジ−を管理する基本単位であるセグメン
ト長を、実際に入出力に要する時間を計算することによ
り最適な値を選択する。このため、選択可能なセグメン
ト長のみを直接アクセス記憶装置生産時に設定すれば、
さまざまなオペレーティングンステム、応用プログラム
が動作するホストコンピュータに接続して使用しても、
キャッシュによる性能向上効果を最大限に発揮すること
かできる。
[Effects of the Invention] As described above, according to the present invention, the segment length, which is the basic unit in which the direct access storage device itself manages the cache, can be optimized by calculating the time actually required for input/output. Select. Therefore, if only the selectable segment lengths are set during direct access storage device production,
Even when connected to a host computer running various operating systems and application programs,
This allows you to maximize the performance improvement effect of caching.

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

第1図(a)は、本発明における直接アクセス記憶装置
の構成を示すブロック図。 第1図(b)は、本発明における直接アクセス記憶装置
の構成を示すブロック図。 第2図は、本発明における直接アクセス記憶装置の電源
がオンにされた時のフロー チャートを示す図。 第3図は、本発明における直接アクセス記憶装置のシー
ク性能を測定するフローチ ャートを示す図。 第4図は、本発明における直接アクセス記憶装置の回転
待ち性能を測定するフロー チャートを示す図。 第5図は、本発明における直接アクセス記憶装置のデー
タ転送性能を測定するフロ ーチャートを示す図。 第6図は、本発明における直接アクセス記憶装置に対す
る読み込み要求の処理を示 すフローチャートを示す図。 第7図は、本発明における直接アクセス記憶装置に対す
る書き込み要求の処理を示 すフローチャートを示す図。 第8図は、本発明における入出力時間計算のフローチャ
ートを示す図。 第9図は、本発明におけるセグメント長の変更のフロー
チャートを示す図。 ・直接アクセス記憶装置 ・記録・再生手段 ・インタフェース手段 ・データ高速記憶手段 ・データ対応記憶手段 ・入出力時間計算手段 ・性能記憶手段 時刻検出手段 シーク性能測定手段 回転待ち性能測定手段 データ転送性能測定手段 以  上
FIG. 1(a) is a block diagram showing the configuration of a direct access storage device according to the present invention. FIG. 1(b) is a block diagram showing the configuration of a direct access storage device according to the present invention. FIG. 2 is a diagram showing a flowchart when the direct access storage device according to the present invention is powered on. FIG. 3 is a flowchart for measuring the seek performance of a direct access storage device according to the present invention. FIG. 4 is a flowchart for measuring rotational wait performance of a direct access storage device according to the present invention. FIG. 5 is a flowchart for measuring data transfer performance of a direct access storage device according to the present invention. FIG. 6 is a flowchart showing the processing of a read request to a direct access storage device according to the present invention. FIG. 7 is a flowchart showing the processing of a write request to a direct access storage device according to the present invention. FIG. 8 is a diagram showing a flowchart of input/output time calculation in the present invention. FIG. 9 is a diagram showing a flowchart of changing the segment length in the present invention.・Direct access storage device ・Recording/playback means ・Interface means ・Data high-speed storage means ・Data correspondence storage means ・Input/output time calculation means ・Performance storage means Time detection means Seeking performance measuring means Rotation waiting performance measuring means Data transfer performance measuring means Up

Claims (2)

【特許請求の範囲】[Claims] (1)回転体の記録媒体を使用する直接アクセス記憶装
置において、 (a)必要なデータを記録し、再生する記録・再生手段
、 (b)ホストコンピュータとの間で制御情報及びデータ
を送受信するインタフェース 手段、 (c)あるアルゴリズムにしたがって記録媒体に記録さ
れるデータを半導体メモリな どに格納するキャッシュと称するデータ 高速記憶手段、 (d)データ高速記憶手段により記憶されている内容と
記録媒体上の内容の対応を管 理するデータ対応記憶手段、 (e)直接アクセス記憶装置の性能値に基づいて、入出
力に要する時間を計算する入 出力時間計算手段、 (f)ヘッドのシーク性能、ヘッドが所定のトラックに
到達した後、ヘッドが所定の セクタに位置づけられる回転待ち性能、 ヘッドが所定のセクタに位置づけられた 後、データ高速記憶手段と記録媒体との 間で行うデータ転送の性能を記憶する手 段を有することを特徴とする、直接アク セス記憶装置。
(1) In a direct access storage device using a rotating recording medium, (a) recording/reproducing means for recording and reproducing necessary data; (b) an interface for transmitting and receiving control information and data to and from a host computer. (c) high-speed data storage means called a cache that stores data recorded on a recording medium according to a certain algorithm in a semiconductor memory or the like; (d) contents stored by the high-speed data storage means and contents on the recording medium; (e) I/O time calculation means that calculates the time required for input/output based on the performance value of the direct access storage device; (f) Seek performance of the head; and means for storing performance of data transfer between the data high-speed storage means and the recording medium after the head is positioned at the predetermined sector. A direct access storage device characterized by:
(2)回転体の記録媒体を使用する直接アクセス記憶装
置において、 (a)必要なデータを記録し、再生する記録・再生手段
、 (b)ホストコンピュータとの間で制御情報及びデータ
を送受信するインタフェース 手段、 (c)あるアルゴリズムにしたがって記録媒体に記録さ
れるデータを半導体メモリな どに格納するキャッシュと称するデータ 高速記憶手段、 (d)データ高速記憶手段により記憶されている内容と
記録媒体上の内容の対応を管 理するデータ対応記憶手段、 (e)直接アクセス記憶装置の性能値に基づいて、入出
力に要する時間を計算する入 出力時間計算手段、 (f)時間を測定できる時刻検出手段、 (g)直接アクセス記憶装置のシークする性能を前記時
刻検出手段を用いて測定する シーク性能測定手段、 (h)ヘッドが所定のトラックに到達した後、ヘッドが
所定のセクタに位置づけられる 時間を測定する回転待ち性能測定手段、 (i)ヘッドが所定のセクタに位置づけられた後、デー
タ高速記憶手段と記録媒体と の間で行うデータ転送の性能を前記時刻 検出手段を用いて測定するデータ転送性 能測定手段を有することを特徴とする、 直接アクセス記憶装置。
(2) In a direct access storage device using a rotating recording medium, (a) recording/reproducing means for recording and reproducing necessary data; (b) an interface for transmitting and receiving control information and data to and from a host computer; (c) high-speed data storage means called a cache that stores data recorded on a recording medium according to a certain algorithm in a semiconductor memory or the like; (d) contents stored by the high-speed data storage means and contents on the recording medium; (e) input/output time calculation means for calculating the time required for input/output based on the performance value of the direct access storage device; (f) time detection means for measuring time; (g) ) seek performance measurement means for measuring the seek performance of the direct access storage device using the time detection means; (h) rotational wait for measuring the time during which the head is positioned in a predetermined sector after the head reaches a predetermined track; Performance measuring means: (i) data transfer performance measuring means for measuring the performance of data transfer between the data high-speed storage means and the recording medium using the time detection means after the head is positioned in a predetermined sector; A direct access storage device comprising:
JP2220597A 1990-08-22 1990-08-22 Direct access storage device Pending JPH04102915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2220597A JPH04102915A (en) 1990-08-22 1990-08-22 Direct access storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2220597A JPH04102915A (en) 1990-08-22 1990-08-22 Direct access storage device

Publications (1)

Publication Number Publication Date
JPH04102915A true JPH04102915A (en) 1992-04-03

Family

ID=16753475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2220597A Pending JPH04102915A (en) 1990-08-22 1990-08-22 Direct access storage device

Country Status (1)

Country Link
JP (1) JPH04102915A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4621794B1 (en) * 2009-07-22 2011-01-26 株式会社東芝 Cache memory control method and information storage device including cache memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4621794B1 (en) * 2009-07-22 2011-01-26 株式会社東芝 Cache memory control method and information storage device including cache memory
JP2011028386A (en) * 2009-07-22 2011-02-10 Toshiba Corp Cache memory control method, and information storage device comprising cache memory

Similar Documents

Publication Publication Date Title
US6311252B1 (en) Method and apparatus for moving data between storage levels of a hierarchically arranged data storage system
US6418510B1 (en) Cooperative cache and rotational positioning optimization (RPO) scheme for a direct access storage device (DASD)
EP0354579B1 (en) A controller with a cache memory and control method of the cache memory
CA2024109C (en) Method and system for optimizing data caching in a disk based computer system
JP3257916B2 (en) External storage device
JP3254429B2 (en) Data transfer / management system and method
US5574881A (en) High capacity data storage method and system using independently controlled heads and circuitry for monitoring access frequency of data records
US5983319A (en) Information recording and reproduction apparatus and a method of data caching including read-ahead capability
JP2003131942A (en) Apparatus and method for controlling cache of hard disk devices
JP4925230B2 (en) Storage device, storage control device, and control method
JP3087429B2 (en) Storage system
US7406547B2 (en) Sequential vectored buffer management
KR20020034095A (en) Seek acoustics reduction with minimized performance degradation
JP6481492B2 (en) Tape device, control device, and control program
JPH04102915A (en) Direct access storage device
JPH11506238A (en) System and method for sequentiality detection in a cache management system
JPS6331807B2 (en)
JPH0944315A (en) Memory device and its method
JP2845658B2 (en) Access control device for data recording / reproducing device
JPH1011337A (en) Method for controlling data in storage device
JPH03102443A (en) Data preread controlling system
JPH04180140A (en) Direct access storage
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JPH04311216A (en) External storage controller
JP2531538B2 (en) Cache memory data write-back method and disk cache control device