JPH01188966A - Magnetic disk controller containing cache - Google Patents

Magnetic disk controller containing cache

Info

Publication number
JPH01188966A
JPH01188966A JP63013046A JP1304688A JPH01188966A JP H01188966 A JPH01188966 A JP H01188966A JP 63013046 A JP63013046 A JP 63013046A JP 1304688 A JP1304688 A JP 1304688A JP H01188966 A JPH01188966 A JP H01188966A
Authority
JP
Japan
Prior art keywords
data
magnetic disk
cache
reading means
cache memory
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
JP63013046A
Other languages
Japanese (ja)
Other versions
JPH0628045B2 (en
Inventor
Toshiaki Takagi
敏彰 高木
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63013046A priority Critical patent/JPH0628045B2/en
Publication of JPH01188966A publication Critical patent/JPH01188966A/en
Publication of JPH0628045B2 publication Critical patent/JPH0628045B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To write even the data on the physical record stored in a store-in cache block only with a partial logical record into a magnetic disk by storing the data on the physical code read out of the disk into a buffer and then reading the partial physical record out of a cache memory to replace it. CONSTITUTION:A magnetic disk controller contains a host processor 10, a magnetic disk 20, and a microprocessor 40 which controls the transfer of data to a cache memory 30. The processor 40 is connected to a cache data reading means 50 which reads the data out of the memory 30 as well as to a data writing means 60 which writes data into the disk 20 and a data reading means 70 which reads data out of the disk 20 respectively. A data buffer 80 stores the data read out of the disk 20 by the means 70 and the data read out of the memory 30 by the means 50 and then sends these data to the means 60.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャッシュ付き磁気ディスク制御装置に関し
、特にキャッシュメモリにのみデータが記憶されるスト
アインデータを磁気ディスクへ書き込むキャッシュ付き
ディスク制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk control device with a cache, and more particularly to a disk control device with a cache that writes store-in data, in which data is stored only in a cache memory, to a magnetic disk. .

〔従来の技術〕[Conventional technology]

従来、この種のキャッシュ付き磁気ディスク制御装置は
、キャッシュブロックへのデータの記憶を物理レコード
毎に行われており、ストアインデータの磁気ディスクへ
の書込みの場合にも物理しコード毎に書込むようになっ
ていた。
Conventionally, this type of magnetic disk controller with cache stores data in cache blocks for each physical record, and when writing store-in data to a magnetic disk, it also stores data for each physical code. It was like that.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のキャッシュ付き磁気ディスク制御装置は
、物理レコード毎に処理するようになっているので、複
数の論理レコードから成る物理レコードの一部の論理レ
コードのみストアイン用キャッシュブロックへ記憶され
るような場合、キャッシュブロックに記憶されていない
論理レコード部に対応する磁気ディスクに記憶されてい
るデータを書き変えることなくストアインデータの磁気
ディスクへの書込みができないという欠点がある。
The above-mentioned conventional magnetic disk controller with cache processes each physical record, so only some of the logical records of a physical record consisting of multiple logical records are stored in the store-in cache block. In this case, there is a drawback that store-in data cannot be written to the magnetic disk without rewriting the data stored in the magnetic disk corresponding to the logical record portion that is not stored in the cache block.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のキャッシュ付き磁気ディスク制御装置は、ホス
トプロセッサと、複数のファイルを固定長で記憶される
磁気ディスクとの間に設けられる磁気ディスク制御装置
において、前記ホストプロセッサの指示により与えられ
たファイルを記憶するキャッシュメモリと、前記キャッ
シュメモリ内に記憶されている複数の論理レコードから
成り物理レコードのデータの読出し、又は一部の論理レ
コードのデータを読出すキャッシュデータ読取り手段と
、前記磁気ディスクからデータを読み出すデータ読取り
手段と、前記データ読取り手段により前記磁気ディスク
から読出された物理レコードのデータを格納しておき、
前記キャッシュデータ読取り手段により読出された前記
キャッシュメモリ内の一部の論理レコードのデータで更
新された物理レコードのデータを格納するデータバッフ
ァと、前記キャッシュデータ読取り手段により読出させ
た前記キャッシュメモリ内の物理レコードのデータ、又
は前記データバッファに格納されているデータを前記磁
気ディスクへ書込むデータ書込み手段とを有している。
A magnetic disk control device with a cache according to the present invention is a magnetic disk control device provided between a host processor and a magnetic disk in which a plurality of files are stored in a fixed length. a cache memory for storing data; a cache data reading means for reading data from a physical record or reading data from a part of the logical records, which is composed of a plurality of logical records stored in the cache memory; a data reading means for reading, and storing data of a physical record read from the magnetic disk by the data reading means,
a data buffer for storing data of physical records updated with data of some logical records in the cache memory read by the cache data reading means; and data writing means for writing physical record data or data stored in the data buffer onto the magnetic disk.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の実施例を示すブロック図である。第1
図において、本発明の一実施例はホストプロセッサ10
と、複数のファイルを記憶する磁気ディスク20との間
に設けられる磁気ディスク制御装置で、ホストプロセッ
サ10の指示により与えられたファイルを記憶するキャ
ッシュメモリ30を有している。この磁気ディスク制御
装置はホストプロセッサ10、磁気ディスク20及びキ
ャッシュメモリ30との間のデータ転送を制御するマイ
クロプロセッサ40を有していて、キャッシュメモリ3
0に記憶されているデータを読出すキャッシュデータ読
取り手段50に接続され、かつ磁気ディスク20ヘデー
タを書込むデータ書込み手段60および磁気ディスク2
0からデータを読出すデータ読取り手段70に接続され
ている。
FIG. 1 is a block diagram showing an embodiment of the present invention. 1st
In the figure, one embodiment of the present invention is shown in host processor 10.
and a magnetic disk 20 that stores a plurality of files, and has a cache memory 30 that stores files given according to instructions from the host processor 10. This magnetic disk control device has a microprocessor 40 that controls data transfer between a host processor 10, a magnetic disk 20, and a cache memory 30.
data writing means 60 and magnetic disk 2 connected to cache data reading means 50 for reading data stored in 0 and writing data to magnetic disk 20;
It is connected to data reading means 70 for reading data from 0.

データバッファ80はデータ読取り手段手段70は磁気
ディスク20から読出されたデータ、及びキャッシュデ
ータ読取り手段50によりキャッシュメモリ30から読
出されたデータを格納し、データ書込み手段60に送出
するように構成されている。
The data buffer 80 is configured to store data read from the magnetic disk 20 by the data reading means 70 and data read from the cache memory 30 by the cache data reading means 50, and to send the data to the data writing means 60. There is.

まず、ホストプロセッサ10からキャッシュメモリ30
に記憶されているストアイン用キャッシュブロックのデ
ータを磁気ディスク10へ書込む命令100が送出され
ると、マイクロプロセッサ40は複数の論理レコードか
ら成る論理レコードのデータがストアイン用キャッシュ
ブロックに完全に記憶されているかどうかを調べる。
First, from the host processor 10 to the cache memory 30
When the instruction 100 to write the data of the store-in cache block stored in the store-in cache block to the magnetic disk 10 is sent, the microprocessor 40 writes the data of the logical record consisting of a plurality of logical records to the store-in cache block completely. Check to see if it is remembered.

物理レコード内の論理レコードが全てストアイン用キャ
ッシュブロックに記憶されている場合、マイクロプロセ
ッサ40はキャッシュデータ読取り手段50及びデータ
書込み手段60に対してそれぞれ指示110及び120
を出す9キャッシュデータ読取り手段50は指示110
を受取るとキャッシュメモリ30から物理レコードのデ
ータをバス200を介して読み出しバス210を介して
データ書込み手段60へ出力する。データ下書み手段6
0はマイクロプロセッサ40からの指示120により1
.キャッシュデータ読取り手段50から出力される物理
レコードのデータをバス220を介して磁気ディスク2
0へ書込む。
If all the logical records in the physical record are stored in the store-in cache block, the microprocessor 40 issues instructions 110 and 120 to the cache data reading means 50 and data writing means 60, respectively.
9 The cache data reading means 50 issues an instruction 110.
When receiving the data, the data of the physical record is read from the cache memory 30 via the bus 200 and outputted to the data writing means 60 via the bus 210. Data drafting means 6
0 becomes 1 due to the instruction 120 from the microprocessor 40.
.. The physical record data output from the cache data reading means 50 is transferred to the magnetic disk 2 via the bus 220.
Write to 0.

次に物理レコード内の論理レコードの一部のみストアイ
ン用キャッシュブロックに記憶されている場合、まずマ
イクロプロセッサ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, if only part of the logical record in the physical record is stored in the store-in cache block, the microprocessor 40 first issues an instruction 130 to the data reading means 70. The data reading means 70 reads the instruction 13
When 0 is received, the data of the physical record is read from the magnetic disk 20 via the bus 230 and stored in the data buffer 80 via the bus 240. The microprocessor 40 then issues an instruction 110 to the cache data reading means 50. Cache data transfer means 5 receives instruction 11
When 0 is received, data of some logical records stored in the cache memory 3 is read out 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. Instructions 120
Accordingly, the data writing means 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.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、磁気ディスクから読出し
た物理レコードのデータをデータバッファへ格納し、キ
ャッシュメモリ内のストアイン用キャッシュブロックに
記憶されている物理レコードの一部の論理レコードのデ
ータを読出しデータバッファ内の更新した後磁気ディス
クへ下記込むことにより、ストアイン用キャッシュブロ
ックで一部の論理レコードのみ記憶されている物理レコ
ードのデータも磁気ディスクへ書込むことができる効果
がある。
As explained above, the present invention stores data of a physical record read from a magnetic disk in a data buffer, and stores data of a logical record of a part of the physical record stored in a store-in cache block in a cache memory. By updating the read data buffer and writing it to the magnetic disk as follows, it is possible to write the data of the physical record, in which only some logical records are stored in the store-in cache block, to the magnetic disk.

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

第1図は本発明の実施例を示すブロック図である。 10・・・ホストプロセッサ、20・・・磁気ディスク
、30・・・キャッシュメモリ、40・・・マイクロプ
ロセッサ、50・・・キャッシュデータ読取り手段、6
0・・・データ書込み手段、70・・・データ読取り手
段、80・・・デーバッファ。
FIG. 1 is a block diagram showing an embodiment of the present invention. DESCRIPTION OF SYMBOLS 10... Host processor, 20... Magnetic disk, 30... Cache memory, 40... Microprocessor, 50... Cache data reading means, 6
0...Data writing means, 70...Data reading means, 80...Data buffer.

Claims (1)

【特許請求の範囲】[Claims]  ホストプロセッサと、複数のファイルの固定長で記憶
される磁気ディスクとに接続される磁気ディスク制御装
置において、前記ホストプロセッサの指示により与えら
れたファイルを記憶するキャッシュメモリと、前記キュ
ッシュメモリ内に記憶されている複数の論理レコードか
ら成る物理レコードのデータの読出し、又は一部の論理
レコードのデータを読出すキャッシュデータ読取り手段
と、前記磁気ディスクからデータを読出すデータ読取り
手段と、前記データ読取り手段により前記磁気ディスク
から読出された物理レコードのデータを格納しておき、
前記キャッシュデータ読取り手段により読出された前記
キャッシュメモリ内の一部の論理レコードのデータで更
新された物理レコードのデータを格納するデータバッフ
ァと、前記キャッシュデータの読取り手段により読出さ
れた前記キュッシュメモリ内の物理レコードのデータ、
又は前記データバッファに格納されているデータを前記
磁気ディスクへ書き込むデータ書込み手段とを有するキ
ャッシュ付き磁気ディスク制御装置。
In a magnetic disk control device connected to a host processor and a magnetic disk storing a plurality of fixed-length files, a cache memory stores files given in accordance with instructions from the host processor, and a cache memory stores files in the cache memory. a cache data reading means for reading data of a physical record consisting of a plurality of logical records, or reading data of a part of the logical records; a data reading means for reading data from the magnetic disk; and the data reading means. storing the data of the physical record read from the magnetic disk by;
a data buffer for storing data of physical records updated with data of some logical records in the cache memory read by the cache data reading means; and a data buffer in the cache memory read by the cache data reading means. physical record data,
or a data writing means for writing data stored in the data buffer to the magnetic disk.
JP63013046A 1988-01-22 1988-01-22 Magnetic disk controller with cache Expired - Lifetime JPH0628045B2 (en)

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 true JPH01188966A (en) 1989-07-28
JPH0628045B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04288615A (en) * 1990-08-31 1992-10-13 Internatl Business Mach Corp <Ibm> Cash-equipped dasd subsystem for controlling rotating position of disk and its executing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04288615A (en) * 1990-08-31 1992-10-13 Internatl Business Mach Corp <Ibm> Cash-equipped dasd subsystem for controlling rotating position of disk and its executing method

Also Published As

Publication number Publication date
JPH0628045B2 (en) 1994-04-13

Similar Documents

Publication Publication Date Title
JPS59135563A (en) Computer system having disk cache device
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
JPH06250906A (en) Backup/recovery system for data developed in main storage device
EP0398189A3 (en) Noncacheable address random access memory
JPH01188966A (en) Magnetic disk controller containing cache
JPS63115251A (en) Disk cache controller
JPH0793101A (en) Data backup device
JP2645477B2 (en) Microprocessor and its cache memory
JPH10254781A (en) Auxiliary storage device
JPS61227268A (en) Magnetic disk access system
JPH0675715A (en) Collective magnetic disk device
JPS63273949A (en) Information memory system
JPS63224487A (en) Digital data recorder controller
JPH0693232B2 (en) Cache memory
JPS5985560A (en) File management device
JPS60142438A (en) External storage device for data log
JPS6228831A (en) Control device for magnetic disk or the like
JPS6069759A (en) Control system for disk cache memory
JPS62202242A (en) Mapping system for virtual disk device
JPH01177151A (en) Information processing system
JPS61100855A (en) Data buffer
JPS60196858A (en) Input processor of data with label
JPH01163848A (en) Double updating preventing system for disk file
JPH04299749A (en) Magneto-optical disk system
JPH04359312A (en) Electronic disk subsystem

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