JPH0628045B2 - Magnetic disk controller with cache - Google Patents
Magnetic disk controller with cacheInfo
- Publication number
- JPH0628045B2 JPH0628045B2 JP63013046A JP1304688A JPH0628045B2 JP H0628045 B2 JPH0628045 B2 JP H0628045B2 JP 63013046 A JP63013046 A JP 63013046A JP 1304688 A JP1304688 A JP 1304688A JP H0628045 B2 JPH0628045 B2 JP H0628045B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- magnetic disk
- cache
- stored
- reading means
- 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.)
- Expired - Lifetime
Links
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャッシュ付き磁気ディスク制御装置に関
し、特にキャッシュメモリにのみデータが記憶されるス
トアインデータを磁気ディスクへ書き込むキャッシュ付
きディスク制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk controller with a cache, and more particularly to a disk controller with a cache that writes store-in data in which data is stored only in a cache memory to a magnetic disk. .
従来、この種のキャッシュ付き磁気ディスク制御装置
は、キャッシュブロックへのデータの記憶を物理レコー
ド毎に行われており、ストアインデータの磁気ディスク
への書込みの場合にも物理レコード毎に書込むようにな
っていた。Conventionally, a magnetic disk controller with a cache of this kind stores data in a cache block for each physical record. Even when writing store-in data to a magnetic disk, write data for each physical record. It was.
上述した従来のキャッシュ付き磁気ディスク制御装置
は、物理レコード毎に処理するようになっているので、
複数の論理レコードから成る物理レコードの一部の論理
レコードのみストアイン用キャッシュブロックへ記憶さ
れるような場合、キャッシュブロックに記憶されていな
い論理レコード部に対応する磁気ディスクに記憶されて
いるデータを書き変えることなくストアインデータの磁
気ディスクへの書込みができないという欠点がある。Since the conventional magnetic disk control device with a cache described above processes each physical record,
When only some of the logical records of the physical records consisting of multiple logical records are stored in the cache block for store-in, the data stored in the magnetic disk corresponding to the logical record part not stored in the cache block There is a drawback that the store-in data cannot be written to the magnetic disk without rewriting.
本発明のキャッシュ付き磁気ディスク制御装置は、ホス
トプロセッサと、複数のファイルを固定長で記憶される
磁気ディスクとの間に設けられる磁気ディスク制御装置
において、前記ホストプロセッサの指示により与えられ
たファイルを記憶するキャッシュメモリと、前記キャッ
シュメモリ内に記憶されている複数の論理レコードから
成り物理レコードのデータの読出し、又は一部の論理レ
コードのデータを読出すキャッシュデータ読取り手段
と、前記磁気ディスクからデータを読み出すデータ読取
り手段と、前記データ読取り手段により前記磁気ディス
クから読出された物理レコードのデータを格納してお
き、前記キャッシュデータ読取り手段により読出された
前記キャッシュメモリ内の一部の論理レコードのデータ
で更新された物理レコードのデータを格納するデータバ
ッファと、前記キャッシュデータ読取り手段により読出
させた前記キャッシュメモリ内の物理レコードのデー
タ、又は前記データバッファに格納されているデータを
前記磁気ディスクへ書込むデータ書込み手段とを有して
いる。A magnetic disk controller with a cache according to the present invention is a magnetic disk controller provided between a host processor and a magnetic disk that stores a plurality of files in a fixed length, and stores a file given by an instruction of the host processor. A cache memory for storing data, a cache data reading unit for reading data of a physical record consisting of a plurality of logical records stored in the cache memory, or a part of the logical record, and data from the magnetic disk. And data of a physical record read from the magnetic disk by the data reading means, and data of a part of the logical record in the cache memory read by the cache data reading means. Physical record updated by And a data buffer for storing the data of the physical record in the cache memory read by the cache data reading means or the data stored in the data buffer to the magnetic disk. have.
次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
第1図は本発明の実施例を示すブロック図である。第1
図において、本発明の一実施例はホストプロセッサ10
と、複数のファイルを記憶する磁気ディスク20との間
に設けられる磁気ディスク制御装置で、ホストプロセッ
サ10の指示により与えられたファイルを記憶するキャ
ッシュメモリ30を有している。この磁気ディスク制御
装置はホストプロセッサ10、磁気ディスク20及びキ
ャッシュメモリ30との間のデータ転送を制御するマイ
クロプロセッサ40を有していて、キャッシュメモリ3
0に記憶されているデータを読出すキャッシュデータ読
取り手段50に接続され、かつ磁気ディスク20へデー
タを書込むデータ書込み手段60および磁気ディスク2
0からデータを読出すデータ読取り手段70に接続され
ている。データバッファ80はデータ読取り手段手段7
0は磁気ディスク20から読出されたデータ、及びキャ
ッシュデータ読取り手段50によりキャッシュメモリ3
0から読出されたデータを格納し、データ書込み手段6
0に送出するように構成されている。FIG. 1 is a block diagram showing an embodiment of the present invention. First
Referring to the drawings, one embodiment of the present invention is a host processor 10.
And a magnetic disk 20 for storing a plurality of files, which is a magnetic disk control device, and has a cache memory 30 for storing the files given by the instruction of the host processor 10. This magnetic disk control device has a microprocessor 40 for controlling data transfer between the host processor 10, the magnetic disk 20, and the cache memory 30, and the cache memory 3
The magnetic disk 2 and the data writing means 60 connected to the cache data reading means 50 for reading the data stored in 0 and writing the data to the magnetic disk 20.
It is connected to a data reading means 70 for reading data from 0. The data buffer 80 is a data reading means 7
0 is the data read from the magnetic disk 20 and the cache memory 3 by the cache data reading means 50.
The data read from 0 is stored and the data writing means 6
It is configured to send to 0.
まず、ホストプロセッサ10からキャッシュメモリ30
に記憶されているストアイン用キャッシュブロックのデ
ータを磁気ディスク10へ書込む命令100が送出され
ると、マイクロプロセッサ40は複数の論理レコードか
ら成る論理レコードのデータがストアイン用キャッシュ
ブロックに完全に記憶されているかどうかを調べる。First, from the host processor 10 to the cache memory 30
When a command 100 for writing the data of the store-in cache block stored in the magnetic disk 10 to the magnetic disk 10 is sent, the microprocessor 40 completely stores the data of the logical record composed of a plurality of logical records in the store-in cache block. Check if it is remembered.
物理レコード内の論理レコードが全てストアイン用キャ
ッシュブロックに記憶されている場合、マイクロプロセ
ッサ40はキャッシュデータ読取り手段50及びデータ
書込み手段60に対してそれぞれ指示110及び120
を出す。キャッシュデータ読取り手段50は指示110
を受取るとキャッシュメモリ30から物理レコードのデ
ータをバス200を介して読み出しバス210を介して
データ書込み手段60へ出力する。データ下書み手段6
0はマイクロプロセッサ40からの指示120により、
キャッシュデータ読取り手段50から出力される物理レ
コードのデータをバス220を介して磁気ディスク20
へ書込む。When all the logical records in the physical record are stored in the cache block for store-in, the microprocessor 40 instructs the cache data reading means 50 and the data writing means 60, respectively.
Give out. The cache data reading means 50 gives an instruction 110.
When the data is received, the data of the physical record is read from the cache memory 30 via the bus 200 and output to the data writing means 60 via the bus 210. Data drafting means 6
0 is an instruction 120 from the microprocessor 40,
The physical record data output from the cache data reading means 50 is transferred to the magnetic disk 20 via the bus 220.
Write to.
次に物理レコード内の論理レコードの一部のみストアイ
ン用キャッシュブロックに記憶されている場合、まずマ
イクロプロセッサ40はデータ読取り手段70に対して
指示130を出す。データ読取り手段70は、指示13
0を受取るとバス230を介して磁気ディスク20から
の物理レコードのデータを読出し、バス240を介して
データバッファ80へ格納する。次にマイクロプロセッ
サ40はキャッシュデータ読取り手段50に対して指示
110を出す。キャッシュデータ転送手段5は指示11
0を受取るとキャッシュメモリ3に記憶されている一部
の論理レコードのデータをバス200を介して読出し、
バス250を介してデータバッファ8に格納されている
磁気ディスク2から読出された物理レコードのデータの
一部を更新する。次にマイクロプロセッサ40はデータ
書込み手段60に対して指示120を出す。指示120
によりデータ書込み手段60は、バス260を介してデ
ータバッファ80に格納されている物理レコードのデー
タを読出し、バス220を介して磁気ディスク20へ書
込む。Next, when only a part of the logical record in the physical record is stored in the cache block for store-in, the microprocessor 40 first issues the instruction 130 to the data reading means 70. The data reading means 70 uses the instruction 13
When 0 is received, the data of the physical record from the magnetic disk 20 is read out via the bus 230 and stored in the data buffer 80 via the bus 240. Next, the microprocessor 40 issues an instruction 110 to the cache data reading means 50. The cache data transfer means 5 gives an instruction 11
When 0 is received, some logical record data stored in the cache memory 3 is read via the bus 200,
A part of the data of the physical record read from the magnetic disk 2 stored in the data buffer 8 via the bus 250 is updated. Next, the microprocessor 40 issues an instruction 120 to the data writing means 60. Instruction 120
Thus, the data writing unit 60 reads the data of the physical record stored in the data buffer 80 via the bus 260, and writes it to the magnetic disk 20 via the bus 220.
以上説明したように本発明は、磁気ディスクから読出し
た物理レコードのデータをデータバッファへ格納し、キ
ャッシュメモリ内のストアイン用キャッシュブロックに
記憶されている物理レコードの一部の論理レコードのデ
ータを読出しデータバッファ内の更新した後磁気ディス
クへ下記込むことにより、ストアイン用キャッシュブロ
ックで一部の論理レコードのみ記憶されている物理レコ
ードのデータも磁気ディスクへ書込むことができる効果
がある。As described above, according to the present invention, the data of the physical record read from the magnetic disk is stored in the data buffer, and the data of a part of the logical record of the physical record stored in the cache block for store-in in the cache memory is stored. By updating the data in the read data buffer and then writing the data to the magnetic disk as described below, the data of the physical record in which only some of the logical records are stored in the store-in cache block can be written to the magnetic disk.
第1図は本発明の実施例を示すブロック図である。 10…ホストプロセッサ、20…磁気ディスク、30…
キャッシュメモリ、40…マイクロプロセッサ、50…
キャッシュデータ読取り手段、60…データ書込み手
段、70…データ読取り手段、80…デーバッファ。FIG. 1 is a block diagram showing an embodiment of the present invention. 10 ... Host processor, 20 ... Magnetic disk, 30 ...
Cache memory, 40 ... Microprocessor, 50 ...
Cache data reading means, 60 ... Data writing means, 70 ... Data reading means, 80 ... Data buffer.
Claims (1)
定長で記憶される磁気ディスクとに接続される磁気ディ
スク制御装置において、前記ホストプロセッサの指示に
より与えられたファイルを記憶するキャッシュメモリ
と、前記キャッシュメモリ内に記憶されている複数の論
理レコードから成る物理レコードのデータの読出し、又
は一部の論理レコードのデータを読出すキャッシュデー
タ読取り手段と、前記磁気ディスクからデータを読出す
データ読取り手段と、前記データ読取り手段により前記
磁気ディスクから読出された物理レコードのデータを格
納しておき、前記キャッシュデータ読取り手段により読
出された前記キャッシュメモリ内の一部の論理レコード
のデータで更新された物理レコードのデータを格納する
データバッファと、前記キャッシュデータの読取り手段
により読出された前記キャッシュメモリ内の物理レコー
ドのデータ、又は前記データバッファに格納されている
データを前記磁気ディスクへ書き込むデータ書込み手段
とを有するキャッシュ付き磁気ディスク制御装置。1. A magnetic disk controller connected to a host processor and a magnetic disk stored in a fixed length of a plurality of files, a cache memory for storing a file given by an instruction of the host processor, Cache data reading means for reading data of a physical record consisting of a plurality of logical records stored in the cache memory or reading data of a part of the logical records; and data reading means for reading data from the magnetic disk. A physical record updated by the data of a part of the logical record in the cache memory read by the cache data reading means, in which the data of the physical record read by the data reading means is stored. Data buffer to store the data of Serial magnetic disk controller with a cache and a data writing means for writing the read physical record of the data in the cache memory, or the data stored in the data buffer to the magnetic disk by the reading means of the cache data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63013046A JPH0628045B2 (en) | 1988-01-22 | 1988-01-22 | Magnetic disk controller with cache |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63013046A JPH0628045B2 (en) | 1988-01-22 | 1988-01-22 | Magnetic disk controller with cache |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01188966A JPH01188966A (en) | 1989-07-28 |
| JPH0628045B2 true JPH0628045B2 (en) | 1994-04-13 |
Family
ID=11822177
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63013046A Expired - Lifetime JPH0628045B2 (en) | 1988-01-22 | 1988-01-22 | Magnetic disk controller with cache |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0628045B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5235692A (en) * | 1990-08-31 | 1993-08-10 | International Business Machines Corporation | Disk rotational position controls for channel operations in a cached peripheral subsystem |
-
1988
- 1988-01-22 JP JP63013046A patent/JPH0628045B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01188966A (en) | 1989-07-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6366977B1 (en) | Semiconductor storage device employing cluster unit data transfer scheme and data management method thereof | |
| US5293618A (en) | Method for controlling access to a shared file and apparatus therefor | |
| US4423479A (en) | Cache/disk subsystem with acquire write command | |
| JPH0628045B2 (en) | Magnetic disk controller with cache | |
| JPH0518143B2 (en) | ||
| JPH01303547A (en) | Control system for information memory | |
| JPH0673112B2 (en) | Disk cache controller | |
| JPH0520196A (en) | Disk / Cash control unit | |
| JPH0793101A (en) | Data backup device | |
| JPS6331806B2 (en) | ||
| JP3376316B2 (en) | Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor | |
| JP2645477B2 (en) | Microprocessor and its cache memory | |
| JPH10254781A (en) | Auxiliary storage | |
| JP2748410B2 (en) | ImPP program startup method | |
| JP2822660B2 (en) | Magnetic disk subsystem | |
| JPS5985560A (en) | File management device | |
| JPH01292421A (en) | Method for copying data in memory card | |
| JPH0728700A (en) | Storage device | |
| JPH01151467U (en) | ||
| JPH03260852A (en) | External storage device | |
| JPS6074057A (en) | Control system for disk cache | |
| JPS6387690A (en) | Optical disk medium setting controller | |
| JPH01177151A (en) | Information processing system | |
| JPH01201716A (en) | Electronic computer system | |
| JPH03222061A (en) | Information processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080413 Year of fee payment: 14 |