JPH02227754A - Disk cache control system - Google Patents
Disk cache control systemInfo
- Publication number
- JPH02227754A JPH02227754A JP1046540A JP4654089A JPH02227754A JP H02227754 A JPH02227754 A JP H02227754A JP 1046540 A JP1046540 A JP 1046540A JP 4654089 A JP4654089 A JP 4654089A JP H02227754 A JPH02227754 A JP H02227754A
- Authority
- JP
- Japan
- Prior art keywords
- disk
- writing
- data
- cache
- disk cache
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 38
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はディスクキャッシュの制御に係り、特に書き込
み時のアクセス時間も短縮し、かつ書き込みデータの保
全性を維持するに好適な制御方式〔従来の技術〕
従来の書き込み方式は、特開昭55−154649号に
記載のように磁気ディスクにあるファイルに書き込みを
する際に、ディスクキャッシュに書き込むと同時に同一
データを磁気ディスクに書き込む方式(ライトスルー方
式)となっていた。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to disk cache control, and in particular is a control method suitable for shortening the access time during writing and maintaining the integrity of written data. [Technology] Conventional writing methods, as described in Japanese Patent Laid-Open No. 154649/1982, write the same data to the magnetic disk at the same time as writing to the disk cache when writing to a file on a magnetic disk (write-through). method).
又、書き込み時間を短縮する方式として、特開昭55−
43685号に記載のようにディスクキ、ヤツシュに書
き込みが終了すると次の処理へ進む方式(ライトバック
方式)となっていた。In addition, as a method to shorten the writing time,
As described in No. 43685, when writing to the disk is completed, the process proceeds to the next step (write-back method).
上記従来技術は磁気ディスクへの書き込みをする際にデ
ィスクキャッシュへの書き込みと磁気ディスクへの書き
込みを同時に行ない、その両方が終了することで書き込
み処理を終了とし次の処理に移る方式(ライトスルー方
式)としているが、磁気ディスクへの書き込みが終了し
ないと次の入出力処理へ進めない為、ディスクキャッシ
ュへの書き込みが速くても、入出力処理時間としてはデ
イスクキャッシュの無い方式と同じであり、ディスクキ
ャッシュの高速アクセスというメリットが生かされてい
ない。In the above conventional technology, when writing to a magnetic disk, writing to the disk cache and writing to the magnetic disk are performed at the same time, and when both are completed, the writing process ends and the process moves on to the next process (write-through method). ), but the next input/output process cannot proceed until the writing to the magnetic disk is completed, so even if writing to the disk cache is fast, the input/output processing time is the same as a method without disk cache. The advantage of high-speed access of disk cache is not being taken advantage of.
又、書き込み時間を短縮する方法としてディスクキャッ
シュにのみ先に書き込みを行ない、書き込みを終了とし
て次の処理を行ない、一定時間後ディスクキャッシュか
ら磁気ディスクへ書き込みをする方式(ライトバック方
式)もあるが、ディスクキャッシュ書き込み後でかつ磁
気ディスク書き込みが未完の時点で電源障害が発生する
と、ディスクキャッシュの内容が消失し、書き込み完了
と判断したデータが磁気ディスクに残っていないため、
データの保全性に問題がある。Also, as a method to shorten the write time, there is a method (write-back method) in which the data is written only to the disk cache first, the writing is completed, the next processing is performed, and after a certain period of time the data is written from the disk cache to the magnetic disk. If a power failure occurs after writing to the disk cache but before writing to the magnetic disk is complete, the contents of the disk cache will be lost and the data that was determined to have been written will no longer remain on the magnetic disk.
There is a problem with data integrity.
本発明の目的は書き込み時間を短縮し、かつデータの保
全性を維持することのできるディスクキャッシュ制御方
式を提供することにある。An object of the present invention is to provide a disk cache control method that can shorten write time and maintain data integrity.
上記目的は、磁気ディスクへの書き込みをする際ディス
クキャッシュに書き込むと同時に同一データを磁気ディ
スクに書き込みを行ない、かつディスクキャッシュへの
書き込みが終了した時点で書き込み処理を終了として次
の処理を開始するような制御を行なうことにより、達成
される。The above purpose is to write the same data to the magnetic disk at the same time as writing to the disk cache when writing to the magnetic disk, and to end the write process and start the next process when the write to the disk cache is completed. This is achieved by performing such control.
書き込み処理は、磁気ディスクへの書き込みとディスク
キャッシュへの書き込みを同時に開始しディスクキャッ
シュへの書き込みが終了すると、書き込み処理終了とし
て次の処理が、書き込みか読み出し要求かを判定する。In the write process, writing to the magnetic disk and writing to the disk cache are started at the same time, and when the write to the disk cache is completed, it is determined that the write process is completed and whether the next process is a write request or a read request.
書き込み要求であれば前の磁気ディスクへの書き込み処
理終了を待つ。If it is a write request, it waits until the writing process to the previous magnetic disk is completed.
読み出し要求であれば、ディスクキャッシュに要求され
たデータが存在するか否かの判定を行ない存在しなけれ
ば前の磁気ディスクへの書き込み処理終了を待つ。存在
すればデータの読み出し処理をして次の処理を続ける。If it is a read request, it is determined whether or not the requested data exists in the disk cache, and if the requested data does not exist, it waits for the completion of the write process to the previous magnetic disk. If it exists, read the data and continue with the next process.
すなわちディスクキャッシュに存在するデータの読み出
し要求は、前の磁気ディスクへの書き込み処理が終了す
るまで続けられる。That is, a request to read data existing in the disk cache continues until the writing process to the previous magnetic disk is completed.
以上のような制御を行なうことで磁気ディスクへの書き
込み中であってもディスクキャッシュに存在するデータ
の読み出し処理は前の書き込み処理がディスクキャッシ
ュに対して行なわれたすぐ後に行なわれるため、ディス
クキャッシュアクセスの高速性が、書き込み時にも発揮
され全体の入出力時間の短縮がなされる。By performing the above control, even if data is being written to the magnetic disk, reading processing of data existing in the disk cache will be performed immediately after the previous writing processing has been performed on the disk cache, so the disk cache High-speed access is also achieved during writing, reducing overall input/output time.
(実施例〕 以下、本発明の一実施例を詳細に説明する。(Example〕 Hereinafter, one embodiment of the present invention will be described in detail.
第1図は、本発明をディスクキャッシュシステムに適用
した場合の処理手順の一実施例を示すフローチャートで
あり、第2図は、本発明に係るディスクキャッシュシス
テムの構成を示すブロック図である。FIG. 1 is a flowchart showing an example of a processing procedure when the present invention is applied to a disk cache system, and FIG. 2 is a block diagram showing the configuration of the disk cache system according to the present invention.
第2図において、1は入出力制御部を持つ中央処理装置
であり、データの読み出し/書き込み要求を行なう。2
は高速半導体メモリからなるディスクキャッシュであり
、磁気ディスクと同一のデータの一部を有している。3
は記録ヘッドを持つ磁気ディスクであり、中央処理装置
の要求するデータの全てを有している。4は制御装置で
、2及び3からのデータの取り出し、記録、検査2判断
及びこれらの機器の動作制御を司どるものであり、内部
に格納されたプログラムに従って2及び3の機器の動作
を制御する。In FIG. 2, reference numeral 1 denotes a central processing unit having an input/output control section, which issues data read/write requests. 2
is a disk cache made of high-speed semiconductor memory and contains some of the same data as the magnetic disk. 3
is a magnetic disk with a recording head and contains all the data required by the central processing unit. 4 is a control device which is in charge of retrieving data from 2 and 3, recording, inspection 2 judgment, and controlling the operation of these devices, and controls the operation of devices 2 and 3 according to the program stored inside. do.
次に第1図のフローチャートに基づいて第2図の各部の
動作を説明する。Next, the operation of each part shown in FIG. 2 will be explained based on the flowchart shown in FIG.
まず、中央処理装置1から読み出し/書き込み要求があ
る(ステップ101)と、制御装置4は磁気ディスク3
が書き込み処理中であるか判定(102)L、終了して
いれば通常のディスクキャッシュシステムのように読み
出し要求か書き込み要求かの判定を行ない(103)、
読み出し要求であればディスクキャッシュ2あるいは磁
気ディスク3から読み出し処理を行ない(105゜10
6)次の処理へ進む。First, when there is a read/write request from the central processing unit 1 (step 101), the control unit 4
It is determined whether the write request is in progress (102)L, and if it has been completed, it is determined whether it is a read request or a write request like a normal disk cache system (103).
If it is a read request, read processing is performed from disk cache 2 or magnetic disk 3 (105°10
6) Proceed to the next process.
書き込み要求の場合は、ディスクキャッシュ2゜磁気デ
ィスク3に同時に書き込みを開始しく107)、ディス
クキャッシュ2への書き込みが終了(108)すると次
の読み出し/書き込み要求を受け(101)、磁気ディ
スク3への書き込みが終了する(102)までディスク
キャッシュ2からの読み出しく111)をくり返す。In the case of a write request, writing to the disk cache 2 and magnetic disk 3 is started simultaneously (107), and when writing to the disk cache 2 is completed (108), the next read/write request is received (101) and the data is transferred to the magnetic disk 3. The reading from the disk cache 2 (111) is repeated until the writing is completed (102).
次の処理が書き込み要求(109)もしくは、読み出し
たいデータがディスクキャッシュ2にない場合(110
)は、前の磁気ディスク3への書き込み処理が終了する
まで次の処理はウェイトされる。The next process is a write request (109), or if the data you want to read is not in disk cache 2 (110)
), the next process waits until the previous write process to the magnetic disk 3 is completed.
本発明によれば、磁気ディスクへの書き込み時間を利用
して、それ以降の処理であるディスクキャッシュからの
読み出し処理を行うため、入出力処理時間短縮の効果が
ある。この場合書き込みの次の処理として書き込みある
いは磁気ディスクからの読み出し処理の要求があると処
理は中断される。しかしながら読み出しの要求は書き込
みに比べ数倍多く、また読み出したいデータがディスク
キャッシュに存在する確率は極めて高いというディスク
キャッシュシステムの性質を考えると十分な効果が期待
できる。According to the present invention, since the writing time to the magnetic disk is used to perform the subsequent processing of reading from the disk cache, there is an effect of shortening the input/output processing time. In this case, if there is a request for writing or reading from the magnetic disk as a process subsequent to writing, the process is interrupted. However, considering the nature of the disk cache system, in which read requests are several times more numerous than write requests, and the probability that the data to be read exists in the disk cache is extremely high, a sufficient effect can be expected.
データの保全性の面からも磁気ディスクへの書き込み要
求の都度磁気ディスクへの書き込み処理を行なっている
ため、電源障害時に書き込み中のデータのみを損失する
だけで済むので従来の磁気ディスクと同等の信頼性を確
保している。From the perspective of data integrity, the process of writing to the magnetic disk is performed each time a write request is made to the magnetic disk, so in the event of a power failure, only the data being written is lost, so it is equivalent to a conventional magnetic disk. Reliability is ensured.
第1図は本発明の処理手順の一実施例を示すフローチャ
ート、第2図は本発明に係るディスクキャッシュシステ
ムのブロック図である。
1・・・中央処理装置、2・・・ディスクキャッシュ、
3・・・磁気ディスク、4・・・制御装置。FIG. 1 is a flow chart showing an embodiment of the processing procedure of the present invention, and FIG. 2 is a block diagram of a disk cache system according to the present invention. 1...Central processing unit, 2...Disk cache,
3... Magnetic disk, 4... Control device.
Claims (1)
キャッシュより成るディスクキャッシュシステムであつ
て、磁気ディスクのフアイルへの書き込み処理を磁気デ
ィスクとデイスクキヤツシユへ並列に行なうライトスル
ー方式を採るものにおいて、デイスクキヤツシユへの書
き込みが終了した時点で書き込み処理が終了したと判定
し、その時点から磁気デイスクへの書き込みが終了する
までの時間はディスクキャッシュからの読み出しが可能
となるように制御を行うことを特徴とするディスクキャ
ッシュ制御方式。1. In a disk cache system consisting of a magnetic disk connected to a central processing unit and a disk cache, which employs a write-through method in which writing to files on the magnetic disk is performed in parallel to the magnetic disk and disk cache, It is determined that the write process has ended when writing to the disk cache is completed, and the time from that point until the end of writing to the magnetic disk is controlled so that reading from the disk cache is possible. A disk cache control method featuring:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1046540A JPH02227754A (en) | 1989-03-01 | 1989-03-01 | Disk cache control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1046540A JPH02227754A (en) | 1989-03-01 | 1989-03-01 | Disk cache control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02227754A true JPH02227754A (en) | 1990-09-10 |
Family
ID=12750128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1046540A Pending JPH02227754A (en) | 1989-03-01 | 1989-03-01 | Disk cache control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02227754A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08221208A (en) * | 1995-02-15 | 1996-08-30 | Nec Corp | Data output system |
JP2006236069A (en) * | 2005-02-25 | 2006-09-07 | Seiko Epson Corp | Control system |
-
1989
- 1989-03-01 JP JP1046540A patent/JPH02227754A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08221208A (en) * | 1995-02-15 | 1996-08-30 | Nec Corp | Data output system |
JP2006236069A (en) * | 2005-02-25 | 2006-09-07 | Seiko Epson Corp | Control system |
JP4534796B2 (en) * | 2005-02-25 | 2010-09-01 | セイコーエプソン株式会社 | Control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5937427A (en) | Information recording apparatus and method capable of efficient erase, write and verify processes | |
JPH04229355A (en) | Data access method and data processing system | |
JP4461089B2 (en) | Storage control apparatus and storage control method | |
JPS62243044A (en) | Control system for disk cache memory | |
JPH02227754A (en) | Disk cache control system | |
JPH0789328B2 (en) | Data processing device | |
JP2001290607A (en) | Command queuing control method for device driver and computer system | |
JPH0793101A (en) | Data backup device | |
JP2004102440A (en) | Command-processing method, and storage device | |
JPH05151037A (en) | Reorganization processing system for database in business processing | |
JP2575231B2 (en) | How to download | |
JP2524620B2 (en) | Input / output control method | |
JPH0876940A (en) | Method for controlling disk array | |
JPS6069759A (en) | Control system for disk cache memory | |
JP2581145B2 (en) | Security processing method | |
JPH0357044A (en) | Method and device for data file advanced hierarchy control | |
JP2912046B2 (en) | File server control method | |
JPH0235542A (en) | Transfer control system for disk cache data | |
JPS6254347A (en) | Processing system for fault of file | |
JPH056296A (en) | Method for preparing continuous file in disk device | |
JPH03271823A (en) | High speed writing system for disk controller | |
JPS63273147A (en) | File input processing system | |
JPH06119219A (en) | File data precedence read-in system | |
JPH05242605A (en) | Disk control device | |
JP2000010944A (en) | Multiprocessor disk array controller |