JPS6045855A - Sequential access detecting method of magnetic disk device - Google Patents

Sequential access detecting method of magnetic disk device

Info

Publication number
JPS6045855A
JPS6045855A JP58152859A JP15285983A JPS6045855A JP S6045855 A JPS6045855 A JP S6045855A JP 58152859 A JP58152859 A JP 58152859A JP 15285983 A JP15285983 A JP 15285983A JP S6045855 A JPS6045855 A JP S6045855A
Authority
JP
Japan
Prior art keywords
record
track
cache memory
access
processing unit
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.)
Granted
Application number
JP58152859A
Other languages
Japanese (ja)
Other versions
JPS6351297B2 (en
Inventor
Satoru Kaneko
悟 金子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58152859A priority Critical patent/JPS6045855A/en
Publication of JPS6045855A publication Critical patent/JPS6045855A/en
Publication of JPS6351297B2 publication Critical patent/JPS6351297B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To ensure the effective use of a cache memory of a large scale sequential access by detecting and deciding a sequential access and then defining a track with a proven an access as a release object at a subsequent time. CONSTITUTION:A cache memory DC has the capacity to store the data of plural tracks of a disk DKU and also contains a control table for those track data. When a CPU requests the record on a track TR2, a cache memory control mechanism gives -1 to the track number and checks the immediately preceding track TR1 in case the record requested from the CPU does not exist on the memory DC. If the requested record exists on the control table together with the sequential flag and the final record access flag set at 1 respectively, the TR1 passes through by a sequential access. Then it is decided that the sequential access reaches the TR2, and all records of the TR1 on the memory DC and the corresponding rows on the table are released to define the object to be driven out in near future e.g. the next time or the next time but one.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、ディスクキャッシュメモリの効率的な使用に
用いる磁気ディスク装置の順次アクセス検出方法に関す
る。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a sequential access detection method for a magnetic disk device used for efficient use of disk cache memory.

従来技術と問題点 磁気ディスク装置は記憶容量が大きいがアクセスタイム
が大であるので半導体メモリで構成されるキャッシュメ
モリを付設し、ディスクからキ中ソシュメモリへデータ
をステージングして該キャッシュメモリから中央処理装
置(CPU)へデータを送るという方式を採用するメモ
リシステムがある。ところでキャッシュメモリの記憶容
量はディスクと比較すれば遥かに小さいからデータを逐
次ステーどングして行くと忽ち一杯になってしまう。
Conventional technology and problems Magnetic disk drives have a large storage capacity, but the access time is long. Therefore, a cache memory consisting of a semiconductor memory is attached, and data is staged from the disk to a central storage memory, and then the data is transferred from the cache memory to central processing. There is a memory system that employs a method of sending data to a device (CPU). By the way, the storage capacity of a cache memory is much smaller than that of a disk, so if data is stored one after another, it will quickly become full.

そこで一杯になったら、差し当って必要でないと思われ
るデータを廃棄し、その跡へ新データを書込むという方
式をとるのが普通である。しかしどれを不必要データと
判断するかは難しい問題である。一般には古い(書込み
時点が早い)データを不要データとするが、勿論古いデ
ータ即ち不必要データではない。
When it becomes full, it is common practice to discard data that is deemed unnecessary for the time being and write new data in its place. However, determining which data is unnecessary is a difficult problem. Generally, old data (written earlier) is considered unnecessary data, but of course it is not old data or unnecessary data.

磁気ディスク装置は一般には多数の同心円状トラックを
持ち、各トラックに複数のレコードが書込まれる。そし
て中央処パ理装置からのデータ要求ハレコード11位で
あり、そしであるし、:]−i’(R11とする)が要
求されると当該レコードが有るトラック (TRIとす
る)がアクセスされ、該トラックの全レコードが読出さ
れてキャッシュメモリへ書込まれ、同時に上記の要求さ
れたレコードR11が中央処理装置へ送られる。中央処
理装置が連続的なデータを要求する場合は次の要求レコ
ードはR11に後続するR12であり、レコードRI2
は上記のようにステージングされてキャッシュメモリ上
にあるから、今度はディスクをアクセスすることなく直
ちに該キャッシュメモリより読出し中央処理装置へ送る
ことができg。次のレコードR13が要求される場合も
同様であり、こうしてキャッシュメモリを利用すると迅
速なデータ読出しが可能になる。
A magnetic disk drive generally has a large number of concentric tracks, and a plurality of records are written on each track. The data request from the central processing unit is the 11th record, so when :]-i' (supposed to be R11) is requested, the track containing the record (supposed to be TRI) is accessed. , all records of the track are read and written to the cache memory, and at the same time the requested record R11 is sent to the central processing unit. If the central processing unit requests continuous data, the next request record is R12 following R11, and record RI2
Since it is staged as described above and is on the cache memory, it can be immediately read from the cache memory and sent to the central processing unit without accessing the disk.g. The same applies when the next record R13 is requested, and using the cache memory in this way allows for rapid data reading.

中央処理装置からの要求レコードが次のトラ・7りTR
2にあるレコードR21に移ると、該レコードR21は
キャッシュメモリ上にはないから再びディスクアクセス
が行なわれ、トラックTR2の読出し、キャッシュメモ
リへのその全レコードの書込み、中央処理装置への要求
されたレコードR21の転送が行なわれる。以下同様で
ある。キャッシュメモリの容量は小さいから全トラック
のステージングを逐次行なって行くと忽ちにしてキャッ
シュメモリは一杯になってしまい、古いものを廃棄する
、の論理で更新するなら古いしがし必要なデータが忽ち
にして廃棄されてしまって、該データが要求される都度
ディスクアクセスを行なわざるを得ない結果になる。
The request record from the central processing unit is the next TR.
When moving to record R21 in No. 2, since record R21 is not on the cache memory, disk access is performed again, reading track TR2, writing all the records to the cache memory, and sending the request to the central processing unit. Record R21 is transferred. The same applies below. The capacity of the cache memory is small, so if you stage all the tracks one after another, the cache memory will quickly become full, and if you update based on the logic that the old ones will be discarded, the old data will be replaced immediately. This results in the data being discarded, forcing the user to access the disk each time the data is requested.

発明の目的 本発明は、キャッシュメモリを忽ちにして一杯にしてし
まう原因の一つに大規模な連続的レコードの読出しく順
次アクセス)にあるとの認識に立ち、そして順次アクセ
スの場合、あるトランク上のレコードをアクセスすると
再びそのレコードをアクセスする確率は極めて低いとい
う経験上の事実により、順次アクセスなら、最後のレコ
ードまで中央処理装置から転送要求のあったトラックの
キャッシュメモリ上レコード群は次回等、近未来の廃棄
対象としこれによりキャッシュメモリの有効利用を図る
、特に力弓る制御を可能とするための順次アクセスを検
出する方法を提供しようとするものである。
OBJECTS OF THE INVENTION The present invention is based on the recognition that one of the causes of cache memory filling up quickly is the reading of large-scale continuous records (sequential access). Due to the empirical fact that once the record above is accessed, the probability of accessing that record again is extremely low.If the record is accessed sequentially, the group of records in the cache memory of the track for which the central processing unit has requested transfer will be processed next time, etc. until the last record is accessed. The purpose of this paper is to provide a method for detecting sequential accesses, which will be discarded in the near future, thereby making effective use of cache memory, and in particular enabling efficient control.

発明の構成 本発明は中央処理装置、多数のトラックを有し各トラン
クに複数のレコードを有する磁気ディスク装置、及びキ
ャッシュメモリを備え、中央処理装置が成るレコードを
要求し、それがキャッシュメモリ上にあれば、キャッシ
ュメモリから転送し、なければ磁気ディスク装置をアク
セスして当該レコードがあるトラックを読出し、該トラ
ックの全レコードをキャッシュメモリヘステージングす
ると共に要求されたレコードを中央処理装置へ転送する
磁気ディスクサブシステムにおける順次アクセス検出方
法において、中央処理装置が要求するレコードに関する
情報をトラック別に記録するテーブルを設け、該テーブ
ルに中央処理装置から要求があったレコードの番号の最
新のものを記録するとともに、このレコードが存在する
トラックに対して順次アクセスされたことを示すフラグ
を立て、中央処理装置が成るレコードを要求するときそ
のレコード番号を前記テーブル上のレコード番号と比較
して連続性を調べ、連続性が検出されれば該テーブル上
の該フラグをセントしたままとし非連続性が検出されれ
ば該フラグは落とし、更にトラック間に跨って順次アク
セスされていることを検出すれば先にアクセスされたト
ラックはキャッシュメモリにおける解放対象に指定する
ことを特徴としたが、次に実施例を参照しながらこれを
詳細に説明する。
DESCRIPTION OF THE INVENTION The present invention comprises a central processing unit, a magnetic disk drive having a large number of tracks and a plurality of records in each trunk, and a cache memory, and the central processing unit requests a record and stores it on the cache memory. If there is, it is transferred from the cache memory, otherwise it accesses the magnetic disk device, reads the track where the record is located, stages all the records in the track to the cache memory, and transfers the requested record to the central processing unit. In a sequential access detection method in a disk subsystem, a table is provided for recording information regarding records requested by the central processing unit for each track, and the latest record number requested by the central processing unit is recorded in the table. , sets a flag indicating that the track in which this record exists has been accessed sequentially, and when the central processing unit requests the record, the record number is compared with the record number on the table to check for continuity; If continuity is detected, the flag on the table remains set, if discontinuity is detected, the flag is dropped, and if sequential access across tracks is detected, the flag is accessed first. This feature is characterized in that tracks that have been released are designated as targets for release in the cache memory, which will now be described in detail with reference to embodiments.

発明の実施例 第1図はキャッシュメモリを持つディスクザブシステム
の構成を示し、CPUは前述の中央処理装置、DKUは
磁気ディスク装置、DCはディスクキャッシュメモリで
ある。図面ではDKUは1つのみ示すが、大型システム
では複数個あり、複数のボストCPUがこれらのDKU
を使用するのが普通である。キャッシュメモリDCの容
量は例えばIMB、)ランクで言って200トラック分
であるが、複数のホストが共用するので1ホスト当りで
は可成り小容量である。DKCは磁気ディスク制御装置
、CHはチャオルで、これらは複数用いられ、どの系統
からもディスクDKU及びキャッシュメモリDCをアク
セスできるようにされる。
Embodiment of the Invention FIG. 1 shows the configuration of a disk subsystem having a cache memory, where CPU is the aforementioned central processing unit, DKU is a magnetic disk unit, and DC is a disk cache memory. Although only one DKU is shown in the drawing, there are multiple DKUs in a large system, and multiple boss CPUs are connected to these DKUs.
It is common to use . The capacity of the cache memory DC is, for example, 200 tracks in IMB (IMB) ranks, but since it is shared by a plurality of hosts, the capacity per host is quite small. DKC is a magnetic disk controller, CH is a chaol, and a plurality of these are used so that the disk DKU and cache memory DC can be accessed from any system.

ディスク制御装置DKCはディスクDKUを制御し、デ
ータをDKUからCHへまたCHからDKUへ転送する
。またそれと同時にキャッシュメモリDCに対してデー
タ転送を行なう。ディスクDKUから読出したデータを
キャッシュメモリDCに複写することをステージングと
呼び、これば前述のようにCPUから要求されたデータ
がキャッシュメモリDCにない場合にトラック単位で行
なわれる。CP’Uから要求されたデータがDC上に存
在する場合は、DKUをアクセスすることなく該DCよ
りCPUへ当該データを転送する。
The disk controller DKC controls the disk DKU and transfers data from the DKU to the CH and from the CH to the DKU. At the same time, data is transferred to the cache memory DC. Copying data read from the disk DKU to the cache memory DC is called staging, and is performed track by track when the data requested by the CPU is not in the cache memory DC, as described above. If the data requested by the CPU'U exists on the DC, the data is transferred from the DC to the CPU without accessing the DKU.

キャッシュメモリDCはDKUの複数のトラックのデー
タを格納できる容量を持ち、そのトランクデータに\で
は単にトランクともいう)を管理するテーブルを持って
いる。DCが一杯になったとき、更にトランクを格納す
るには該DC内の適宜のトラックを解放し、新らしいト
ランクをステージングする余地を作るが、これに通常用
いられる論理はL RU (Least Recent
ly Used )アルゴリズムであり、最も古くアク
セスされたトラックが解放される。しかしこの方法では
DC容量を越えるトラック本数が一度にアクセスされる
とDC上の他の全トランクが追い出され、残るは今回ア
クセス分のみとなってしまう。実際の計算機システムで
はこれは主に大規模順次アクセスによってもたらされる
。従って本発明では順次アクセスを検出し、当該アクセ
スが順次アクセスと分るとアクセス済みトランクは次回
の解放対象とする。
The cache memory DC has a capacity to store data of a plurality of tracks of the DKU, and has a table for managing trunk data (also simply referred to as trunk). When a DC is full, the logic typically used to store more trunks is to free up appropriate tracks within the DC to make room for staging new trunks.
ly Used ) algorithm, and the oldest accessed track is released. However, with this method, if the number of tracks exceeding the DC capacity is accessed at once, all other trunks on the DC will be evicted, leaving only the trunks accessed this time. In actual computer systems, this is mainly achieved by large-scale sequential access. Therefore, in the present invention, sequential access is detected, and when the access is found to be sequential, the accessed trunk is set as a target for next release.

このようにすれば大規模順次アクセスでもキャッシュメ
モリの2トランク分の記憶領域を交互使用するだけとな
り、古いが必要なデータをCDから追放することが避け
られる。
In this way, even in large-scale sequential access, only the storage areas of two trunks of the cache memory are used alternately, and it is possible to avoid erasing old but necessary data from the CD.

本発明の順次アクセス検出要領を第2図、第3図で説明
するに、第2図は連続した2つのトラックTRI、TR
2の形式を示し、印はトラックの基点、R11,R12
,・・・・・・は前述のレコードを示す。第3図はキャ
ッシュメモリを管理するテーブルを示し、図示のように
本発明ではトラックアドレス、シーケンシャルフラグ、
最終レコードアクセスフラグ、最終レコード番号の各項
目からなる行の複数個で構成する。各行L1〜Lnの配
列順はLRUアルゴリズムによる。「トランクアドレス
」は、磁気ディスクのトラックのアドレスであり、CP
Uがアクセス時に発行したものである。「シーケンシャ
ルフラグ」は、CPUのディスクアクセスがあり当該デ
ィスクのトラックがDCにステージングされた時点で一
応(この時点ではシーケンシャルか否かは分らないが)
セットされる。この時同時にCPUが要求したレコード
の番号が「最終アクセスレコード番号」の項目に格納さ
れる。勿論この時点でば「最終アクセス」か否か分らな
いが、アクセス毎に更新するから結果的に最終アクセス
レコード番号を表示することになる。
The sequential access detection method of the present invention will be explained with reference to FIGS. 2 and 3. FIG. 2 shows two consecutive tracks TRI and TR.
2 format, the mark is the base point of the track, R11, R12
, . . . indicate the aforementioned records. FIG. 3 shows a table for managing cache memory, and as shown in the figure, in the present invention, track addresses, sequential flags,
It consists of multiple lines consisting of the last record access flag and last record number items. The arrangement order of each row L1 to Ln is based on the LRU algorithm. The "trunk address" is the address of the track on the magnetic disk, and the CP
This was issued by U upon access. The "sequential flag" is activated when the CPU accesses the disk and the tracks of the disk are staged on the DC (at this point, it is not known whether it is sequential or not).
Set. At this time, the number of the record requested by the CPU is stored in the "last access record number" field. Of course, at this point, it is not known whether it is the "last access" or not, but since it is updated every time the access is made, the final access record number will be displayed as a result.

CPUアクセスに対する処理は先ずDC上で実行され、
該レコード番号が調べられる。上記のDC適所に格納し
たレコード番号がR11、今度のCPUアクセス対象の
レコード番号がR12であると、アクセスはシーケンシ
ャルであるからシーケンシャルフラグはりセントしない
。しかし今回のCPUアクセスレコード番号がR,13
などであるとアクセスはシーケンシャルでないからシー
ケンシャルフラグをリセットする。いずれの場合も当該
レコード番号R12またはR13などを「最終アクセス
レコード番号」へ格納する。若し今回CPUアクセスレ
コード番号がR21など他のトラックにあるものである
と、ディスクアクセス等が行なわれ、第3図のテーブル
では新たな行が起され(トラックTR2はまだアクセス
されていないとして)、当該行に所要事項が書込まれる
。また「最終レコードアクセスフラグ」はトラックの最
後のレコードがアクセスされたときセットされる。
Processing for CPU access is first executed on the DC,
The record number is examined. If the record number stored in the appropriate DC location is R11 and the record number to be accessed by the CPU this time is R12, the sequential flag will not be set because the access is sequential. However, this time the CPU access record number is R,13
etc., the access is not sequential, so the sequential flag is reset. In either case, the record number R12 or R13 is stored in the "last access record number". If the current CPU access record number is in another track such as R21, a disk access etc. will be performed and a new row will be created in the table of FIG. 3 (assuming that track TR2 has not been accessed yet). , the required information is written on the relevant line. Further, the "last record access flag" is set when the last record of the track is accessed.

今1−ラックTRIのレコードR11がアクセスされ、
それはキャッシュメモリDC上に存在しないとすると、
ディスクがアクセスされ、トランクTRIの全レコード
が読出されてキャッシュメモリDCヘステーシングされ
かつそのうちのレコードR11がチャネルCHを通して
CPUへ送られる。また管理テーブルにはトラックTR
l0行がフラグ−1、最終レコードアクセスフラグ−〇
、最終アクセスレコード番号−1とナル。cPUが続い
てレコードR12を要求すると、これは先程記憶した最
終アクセスレコード番% (−1) ニ+1したものと
等しいがら順次アクセスであると認められ、シーケンシ
ャルフラグはそのま−1、最終アクセスレコード番号ば
2に更新される。またレコードR12はDCがらCPU
へ転送される。
Now record R11 of 1-rack TRI is accessed,
Assuming it does not exist on the cache memory DC,
The disk is accessed, all records of the trunk TRI are read and cached to the cache memory DC, and record R11 of them is sent to the CPU through the channel CH. Also on the management table is the track TR.
Line 10 is flag-1, final record access flag-○, final access record number-1, and null. When the cPU subsequently requests record R12, it is recognized as a sequential access although it is equal to the last access record number % (-1) 2 + 1 stored earlier, and the sequential flag remains -1 and the last access record is The number is updated to 2. Also, record R12 is a DC CPU
will be forwarded to.

次のCPTJ要求レコードはR13であるとすると、こ
れば2+1に等しいがらやはり順次アクセスと認められ
て上記と同様な処理が行なわれ、そしてR13はトラン
ク最終レコードとするとDCのテーブルでは最終レコー
ドアクセスフラグが1にセントされる。
Assuming that the next CPTJ request record is R13, which is equal to 2+1, it is still recognized as sequential access and the same processing as above is performed, and if R13 is the last trunk record, the last record access flag is flagged in the DC table. is converted to 1 cent.

次にトランクTR2上のレコードが要求され、これはD
C上に存在しない場合を考える。キャッシュメモリ制御
機構はトラック番号を−1してその直前のトラック本例
ではTRIの状態を調べ、それがテーブル上にありかつ
シーケンシャルフラグ−1、最終レコードアクセスフラ
グ−1であれば、I−ランクTR1は順次アクセスで通
過し更に該順次アクセスはトラックTR2に入ってきた
と判断してDC上のTRIの全レコードおよびテーブル
上の当該行を解放する(次回または次々回等、近未来に
追い出す対象とする)。
The record on trunk TR2 is then requested, which is D
Consider the case where it does not exist on C. The cache memory control mechanism subtracts the track number by 1 and checks the status of the immediately preceding track (in this example, TRI). If it is on the table, has a sequential flag of -1, and a last record access flag of -1, it is assigned an I-rank. TR1 is accessed sequentially, and it is determined that the sequential access has entered track TR2, and all records of TRI on DC and the row in question on the table are released. ).

順次アクセスはl・ラックTR1,TR2,TR3、・
・・・・・と多数トランクに亘って行なわれることがし
ばしばあるから、上記のトラック1rR2のレコードが
順次アクセスされたとき当該トラックTR2の全レコー
ドだけでなく次のトラックTR3の全レコードもDCに
プリステージングすると、予想通り該TR3のレコード
も順次アクセスされるとき、アクセス時間減少に効果的
である。このような場合は上記のように解放対象とした
TRIのDC上格納領域にTR3を格納するとよい。
Sequential access is to racks TR1, TR2, TR3, etc.
This is often done over many trunks, so when the records of track 1rR2 mentioned above are accessed sequentially, not only all the records of the track TR2 but also all the records of the next track TR3 are stored in the DC. Prestaging is effective in reducing access time when records in TR3 are accessed sequentially as expected. In such a case, it is preferable to store TR3 in the storage area on the DC of the TRI targeted for release as described above.

発明の詳細 な説明したように本発明によれば大容量の順次アクセス
でもキャッシュメモリ上の記憶領域を殆んど消費しない
のでキャッシュ、メモリ上の他のデータを追い出さず、
このためヒント率(DC上にデータがある割合)を高め
ることができ、高速アクセスを保証することができる。
As described in detail, according to the present invention, the storage area on the cache memory is hardly consumed even when large-capacity sequential access is performed, so other data on the cache and memory is not evicted.
Therefore, the hint rate (rate of data on the DC) can be increased, and high-speed access can be guaranteed.

また順次アクセスを検出することによりプリステージン
グまたはブリフェッチが可能となり、順次アクセスに対
するディスクシステムの性能を向上させることができる
Furthermore, by detecting sequential access, prestaging or pre-fetching becomes possible, and the performance of the disk system for sequential access can be improved.

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

第1図はキャッシュメモリ付き磁気ディスクメモリシス
テムの構成を示すブロック図、第2図はディスク上のレ
コードの説明図、第3図は本発明で用いるテーブルの説
明図である。 図面でCPUは中央処理装置、DKUは磁気ディスク装
置、DCはキャッシュメモリ、TRI。 T食2.は1〜ランク、R11,R12、・・・・・・
はレコードである。 出願人 富士通株式会社 代理人弁理士 青 柳 稔 第1図 第2図 T咽 R11R−+2 R13
FIG. 1 is a block diagram showing the configuration of a magnetic disk memory system with cache memory, FIG. 2 is an explanatory diagram of records on the disk, and FIG. 3 is an explanatory diagram of a table used in the present invention. In the drawing, CPU is a central processing unit, DKU is a magnetic disk device, DC is a cache memory, and TRI. T meal 2. is 1~rank, R11, R12,...
is a record. Applicant Fujitsu Ltd. Representative Patent Attorney Minoru Aoyagi Figure 1 Figure 2 T-throat R11R-+2 R13

Claims (1)

【特許請求の範囲】 中央処理装置、多数のトランクを有し各トラックに複数
のレコードを有する磁気ディスク装置、及びキャッシュ
メモリを備え、中央処理装置が成るレコードを要求し、
それがキャッシュメモリ上にあれば、キャッシュメモリ
から転送し、なければ磁気ディスク装置をアクセスして
当該レコードがあるトラックを読出し、該トラックの全
レコードをキャソシュメモリヘステージングすると共に
要求されたレコードを中央処理装置へ転送する磁気ディ
スクザブシステムにおける順次アクセス検出方法におい
て、 中央処理装置が要求するレコードに関する情報をトラッ
ク別に記録するテーブルを設け、該テーブルに中央処理
装置から要求があったレコードの番号の最新のものを記
録するとともに、このレコードが存在するトランクに対
して順次アクセスされたことを示すフラグを立て、 中央処理装置が成るレコードを要求するときそのレコー
ド番号を前記テーブル上のレコード番号と比較して連続
性を調べ、連続性が検出されれば該テーブル上の該フラ
グをセットしたままとし非連続性が検出されれば該フラ
グは落とし、更にトランク間に跨って順次アクセスされ
ていることを検出すれば先にアクセスされたトラックは
キャッシュメモリにおける解放対象に指定することを特
徴とした磁気ディスク装置の順次アクセス検出方法。
[Scope of Claims] A central processing unit, a magnetic disk device having a large number of trunks and a plurality of records in each track, and a cache memory, the central processing unit requests a record,
If it is on the cache memory, it is transferred from the cache memory; if it is not, it accesses the magnetic disk device to read the track where the record is located, stages all the records in the track to the cache memory, and centralizes the requested record. In a sequential access detection method in a magnetic disk subsystem that transfers data to a processing unit, a table is provided in which information regarding records requested by the central processing unit is recorded for each track, and the latest record number requested by the central processing unit is recorded in the table. It also sets a flag to indicate that the trunk on which this record exists was sequentially accessed, and when the central processing unit requests the record, it compares the record number with the record number on the table. If continuity is detected, the flag on the table is left set; if discontinuity is detected, the flag is dropped, and furthermore, it is checked that the trunks are sequentially accessed across the trunks. A sequential access detection method for a magnetic disk device, characterized in that, if detected, the previously accessed track is designated as a release target in a cache memory.
JP58152859A 1983-08-22 1983-08-22 Sequential access detecting method of magnetic disk device Granted JPS6045855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58152859A JPS6045855A (en) 1983-08-22 1983-08-22 Sequential access detecting method of magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58152859A JPS6045855A (en) 1983-08-22 1983-08-22 Sequential access detecting method of magnetic disk device

Publications (2)

Publication Number Publication Date
JPS6045855A true JPS6045855A (en) 1985-03-12
JPS6351297B2 JPS6351297B2 (en) 1988-10-13

Family

ID=15549680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58152859A Granted JPS6045855A (en) 1983-08-22 1983-08-22 Sequential access detecting method of magnetic disk device

Country Status (1)

Country Link
JP (1) JPS6045855A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6423355A (en) * 1987-07-02 1989-01-26 Ibm Cache memory management
JPS6455659A (en) * 1987-08-26 1989-03-02 Nec Corp Buffer selection system
JPH03164840A (en) * 1989-08-29 1991-07-16 Microsoft Corp Method and system for optimizing data caching in disk-base computer system
JPH0863398A (en) * 1994-08-26 1996-03-08 Nec Corp Input/output cache
JPH09231012A (en) * 1996-02-22 1997-09-05 Nec Corp Volume copy system between direct access type external storage devices
WO2005091146A1 (en) * 2004-03-24 2005-09-29 Matsushita Electric Industrial Co., Ltd. Cache memory and control method thereof
US7953935B2 (en) 2005-04-08 2011-05-31 Panasonic Corporation Cache memory system, and control method therefor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58155464A (en) * 1981-11-27 1983-09-16 ストレ−ジ・テクノロジ−・コ−ポレ−シヨン Detection of sequential data stream

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58155464A (en) * 1981-11-27 1983-09-16 ストレ−ジ・テクノロジ−・コ−ポレ−シヨン Detection of sequential data stream

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6423355A (en) * 1987-07-02 1989-01-26 Ibm Cache memory management
JPH0574102B2 (en) * 1987-07-02 1993-10-15 Ibm
JPS6455659A (en) * 1987-08-26 1989-03-02 Nec Corp Buffer selection system
JPH03164840A (en) * 1989-08-29 1991-07-16 Microsoft Corp Method and system for optimizing data caching in disk-base computer system
JPH0863398A (en) * 1994-08-26 1996-03-08 Nec Corp Input/output cache
JPH09231012A (en) * 1996-02-22 1997-09-05 Nec Corp Volume copy system between direct access type external storage devices
WO2005091146A1 (en) * 2004-03-24 2005-09-29 Matsushita Electric Industrial Co., Ltd. Cache memory and control method thereof
US7953935B2 (en) 2005-04-08 2011-05-31 Panasonic Corporation Cache memory system, and control method therefor

Also Published As

Publication number Publication date
JPS6351297B2 (en) 1988-10-13

Similar Documents

Publication Publication Date Title
US4974156A (en) Multi-level peripheral data storage hierarchy with independent access to all levels of the hierarchy
US6192450B1 (en) Destage of data for write cache
JP3697149B2 (en) How to manage cache memory
US6941423B2 (en) Non-volatile mass storage cache coherency apparatus
US5551002A (en) System for controlling a write cache and merging adjacent data blocks for write operations
US7010645B2 (en) System and method for sequentially staging received data to a write cache in advance of storing the received data
US5991775A (en) Method and system for dynamic cache allocation between record and track entries
US5627990A (en) Management system for a hierarchical data cache employing preemptive cache track demotion and restaging to adapt to access patterns
US5530829A (en) Track and record mode caching scheme for a storage system employing a scatter index table with pointer and a track directory
EP0080876B1 (en) Cache control method and apparatus
US6119209A (en) Backup directory for a write cache
US4466059A (en) Method and apparatus for limiting data occupancy in a cache
US5481691A (en) Cache page replacement using sequential LIFO and non-sequential LRU cast out
US6877065B2 (en) Advanced read cache management
US6327644B1 (en) Method and system for managing data in cache
US5983319A (en) Information recording and reproduction apparatus and a method of data caching including read-ahead capability
JPH0571976B2 (en)
US5420983A (en) Method for merging memory blocks, fetching associated disk chunk, merging memory blocks with the disk chunk, and writing the merged data
JPS619722A (en) Apparatus for rearranging page with track in disc memory
US5694570A (en) Method and system of buffering data written to direct access storage devices in data processing systems
JP3113353B2 (en) Rotating memory system
JPS6045855A (en) Sequential access detecting method of magnetic disk device
JPS6326417B2 (en)
JPH06175894A (en) Method and system for retrieving nonspecific data in data processing system
US20060031639A1 (en) Write unmodified data to controller read cache