JP2001265653A - Data processor - Google Patents
Data processorInfo
- Publication number
- JP2001265653A JP2001265653A JP2000076284A JP2000076284A JP2001265653A JP 2001265653 A JP2001265653 A JP 2001265653A JP 2000076284 A JP2000076284 A JP 2000076284A JP 2000076284 A JP2000076284 A JP 2000076284A JP 2001265653 A JP2001265653 A JP 2001265653A
- Authority
- JP
- Japan
- Prior art keywords
- cache
- data
- request
- unit
- magnetic disk
- 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
Links
- 230000003111 delayed effect Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 102100039424 Polyadenylate-binding protein 4 Human genes 0.000 description 6
- 101150053844 APP1 gene Proteins 0.000 description 4
- 101100055496 Arabidopsis thaliana APP2 gene Proteins 0.000 description 4
- 101100189105 Homo sapiens PABPC4 gene Proteins 0.000 description 4
- 101100016250 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GYL1 gene Proteins 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、外部記憶ユニッ
ト、例えばハードディスク装置を備えるデータ処理装
置、特にその外部記憶ユニットへの遅延書き込みに関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus having an external storage unit, for example, a hard disk drive, and more particularly to a delayed write to the external storage unit.
【0002】[0002]
【従来の技術】磁気ディスク装置は、メモリに比べて単
位容量当たりのコストが低いという長所を有する反面、
その機械的動作に起因してアクセス時間がメモリに比べ
て長いという短所を有する。そのため、コンピュータシ
ステムにおいては、主記憶を高価ではあるが高速の半導
体メモリにて構成し、一方、磁気ディスク装置を外部記
憶装置として用いるという階層記憶が用いられている。
階層記憶においては、メモリと磁気ディスク装置とのア
クセス速度差をディスクキャッシュ機構を用いて吸収す
ることが行われる。2. Description of the Related Art A magnetic disk drive has an advantage that the cost per unit capacity is lower than that of a memory.
There is a disadvantage that the access time is longer than that of the memory due to the mechanical operation. For this reason, computer systems use hierarchical storage in which the main memory is formed of an expensive but high-speed semiconductor memory, while the magnetic disk device is used as an external storage device.
In hierarchical storage, a difference in access speed between a memory and a magnetic disk device is absorbed by using a disk cache mechanism.
【0003】この従来より用いられているディスクキャ
ッシュは、中央処理装置を含む本体上でオペレーティン
グシステム(Operating System:OS)により提供され
る。ディスクキャッシュ機構は、磁気ディスク装置への
アクセスがあったとき、アクセスされたアドレスのデー
タのコピーを主記憶上のディスクキャッシュに記憶す
る。そして、同じアドレスへの磁気ディスクアクセス要
求があった場合、実際の磁気ディスクへはアクセスせず
にメモリ上のディスクキャッシュへの読み書きで対応す
る。但し、磁気ディスクへの書き込み要求があった場
合、実際の磁気ディスク上でのデータとディスクキャッ
シュのデータとが不整合となるため、所定のタイミング
でディスクキャッシュの内容を磁気ディスクにまとめて
書き込む動作を行う。The conventionally used disk cache is provided by an operating system (OS) on a main body including a central processing unit. The disk cache mechanism stores a copy of the data at the accessed address in the disk cache on the main memory when the magnetic disk device is accessed. Then, when a magnetic disk access request to the same address is made, the read / write to the disk cache on the memory is performed without accessing the actual magnetic disk. However, if there is a write request to the magnetic disk, the actual data on the magnetic disk will be inconsistent with the data in the disk cache. I do.
【0004】ここで、本体が不意に停止した場合には、
ディスクキャッシュの内容が磁気ディスクに反映され
ず、両者間の不整合が生じるおそれがある。そこで、O
Sのアプリケーションインターフェースにディスクキャ
ッシュを経由しないディスクI/O要求の種別を設け
て、重要なデータに関しては直接、磁気ディスク装置に
書き込むことを可能としてその保護が図られている。Here, if the main body stops unexpectedly,
There is a possibility that the contents of the disk cache are not reflected on the magnetic disk, causing inconsistency between the two. So, O
The type of disk I / O request that does not pass through the disk cache is provided in the application interface of S, and important data can be directly written to the magnetic disk device to protect it.
【0005】図5は、従来のコンピュータにおけるキャ
ッシュ制御を説明するためのブロック図である。また図
6は従来のコンピュータにおけるOSでのディスクI/
O処理のフロー図であり、キャッシュ制御を説明するた
めの図である。本体2にてOS4の上で動作するアプリ
ケーションプログラムが磁気ディスク装置6へのアクセ
スを要求した場合、その要求の種別が要求判定ロジック
8により判定される(S30)。要求判定ロジック8
は、要求種別がディスクキャッシュを経由して行う通常
I/O要求であるか、または利用せずに直接、ディスク
コントローラ10にI/O要求を出す直接アクセス要求
であるかを判定する。例えばアプリケーションプログラ
ムAPP1が出したアクセス要求が通常I/O要求であ
った場合、要求判定ロジック8での判定S30に基づい
て、OSが提供するディスクキャッシュロジック12を
介してメモリ14上のディスクキャッシュメモリとの間
でデータの読み書きが行われ(S32)、その完了を以
て、APP1にREAD/WRITE完了が通知され
(S34)、APP1からのREAD/WRITE要求
処理が終了する(S36)。また、ディスクキャッシュ
ロジック12は、所定のタイミングでメモリ14のディ
スクキャッシュの内容を磁気ディスク装置6へ反映させ
る。FIG. 5 is a block diagram for explaining cache control in a conventional computer. FIG. 6 shows a disk I / O in an OS of a conventional computer.
It is a flowchart of O processing, and is a figure for demonstrating cache control. When an application program operating on the OS 4 in the main body 2 requests access to the magnetic disk device 6, the type of the request is determined by the request determination logic 8 (S30). Request judgment logic 8
Determines whether the request type is a normal I / O request made via a disk cache or a direct access request that issues an I / O request directly to the disk controller 10 without using it. For example, if the access request issued by the application program APP1 is a normal I / O request, the disk cache memory on the memory 14 via the disk cache logic 12 provided by the OS based on the determination S30 in the request determination logic 8. Reading and writing of data are performed between these steps (S32), and upon completion of this, APP1 is notified of the completion of READ / WRITE (S34), and the processing of the READ / WRITE request from APP1 ends (S36). The disk cache logic 12 reflects the contents of the disk cache in the memory 14 to the magnetic disk device 6 at a predetermined timing.
【0006】一方、例えばアプリケーションプログラム
APP2が出したアクセス要求が直接アクセス要求であ
った場合、要求判定ロジック8での判定S30に基づい
て、OSはディスクコントローラ10へ直接にI/O要
求を出して、APP2と磁気ディスク装置6との間の直
接のデータの読み書きを実現する(S38)。そしてそ
の完了を以て、APP2にREAD/WRITE完了が
通知され(S34)、APP2からのREAD/WRI
TE要求処理が終了する(S36)。On the other hand, for example, when the access request issued by the application program APP2 is a direct access request, the OS issues an I / O request directly to the disk controller 10 based on the determination S30 in the request determination logic 8, and Data is directly read and written between the APP 2 and the magnetic disk device 6 (S38). Upon the completion, the completion of READ / WRITE is notified to APP2 (S34), and the READ / WRITE from APP2 is notified.
The TE request process ends (S36).
【0007】[0007]
【発明が解決しようとする課題】従来は、上述のように
重要なデータの保護といった観点から、メモリ上のディ
スクキャッシュを利用せずに本体から直接に磁気ディス
ク装置にアクセスする場合があった。その場合、本体の
アプリケーションからは磁気ディスク装置への実際のア
クセス時間が見えることとなり、処理が迅速に行われな
いという問題があった。Conventionally, from the viewpoint of protecting important data as described above, there has been a case where the main unit directly accesses the magnetic disk device without using the disk cache on the memory. In this case, the actual access time to the magnetic disk device can be seen from the application of the main unit, and there is a problem that the processing is not performed quickly.
【0008】本発明は上記問題点を解消するためになさ
れたもので、本体の故障等の影響に起因して本体と磁気
ディスク装置との記憶内容に不整合が生じることを回避
しつつ、アクセス時間の低下が防止されるデータ処理装
置を提供することを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and has been made to avoid an inconsistency in the storage contents between a main unit and a magnetic disk device due to the influence of a failure of the main unit, and to prevent the access from occurring. An object of the present invention is to provide a data processing device in which a reduction in time is prevented.
【0009】[0009]
【課題を解決するための手段】本発明に係るデータ処理
装置は、記憶制御部が、記憶制御部キャッシュメモリ
と、外部記憶ユニットへ書き込み要求されたデータがメ
イン処理ユニットのキャッシュからのものか否かを判定
する判定手段と、前記判定手段により前記キャッシュか
らのものでないと判定されたデータを前記記憶制御部キ
ャッシュメモリに一時格納して前記外部記憶ユニットへ
の遅延書き込みを行う書き込み制御手段とを有するもの
である。According to the data processing apparatus of the present invention, the storage control unit determines whether the data requested to be written to the storage control unit cache memory and the external storage unit is from the cache of the main processing unit. Determination means for determining whether the data is not from the cache by the determination means, and write control means for temporarily storing the data determined to be not from the cache in the storage control unit cache memory and performing a delayed write to the external storage unit. Have
【0010】本発明に係るデータ処理装置においては、
前記判定手段が前記キャッシュから書き込み要求される
前記データがブロック単位であることに基づいて前記判
定を行うことを特徴とする。In the data processing device according to the present invention,
The determination unit makes the determination based on the fact that the data requested to be written from the cache is in block units.
【0011】本発明に係るデータ処理装置においては、
前記判定手段がさらに前記データのデータサイズを考慮
して前記判定を行うことを特徴とする。[0011] In the data processing device according to the present invention,
The determination means may perform the determination further in consideration of a data size of the data.
【0012】[0012]
【発明の実施の形態】次に、本発明の実施形態について
図面を参照して説明する。Next, embodiments of the present invention will be described with reference to the drawings.
【0013】図1は、本発明の実施の形態であるキャッ
シュ制御を説明するためのコンピュータシステムの概略
のブロック図である。本コンピュータシステムの本体5
0(メイン処理ユニット)は基本的に従来より用いられ
ているものと同様である。すなわち、OS52は図6の
フロー図と基本的に同様の処理を行い、ディスクコント
ローラ54(記憶制御部)を介して磁気ディスク装置5
6(外部記憶ユニット)との間のデータの読み書きを行
う。具体的には、OS52の上で動作するアプリケーシ
ョンプログラムが磁気ディスク装置56へのアクセスを
要求した場合、その要求の種別が要求判定ロジック58
により判定される(S30)。要求判定ロジック58
は、要求種別がディスクキャッシュを経由して行う通常
I/O要求であるか、または利用せずに直接、ディスク
コントローラ54にI/O要求を出す直接アクセス要求
であるかを判定する。例えばアプリケーションプログラ
ムAPP1が出したアクセス要求が通常I/O要求であ
った場合、要求判定ロジック58での判定S30に基づ
いて、OSが提供するディスクキャッシュロジックであ
るOSキャッシュロジック60を介してメモリ62上の
ディスクキャッシュメモリとの間でデータの読み書きが
行われ(S32)、その完了を以て、APP1にREA
D/WRITE完了が通知され(S34)、APP1か
らのREAD/WRITE要求処理が終了する(S3
6)。メモリ62のディスクキャッシュの内容は、OS
キャッシュロジック60に基づいて、所定のタイミング
で磁気ディスク装置56に対して遅延書き込みされ、そ
の内容が磁気ディスク装置56に反映される。FIG. 1 is a schematic block diagram of a computer system for explaining cache control according to an embodiment of the present invention. The main body 5 of the computer system
0 (main processing unit) is basically the same as that conventionally used. That is, the OS 52 performs basically the same processing as the flow chart of FIG. 6, and the magnetic disk device 5 via the disk controller 54 (storage control unit).
6 (external storage unit). Specifically, when an application program operating on the OS 52 requests access to the magnetic disk device 56, the type of the request is determined by the request determination logic 58.
Is determined (S30). Request determination logic 58
Determines whether the request type is a normal I / O request made via a disk cache or a direct access request that issues an I / O request directly to the disk controller 54 without using it. For example, when the access request issued by the application program APP1 is a normal I / O request, based on the determination S30 in the request determination logic 58, the memory 62 is transmitted via the OS cache logic 60, which is a disk cache logic provided by the OS. Reading and writing of data is performed with the above disk cache memory (S32), and upon completion of this, REA is transmitted to APP1.
The D / WRITE completion is notified (S34), and the READ / WRITE request processing from APP1 ends (S3).
6). The contents of the disk cache in the memory 62
Based on the cache logic 60, the data is delayed and written to the magnetic disk device 56 at a predetermined timing, and the contents are reflected on the magnetic disk device 56.
【0014】一方、例えばアプリケーションプログラム
APP2が出したアクセス要求が直接アクセス要求であ
った場合、要求判定ロジック58での判定S30に基づ
いて、OSはディスクコントローラ54へ直接にI/O
要求を出してデータの読み書きを行う(S38)。そし
てその完了を以て、APP2にREAD/WRITE完
了が通知され(S34)、APP2からのREAD/W
RITE要求処理が終了する(S36)。On the other hand, for example, when the access request issued by the application program APP2 is a direct access request, the OS sends the I / O directly to the disk controller 54 based on the determination S30 in the request determination logic 58.
A request is issued to read and write data (S38). Upon the completion, the completion of READ / WRITE is notified to APP2 (S34), and the READ / W from APP2 is notified.
The RITE request process ends (S36).
【0015】以上のように、本体50からはOS52の
制御に従って、磁気ディスク装置56への書き込み要求
が行われる。この書き込み要求はディスクコントローラ
54によって処理される。本コンピュータシステムの特
徴はこのディスクコントローラ54にある。As described above, under the control of the OS 52, the main body 50 issues a write request to the magnetic disk device 56. This write request is processed by the disk controller 54. The feature of the computer system resides in the disk controller 54.
【0016】従来のディスクコントローラ10は、OS
4から書き込み要求があると、順次、磁気ディスク装置
6にデータを書き込んでいた。これに対し、本システム
は、ディスクコントローラ54に記憶制御部キャッシュ
メモリ64を備える。ディスクコントローラ54の制御
ロジック部66は記憶制御部キャッシュメモリ64を用
いた制御を行うために、特徴判定ロジック68とコント
ローラキャッシュロジック70とを備えている。ここで
特徴判定ロジック68は、磁気ディスク装置56へ書き
込み要求されたデータがOS52のキャッシュからのも
のか否かを判定する判定手段であり、コントローラキャ
ッシュロジック70は、OS52のキャッシュからのも
のでないと判定されたデータを記憶制御部キャッシュメ
モリ64に一時格納して磁気ディスク装置56への遅延
書き込みを行う書き込み制御手段であり、これらの動作
は後述する説明により明らかとなる。The conventional disk controller 10 has an OS
When there was a write request from the disk drive 4, the data was sequentially written to the magnetic disk device 6. On the other hand, in the present system, the disk controller 54 includes a storage control unit cache memory 64. The control logic unit 66 of the disk controller 54 includes a feature determination logic 68 and a controller cache logic 70 for performing control using the storage control unit cache memory 64. Here, the feature determination logic 68 is a determination unit that determines whether the data requested to be written to the magnetic disk device 56 is from the cache of the OS 52, and the controller cache logic 70 is that the data is not from the cache of the OS 52. This is write control means for temporarily storing the determined data in the storage control unit cache memory 64 and performing a delayed write to the magnetic disk device 56, and these operations will be apparent from the following description.
【0017】図2はディスクコントローラ54における
磁気ディスク装置56への書き込み制御を説明するため
のフロー図である。制御ロジック部66は、OS52か
ら磁気ディスク装置56へのアクセス要求を受けると処
理を開始する(S80)。制御ロジック部66ではまず
特徴判定ロジック68がそのアクセス要求のパラメータ
の特徴に基づいて、当該要求がOS52にてキャッシュ
されたデータの書き込み要求であるか否かを判定する
(S82)。FIG. 2 is a flowchart for explaining the write control to the magnetic disk device 56 by the disk controller 54. The control logic unit 66 starts processing upon receiving an access request to the magnetic disk device 56 from the OS 52 (S80). In the control logic unit 66, first, the characteristic determination logic 68 determines whether the request is a write request for data cached in the OS 52 based on the characteristics of the parameters of the access request (S82).
【0018】例えばアプリケーションプログラムAPP
1の通常I/O要求に応じて、OS52にてキャッシュ
されたデータを磁気ディスク装置56へ反映させる場
合、特徴判定ロジック68での判定S82に基づいて、
制御ロジック部66は直ちにI/O要求を出して磁気デ
ィスク装置56へアクセスする(S84)。そしてその
完了を以て、OS52にREAD/WRITE完了が通
知され(S86)、OS52からのREAD/WRIT
E要求処理が終了する(S88)。For example, an application program APP
When the data cached in the OS 52 is reflected on the magnetic disk device 56 in response to one normal I / O request, based on the determination S82 in the feature determination logic 68,
The control logic unit 66 immediately issues an I / O request and accesses the magnetic disk device 56 (S84). Upon the completion, the completion of READ / WRITE is notified to the OS 52 (S86), and the READ / WRITE from the OS 52 is notified.
The E request process ends (S88).
【0019】一方、アプリケーションプログラムAPP
2の直接アクセス要求に応じて、OS52が、OS52
のキャッシュを介さずに直接、磁気ディスク装置56へ
データを書き込みことを要求した場合、特徴判定ロジッ
ク68での判定S82に基づいて、コントローラキャッ
シュロジック70を介して記憶制御部キャッシュメモリ
64との間でデータの読み書きが行われ(S90)、そ
の完了を以て、OS52にREAD/WRITE完了が
通知され(S86)、OS52からのREAD/WRI
TE要求処理が終了する(S88)。記憶制御部キャッ
シュメモリ64の内容は、コントローラキャッシュロジ
ック70に基づいて、所定のタイミングで磁気ディスク
装置56に対して遅延書き込みされ、その内容が磁気デ
ィスク装置56に反映される。On the other hand, the application program APP
OS 52 responds to the direct access request of OS 2
If the request is made to write data directly to the magnetic disk device 56 without going through the cache of the storage controller cache memory 64 via the controller cache logic 70 based on the determination S82 of the feature determination logic 68. Is read and written (S90), and upon completion, the completion of READ / WRITE is notified to the OS 52 (S86), and the read / write from the OS 52 is performed.
The TE request process ends (S88). The contents of the storage control unit cache memory 64 are written to the magnetic disk device 56 at a predetermined timing with a delay based on the controller cache logic 70, and the contents are reflected on the magnetic disk device 56.
【0020】OS52での従来のディスクキャッシュに
加えて行われる上述のようなディスクコントローラ54
でのキャッシュにより、アプリケーションプログラムが
直接アクセス要求したデータに関しては、本体50に故
障が生じても磁気ディスク装置56に反映されるととも
に、磁気ディスク装置56へのアクセス時間の短縮が図
られる。一方、OS52にてキャッシュされたデータに
関しては、そのOS52でのキャッシュによりアクセス
速度が確保されるので、ディスクコントローラ54での
キャッシュは特には必要ではない。よって、OS52に
てキャッシュされたデータに対するディスクコントロー
ラ54でのキャッシュを行わないこととすることで、記
憶制御部キャッシュメモリ64の所要量を抑制すること
ができる。The disk controller 54 as described above, which is performed in addition to the conventional disk cache in the OS 52
With the cache, the data directly requested by the application program is reflected on the magnetic disk device 56 even if a failure occurs in the main body 50, and the access time to the magnetic disk device 56 can be shortened. On the other hand, for data cached in the OS 52, the access speed is secured by the cache in the OS 52, so the cache in the disk controller 54 is not particularly necessary. Therefore, by not caching the data cached in the OS 52 by the disk controller 54, the required amount of the storage control unit cache memory 64 can be suppressed.
【0021】次に、特徴判定ロジック68について説明
する。上述したように特徴判定ロジック68はOS52
からのアクセス要求のパラメータの特徴に基づいて、当
該要求がOS52にてキャッシュされたデータの書き込
み要求であるか否かを判定する判定手段である(S8
2)。アクセス要求のパラメータとしては、磁気ディス
ク装置56でのアクセスされる領域の開始アドレス及び
データ長がある。OS52のキャッシュと磁気ディスク
装置56との読み書きに関するアクセス要求は、以下の
特徴を有している。Next, the feature determination logic 68 will be described. As described above, the feature determination logic 68
A determination unit that determines whether the request is a write request for data cached in the OS 52 based on the characteristics of the parameters of the access request from the server (S8).
2). The parameters of the access request include the start address of the area to be accessed in the magnetic disk device 56 and the data length. The access request related to reading and writing between the cache of the OS 52 and the magnetic disk device 56 has the following features.
【0022】(i)ブロック単位での要求であるため、
アクセス要求のパラメータの開始アドレスがブロックの
倍数になっている。(I) Since the request is made in block units,
The start address of the parameter of the access request is a multiple of the block.
【0023】(ii)ブロック単位での要求であるため、
アクセス要求のパラメータのデータ長がブロックの倍数
になっている。(Ii) Since the request is made in block units,
The data length of the parameter of the access request is a multiple of the block.
【0024】(iii) OS52のキャッシュの容量に応じ
たまとまったデータ量の要求であるため、アクセス要求
のパラメータのデータ長が比較的大きい。(Iii) Since the request is for a large amount of data according to the cache capacity of the OS 52, the data length of the parameter of the access request is relatively large.
【0025】図3は、磁気ディスク装置56の記憶領域
とアクセス要求の例とを示す模式図である。上記(i)
〜(iii)の特徴の全てを有する磁気ディスク装置56の
記憶領域100〜104が、OS52のキャッシュにか
かわるアクセス要求によってアクセスされるアドレス範
囲の例である。例えばブロック長は2048バイトとい
った比較的大きなサイズである。一方、上記(i)〜(i
ii)の特徴の少なくともいずれかを欠いた磁気ディスク
装置56の記憶領域110〜114が、OS52のキャ
ッシュを介さないアクセス要求によってアクセスされる
アドレス範囲の例である。FIG. 3 is a schematic diagram showing a storage area of the magnetic disk device 56 and an example of an access request. (I) above
The storage areas 100 to 104 of the magnetic disk device 56 having all of the features (i) to (iii) are examples of an address range accessed by an access request related to a cache of the OS 52. For example, the block length is a relatively large size such as 2048 bytes. On the other hand, the above (i) to (i)
The storage areas 110 to 114 of the magnetic disk device 56 lacking at least one of the characteristics ii) are examples of an address range accessed by an access request that does not pass through the cache of the OS 52.
【0026】図4は、特徴判定ロジック68の処理のフ
ロー図である。特徴判定ロジック68は、まずOS52
からのアクセス要求のパラメータが上記特徴(iii)を有
するか否かを判断し(S120)、データ長が所定の閾
値未満である場合には、OS52のキャッシュを経由し
ていないと判断する(S122)。一方、データ長が所
定の閾値以上である場合には、次に同パラメータが上記
特徴(i)を有するか否かを判断し(S124)、アク
セス開始アドレスがブロック長の倍数ではない場合に
は、OS52のキャッシュを経由していないと判断する
(S122)。一方、開始アドレスがブロック長の倍数
である場合には、次に同パラメータが上記特徴(ii)を
有するか否かを判断し(S126)、データ長がブロッ
ク長の倍数ではない場合には、OS52のキャッシュを
経由していないと判断する(S122)。一方、データ
長がブロック長の倍数である場合には、上記特徴(i)
〜(iii)の全てが満たされたこととなるので、特徴判定
ロジック68は当該アクセス要求がOS52のキャッシ
ュのデータを書き込む要求であると判断する(S12
8)。なお、図3に示す例では、条件(iii)のデータ長
の閾値は2ブロックである。FIG. 4 is a flowchart of the process of the feature determination logic 68. The feature determination logic 68 first determines whether the OS 52
It is determined whether or not the parameter of the access request from has the above characteristic (iii) (S120). If the data length is less than the predetermined threshold, it is determined that the data does not pass through the cache of the OS 52 (S122). ). On the other hand, if the data length is equal to or greater than the predetermined threshold, it is next determined whether or not the parameter has the above characteristic (i) (S124). If the access start address is not a multiple of the block length, It is determined that the data has not passed through the cache of the OS 52 (S122). On the other hand, if the start address is a multiple of the block length, then it is determined whether the parameter has the above characteristic (ii) (S126). If the data length is not a multiple of the block length, It is determined that the data does not pass through the cache of the OS 52 (S122). On the other hand, when the data length is a multiple of the block length, the above feature (i)
Since all of (iii) are satisfied, the feature determination logic 68 determines that the access request is a request to write data in the cache of the OS 52 (S12).
8). In the example shown in FIG. 3, the threshold of the data length of the condition (iii) is two blocks.
【0027】上述したように、本実施の形態では、本体
50側からのデータ書き込み要求がOS52のキャッシ
ュを介したデータに関するものか否かは、アクセス要求
のパラメータの特徴に基づいてディスクコントローラ5
4側にて判別することができる。この実施の形態では、
本体50のOS52の動作は基本的に従来と同様のまま
でよい。As described above, in the present embodiment, whether the data write request from the main unit 50 is related to data via the cache of the OS 52 or not is determined based on the characteristics of the parameter of the access request.
The determination can be made on the fourth side. In this embodiment,
The operation of the OS 52 of the main body 50 may be basically the same as the conventional one.
【0028】なお、本発明の1つの特徴は、磁気ディス
ク装置56への直接アクセス要求、すなわちOS52で
キャッシュされていないデータを磁気ディスク装置56
へ書き込む要求に対して、ディスクコントローラ54に
キャッシュする手段を設けた点にある。この特徴を有す
る構成を、従来と異なる本体OSにて実現することも可
能である。例えば、OSが、当該OSのキャッシュから
のデータに関する磁気ディスク装置56へのアクセス要
求と直接アクセス要求とを識別し得る情報をそれら各ア
クセス要求に付与し、ディスクコントローラ54では、
その識別情報に基づいて記憶制御部キャッシュメモリ6
4への一時格納を行うか否かを制御するといった構成が
可能である。One feature of the present invention is that a direct access request to the magnetic disk device 56, that is, data not cached by the OS 52 is transferred to the magnetic disk device 56.
A means for caching the disk controller 54 in response to a request to write to The configuration having this feature can be realized by a main body OS different from the conventional one. For example, the OS gives information that can identify an access request to the magnetic disk device 56 and a direct access request regarding data from the cache of the OS to each of the access requests, and the disk controller 54
Based on the identification information, the storage control unit cache memory 6
4 can be configured to control whether or not temporary storage is performed.
【0029】[0029]
【発明の効果】本発明のデータ処理装置によれば、磁気
ディスク装置等の外部記憶ユニットを制御する記憶制御
部に記憶制御部キャッシュメモリを備える。この記憶制
御部キャッシュメモリは、外部記憶ユニットへ書き込み
要求されたデータが本体OSのキャッシュからのもので
ない場合に、当該データを一時格納して外部記憶ユニッ
トへの遅延書き込みを行う。これにより、アプリケーシ
ョンプログラムが直接アクセス要求したデータに関して
は、そのデータ内容が、本体に故障等を生じた場合でも
外部記憶ユニットに反映されるとともに、外部記憶ユニ
ットへのアクセス時間の短縮が図られる。すなわち、本
発明によれば、外部記憶ユニットへの直接アクセス要求
が行われるデータの保護と、そのアクセス時間の短縮と
の双方が図られるという効果がある。According to the data processing apparatus of the present invention, the storage control unit for controlling the external storage unit such as the magnetic disk device is provided with the storage control unit cache memory. When the data requested to be written to the external storage unit is not from the cache of the main body OS, the storage control unit cache memory temporarily stores the data and performs delayed writing to the external storage unit. As a result, regarding the data directly requested by the application program, the contents of the data are reflected in the external storage unit even if a failure or the like occurs in the main body, and the access time to the external storage unit can be reduced. That is, according to the present invention, there is an effect that both protection of data for which a direct access request to the external storage unit is made and reduction of the access time can be achieved.
【図1】 本発明の実施の形態であるキャッシュ制御を
説明するためのコンピュータシステムの概略のブロック
図である。FIG. 1 is a schematic block diagram of a computer system for explaining cache control according to an embodiment of the present invention.
【図2】 ディスクコントローラにおける磁気ディスク
装置への書き込み制御を説明するためのフロー図であ
る。FIG. 2 is a flowchart for explaining write control to a magnetic disk device in a disk controller.
【図3】 磁気ディスク装置上の記憶領域とアクセス要
求の例とを示す模式図である。FIG. 3 is a schematic diagram showing a storage area on a magnetic disk device and an example of an access request;
【図4】 特徴判定ロジックの処理のフロー図である。FIG. 4 is a flowchart of a process of a feature determination logic.
【図5】 従来のコンピュータにおけるキャッシュ制御
を説明するためのブロック図である。FIG. 5 is a block diagram for explaining cache control in a conventional computer.
【図6】 従来のコンピュータにおけるOSでのディス
クI/O処理のフロー図であり、キャッシュ制御を説明
するための図である。FIG. 6 is a flowchart of a disk I / O process in an OS in a conventional computer, and is a diagram for explaining cache control.
50 本体、52 オペレーティングシステム(O
S)、54 ディスクコントローラ、56 磁気ディス
ク装置、62 メモリ、64 記憶制御部キャッシュメ
モリ、66 制御ロジック部、68 特徴判定ロジッ
ク、70 コントローラキャッシュロジック。50 main unit, 52 operating system (O
S), 54 disk controller, 56 magnetic disk device, 62 memory, 64 storage control unit cache memory, 66 control logic unit, 68 feature determination logic, 70 controller cache logic.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06F 3/06 302 G06F 3/06 302A ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06F 3/06 302 G06F 3/06 302A
Claims (3)
ニットと、オペレーティングシステムにより制御され前
記外部記憶ユニットに対し遅延書き込みを行うキャッシ
ュを備えるメイン処理ユニットとを含むデータ処理装置
において、 前記記憶制御部は、 記憶制御部キャッシュメモリと、 前記外部記憶ユニットへ書き込み要求されたデータが前
記メイン処理ユニットの前記キャッシュからのものか否
かを判定する判定手段と、 前記判定手段により前記キャッシュからのものでないと
判定されたデータを前記記憶制御部キャッシュメモリに
一時格納して前記外部記憶ユニットへの遅延書き込みを
行う書き込み制御手段と、 を有することを特徴とするデータ処理装置。1. A data processing device comprising: an external storage unit controlled by a storage control unit; and a main processing unit controlled by an operating system and provided with a cache that performs a delayed write to the external storage unit. A storage control unit cache memory; a determination unit that determines whether data requested to be written to the external storage unit is from the cache of the main processing unit; and the determination unit determines that the data is not from the cache. And a write control unit for temporarily storing the data determined to be in the storage control unit cache memory and performing a delayed write to the external storage unit.
き込み要求される前記データがブロック単位であること
に基づいて前記判定を行うことを特徴とする請求項1記
載のデータ処理装置。2. The data processing apparatus according to claim 1, wherein the determination unit makes the determination based on the fact that the data requested to be written from the cache is in block units.
ータサイズを考慮して前記判定を行うことを特徴とする
請求項2記載のデータ処理装置。3. The data processing apparatus according to claim 2, wherein the determination unit further performs the determination in consideration of a data size of the data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000076284A JP3710351B2 (en) | 2000-03-17 | 2000-03-17 | Data processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000076284A JP3710351B2 (en) | 2000-03-17 | 2000-03-17 | Data processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001265653A true JP2001265653A (en) | 2001-09-28 |
JP3710351B2 JP3710351B2 (en) | 2005-10-26 |
Family
ID=18594048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000076284A Expired - Fee Related JP3710351B2 (en) | 2000-03-17 | 2000-03-17 | Data processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3710351B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009217859A (en) * | 2008-03-07 | 2009-09-24 | Lenovo Singapore Pte Ltd | Reproducing method without interruption of medium file |
JP2013511091A (en) * | 2009-11-16 | 2013-03-28 | シマンテック コーポレーション | Selective file system caching based on configurable cache maps |
WO2015015550A1 (en) * | 2013-07-29 | 2015-02-05 | 株式会社日立製作所 | Computer system and control method |
JPWO2014007249A1 (en) * | 2012-07-05 | 2016-06-02 | 株式会社日立製作所 | Method for controlling cache memories provided in I/O node and multiple computing nodes |
-
2000
- 2000-03-17 JP JP2000076284A patent/JP3710351B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009217859A (en) * | 2008-03-07 | 2009-09-24 | Lenovo Singapore Pte Ltd | Reproducing method without interruption of medium file |
JP2013511091A (en) * | 2009-11-16 | 2013-03-28 | シマンテック コーポレーション | Selective file system caching based on configurable cache maps |
JPWO2014007249A1 (en) * | 2012-07-05 | 2016-06-02 | 株式会社日立製作所 | Method for controlling cache memories provided in I/O node and multiple computing nodes |
WO2015015550A1 (en) * | 2013-07-29 | 2015-02-05 | 株式会社日立製作所 | Computer system and control method |
JP5944587B2 (en) * | 2013-07-29 | 2016-07-05 | 株式会社日立製作所 | Computer system and control method |
Also Published As
Publication number | Publication date |
---|---|
JP3710351B2 (en) | 2005-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6467022B1 (en) | Extending adapter memory with solid state disks in JBOD and RAID environments | |
JP3707854B2 (en) | Computer having cache function and cache memory control method | |
US7111134B2 (en) | Subsystem and subsystem processing method | |
US4858111A (en) | Write-back cache system using concurrent address transfers to setup requested address in main memory before dirty miss signal from cache | |
JP3289661B2 (en) | Cache memory system | |
US5249284A (en) | Method and system for maintaining data coherency between main and cache memories | |
JPH037978B2 (en) | ||
US5933848A (en) | System for managing the caching of data of a mass storage within a portion of a system memory | |
US5524225A (en) | Cache system and method for providing software controlled writeback | |
US7000077B2 (en) | Device/host coordinated prefetching storage system | |
US20060184804A1 (en) | Data processing apparatus security | |
JP2001265653A (en) | Data processor | |
JP2004206424A (en) | Data processing device and data transfer method in data processing device | |
JP4826873B2 (en) | Microprocessor system with hot routine memory | |
JP2006099802A (en) | Storage controller and cache memory control method | |
JPH0519981A (en) | Method for judging normal end of data writing in optical disk device | |
JPH0784879A (en) | Cache memory device | |
JP4030951B2 (en) | Data duplication apparatus and method | |
JPH08137753A (en) | Disk cache device | |
JP2637934B2 (en) | Cache control unit | |
JPH06274415A (en) | Shared memory system | |
JPH0883215A (en) | Memory controller | |
JP2502406B2 (en) | Storage control system and data processing device | |
US7840757B2 (en) | Method and apparatus for providing high speed memory for a processing unit | |
JPH0239342A (en) | RAM disk storage maintenance method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050209 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050301 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050406 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20050406 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050531 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050720 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050809 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050809 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080819 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090819 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |