JPH01255918A - Control system for disk system with mixed sector length - Google Patents

Control system for disk system with mixed sector length

Info

Publication number
JPH01255918A
JPH01255918A JP8383888A JP8383888A JPH01255918A JP H01255918 A JPH01255918 A JP H01255918A JP 8383888 A JP8383888 A JP 8383888A JP 8383888 A JP8383888 A JP 8383888A JP H01255918 A JPH01255918 A JP H01255918A
Authority
JP
Japan
Prior art keywords
magnetic disk
data
sector
disk
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
JP8383888A
Other languages
Japanese (ja)
Other versions
JP2681986B2 (en
Inventor
Tatsumi Kakiuchi
垣内 立身
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 JP63083838A priority Critical patent/JP2681986B2/en
Publication of JPH01255918A publication Critical patent/JPH01255918A/en
Application granted granted Critical
Publication of JP2681986B2 publication Critical patent/JP2681986B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To make the correcting manday of software and an application program unnecessary by absorbing the different in a sector length with a disk cache memory. CONSTITUTION:When a disk cache control device 3 recognizes a magnetic disk device a magnetic disk having a different sector length based on the instruction of an instructing means 13 and writes a data block for a magnetic disk device having a large sector length, since the block is rewritten to the magnetic disk device after only a part needed by the said data block is rewritten on a disk cache memory 4, the erasing of the data due to the partial writing is prevented. Even in a virtual memory system, since the data block is transferred to the buffer area of a main memory 2 from the disk cache memory 4, it is not necessary to change the software and correct, etc., an application program prepared by a user regardless of the input output action of a magnetic disk device side.

Description

【発明の詳細な説明】 〔概要〕 計算機システムにセクタ長が異なるディスク装置を混在
させて接続した場合に、ソフトウェアの変更を不要とす
るセクタ長混在ディスクシステム制御方式に関し、 ソフトウェアやアプリケーションプログラムの修正工数
を不要とすることを目的とし、ディスクキャッシュメモ
リを備え、主記憶装置とディスク装置との間のデータ転
送を該ディスクキャッシュメモリを介して実行すると共
に、セクタ長の異なるディスク装置を混在させて接続し
た計算機システムであって、該ディスクキャッシュメモ
リを制御するディスクキャッシュ制御装置に、該ディス
ク装置のセクタ長を認識させると共に、最小のセクタ長
を基準として該主記憶装置から転送されたデータを処理
して該ディスクキャッシュメモリに書込ませる指示を行
う指示手段を設け、最小のセクタ長を持つディスク装置
以外のディスク装置にデータブロックを書込む場合、該
ディスクキャッシュメモリ上で、最小セクタ長毎に書替
え処理してデータブロックを完成させた後、該当ディス
ク装置に該データブロックを書込む構成とする。
[Detailed Description of the Invention] [Summary] Modification of software and application programs regarding a mixed sector length disk system control method that does not require software changes when disk devices with different sector lengths are connected to a computer system. In order to eliminate the need for man-hours, it is equipped with a disk cache memory, executes data transfer between the main storage device and the disk device via the disk cache memory, and also allows disk devices with different sector lengths to coexist. In a connected computer system, a disk cache control device that controls the disk cache memory is made to recognize the sector length of the disk device, and processes data transferred from the main storage device based on the minimum sector length. If a data block is written to a disk device other than the disk device having the minimum sector length, the data block is written to the disk cache memory for each minimum sector length. After the data block is completed by rewriting processing, the data block is written to the corresponding disk device.

〔産業上の利用分野〕[Industrial application field]

本発明は計算機システムにセクタ長が異なるディスク装
置を混在させて接続した場合に、ソフトウェアの変更を
不要とするセクタ長混在ディスクツステム制御方式に関
する。
The present invention relates to a mixed sector length disk system control method that eliminates the need to change software when disk devices with different sector lengths are connected to a computer system.

各種の計算機システムの中核的な外部記憶装置として、
磁気ディスク装置が使用されているが、この磁気ディス
ク装置は大別して固定長形式の磁気ディスク装置と、可
変長形式の磁気ディスク装置に分類される。この内置定
長形式の磁気ディスク装置はデータハンドリングの手軽
さから広く計算機システムに採用されている。
As a core external storage device for various computer systems,
Magnetic disk devices are used, and these magnetic disk devices are broadly classified into fixed length magnetic disk devices and variable length magnetic disk devices. This internal fixed-length magnetic disk device is widely used in computer systems because of its ease of data handling.

この固定長形式の磁気ディスク装置は、磁気ディスクの
トラックを等間隔に分割したセクタと呼ばれる領域にデ
ータを記録している。そして、このセクタ領域の大きさ
、即ち、セクタ長には、256バイト、512バイト、
1024バイト等があり、各種計算機システムにおいて
、その時々の゛ 要因に基づき、一般に単一種類のセク
タ長の磁気ディスク装置を一台以上接続してシステムを
構成している。即ち、例えば、512バイトセクタの磁
気ディスク装置ならば、512バイトセクタの磁気ディ
スク装置のみを接続している。
This fixed-length magnetic disk device records data in areas called sectors, which are divided tracks of a magnetic disk at equal intervals. The size of this sector area, that is, the sector length, is 256 bytes, 512 bytes,
There are 1024 bytes, etc., and in various computer systems, one or more magnetic disk devices of a single type of sector length are generally connected to form a system based on the factors at the time. That is, for example, if it is a 512-byte sector magnetic disk device, only the 512-byte sector magnetic disk device is connected.

ところで、磁気ディスク装置は記憶容量が増大するに従
い、セクタ長も大きくなって、セクタ長の小さい磁気デ
ィスク装置が製造されなくなっているが、既設の計算機
システムの磁気ディスク装置を増設するような場合に不
都合が生じないようにすることが必要である。
By the way, as the storage capacity of magnetic disk devices increases, the sector length also increases, and magnetic disk devices with small sector lengths are no longer being manufactured. However, when adding magnetic disk devices to an existing computer system, It is necessary to ensure that no inconvenience occurs.

〔従来の技術〕[Conventional technology]

上記の如く、従来はセクタ長の同じ磁気ディスク装置を
接続して計算機システムを構築している。
As mentioned above, conventionally, a computer system is constructed by connecting magnetic disk devices with the same sector length.

しかし、数年前迄は256バイトセクタの磁気ディスク
装置が供給市場において、−船釣であったが、最近は記
憶容量の巨大化に伴い、512バイトセクタの磁気ディ
スク装置が市場の中心に移行している。そして、256
バイトセクタの磁気ディスク装置は製造されなくなって
来た。
However, until a few years ago, 256-byte sector magnetic disk drives were the only supply market in the market, but recently, with the increase in storage capacity, 512-byte sector magnetic disk drives have shifted to the center of the market. are doing. And 256
Byte sector magnetic disk drives are no longer manufactured.

このため、256バイトセクタの磁気ディスク装置でシ
ステムを構築した計算機システムにおいて、磁気ディス
ク装置を増設する場合、512バイトセクタの磁気ディ
スク装置に置き換えるか、256バイトセクタの磁気デ
ィスク装置と512バイトセクタの磁気ディスク装置と
を混在させることとなる。
Therefore, when adding a magnetic disk device to a computer system built using a 256-byte sector magnetic disk device, it is recommended to replace it with a 512-byte sector magnetic disk device, or replace it with a 256-byte sector magnetic disk device and a 512-byte sector magnetic disk device. This means that a magnetic disk device will be used in the mix.

しかし、256バイトセクタの磁気ディスク装置でシス
テムを構築した場合、データはセクタ長を基準として作
成されているため、この256バイトのデータを512
バイトセクタの磁気ディスク装置に単純に複写した場合
、1セクタ内に論理的に別のデータが書込まれる。
However, when a system is constructed using a magnetic disk device with 256-byte sectors, the data is created based on the sector length, so this 256-byte data is
When simply copying to a byte sector magnetic disk device, logically different data is written within one sector.

即ち、磁気ディスク装置を制御する磁気ディスク制御装
置には、通常磁気ディスク装置を指定する機番と、磁気
ディスク装置のシリンダ番号と、磁気ヘッドの番号と、
セクタ番号とから構成されるデータのアドレスと、デー
タ長とが与えられ、データのり一ド/ライトが指示され
る。
That is, a magnetic disk control device that controls a magnetic disk device usually has a machine number specifying the magnetic disk device, a cylinder number of the magnetic disk device, a magnetic head number,
A data address consisting of a sector number and a data length are given, and data read/write is instructed.

従って、磁気ディスク上のアドレスで指定されたシリン
ダの、指定された磁気ヘッドが位置付けされたトラック
の指定されたセクタから、指定されたデータ長のデータ
が書込まれたり、読出されたりする。
Therefore, data of a specified data length is written or read from the specified sector of the track where the specified magnetic head is positioned in the cylinder specified by the address on the magnetic disk.

第4図はセクタ長を基準とするデータの複写を説明する
図である。
FIG. 4 is a diagram illustrating copying of data based on sector length.

第4図(a)に示す如く、256バイトのセクタ長を基
準とするデータ■とデータ■は、256バイトセクタの
磁気ディスク装置においては、〉印で示す物理セクタア
ドレスにより区分され、データ■が例えば200バイト
であると、残り56バイト分の領域■はクリアされてい
る。これは、磁気ディスク装置を制御する磁気ディスク
制御装置が備えるパーシャルライトというハードウェア
特性により、データ■を読出す時、古いデータが残され
ていて読出されないように、セクタ長より少ないバイト
数のデータを書込むと、上位装置から磁気ディスク制御
装置に指示されるデータ長に基づき、残り領域はクリア
するためである。
As shown in FIG. 4(a), in a magnetic disk drive with a 256-byte sector, data ■ and data ■ based on a sector length of 256 bytes are separated by physical sector addresses indicated by 〉 marks, and data ■ For example, if it is 200 bytes, the remaining 56 bytes of area (2) have been cleared. Due to a hardware characteristic called partial write in the magnetic disk control device that controls the magnetic disk device, when reading data, old data is left behind and cannot be read, so data with a number of bytes less than the sector length is This is because when the data is written, the remaining area is cleared based on the data length instructed by the host device to the magnetic disk control device.

このデータ■と■を512バイトセクタの磁気ディスク
装置に単純に複写すると、第4図(blに示す如く、一
つのセクタ内に書込まれ、データ■のみを再書込みする
と、上位装置から磁気ディスク制御装置に指示されるデ
ータ■のデータ長は200バイトのままとなっているた
め、第4図(C1に示す如く、データ■はパーシャルラ
イトにより、クリアされてしまう。
If these data ■ and ■ are simply copied to a 512-byte sector magnetic disk device, they will be written in one sector as shown in Figure 4 (bl), and if only data ■ is rewritten, the magnetic disk will be transferred from the host device to the magnetic disk drive. Since the data length of the data (2) instructed to the control device remains 200 bytes, the data (2) is cleared by the partial write, as shown in FIG. 4 (C1).

第5図はブロックの複写を説明する図である。FIG. 5 is a diagram illustrating copying of blocks.

レコードの集まりであるブロックは、セクタ長のn倍で
ある6256バイトセクタの磁気ディスク装置では、第
5図(a)に示す如く、1ブロツクが3セクタ分である
とすると、これを512バイトの磁気ディスク装置に複
数のブロックを単純に複写した場合、第5図(blに示
す如く、最初のデータブロックはセクタ■とセクタ■の
1/2の領域に書込まれるが、セクタ■の残り1/2の
領域に、次のブロックのデータが書込まれる。
In a magnetic disk device with a 6256-byte sector, which is n times the sector length, a block, which is a collection of records, is divided into 512-byte sectors, as shown in Figure 5(a), assuming that one block is three sectors. When multiple blocks are simply copied to a magnetic disk device, as shown in Figure 5 (bl), the first data block is written in sector ■ and 1/2 area of sector ■, but the remaining 1 data block of sector The data of the next block is written in the /2 area.

この場合も先に書込んだブロックの再書込みを行うと、
磁気ディスク制御装置に指示されるセクタ■に書込まれ
るデータ長は256バイトのままとなっているため、パ
ーシャルライトにより、セクタ■の残り1/2領域に隣
接して書込まれた次のブロックのデータがクリアされる
In this case as well, if you rewrite the previously written block,
Since the data length to be written to sector ■ as instructed by the magnetic disk controller remains 256 bytes, the next block written adjacent to the remaining 1/2 area of sector ■ by partial write. data will be cleared.

第6図は仮想記憶方式のバッファ領域のレイアウトを説
明する図である。
FIG. 6 is a diagram illustrating the layout of the buffer area of the virtual storage system.

仮想記憶方式を用いる計算機システムにおいては、主記
憶装置に設けられたバッファ領域と磁気ディスク装置と
の間で、ページ単位にデータの転送が行われる。256
バイトセクタの磁気ディスク装置を使用している計算機
システムでは、このバッファ領域も256バイha位で
割当てられており、例えば、第6図(a)のバッファ領
域■とバッファ領域■に示す如く、バッファ領域が物理
的に切れている場合がある。
In a computer system using a virtual storage method, data is transferred page by page between a buffer area provided in a main storage device and a magnetic disk device. 256
In a computer system that uses a byte sector magnetic disk device, this buffer area is also allocated at around 256 by ha, and for example, as shown in buffer area ■ and buffer area ■ in Figure 6(a), the buffer area is The area may be physically cut off.

この場合、バッファ領域■が256バイトの大きさであ
ると、512バイトセクタの磁気ディスク装置から読出
されるデータ■は1/2のデータ[相]がバッファ領域
■に転送されるが、残りのデータ■はチャネルコマンド
がデータ[相]の時とデータ■の時では別コマンドとな
るため、磁気ディスク装置側の入出力動作が次のセクタ
■の先頭に移行してしまうことがあり、データ■が読出
されないことがある。
In this case, if the buffer area ■ has a size of 256 bytes, 1/2 of the data [phase] of the data read from the 512-byte sector magnetic disk device will be transferred to the buffer area ■, but the remaining data will be transferred to the buffer area ■. Data ■ is a different command when the channel command is data [phase] and when it is data ■, so the input/output operation on the magnetic disk device side may shift to the beginning of the next sector ■. may not be read.

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

上記の如く、従来はセクタ長の異なる磁気ディスク装置
を混在させるか、セクタ長の大きい磁気ディスク装置に
置き換えた場合、セクタ長の大きい磁気ディスク装置に
データを単純に複写することが出来ないに の為、セクタ長の小さい磁気ディスク装置のデータを、
セクタ長の大きい磁気ディスク装置に書込む時、前記の
如くパーシャルライトによりクリアされ、消滅しないよ
うにソフトウェアを変更して、セクタ長の大きい磁気デ
ィスク装置に書込むデータには、一つのセクタに他のデ
ータが書込まれないように、セクタ毎のアドレスを付与
して複写する等の処理が必要となる。
As mentioned above, conventionally, when magnetic disk drives with different sector lengths were mixed or replaced with a magnetic disk drive with a larger sector length, data could not be simply copied to the magnetic disk drive with a larger sector length. Therefore, data from a magnetic disk device with a small sector length,
When writing to a magnetic disk device with a large sector length, the software is changed so that it is cleared by partial write and does not disappear as described above. In order to prevent the data from being written, it is necessary to perform processing such as assigning an address to each sector and copying the data.

しかし、この為にはソフトウェアの変更に大幅な工数を
必要とするという問題がある。
However, there is a problem in that this requires a large amount of man-hours to change the software.

又、特に仮想記憶方式の計算機システムにおいては、計
算機システムの規模に応じて、更にユーザが作成した膨
大なアプリケーションプログラムを修正する必要がある
という問題がある。
In addition, particularly in computer systems using virtual memory, there is a problem in that it is necessary to modify a huge number of application programs created by users depending on the scale of the computer system.

本発明はこのような問題点に鑑み、ディスクキャッシュ
メモリでセクタ長の差を吸収させ、ソフトウェアやアプ
リケーションプログラムの修正工数を不要とすることを
目的としている。
In view of these problems, the present invention aims to make a disk cache memory absorb the difference in sector length, thereby eliminating the need for man-hours for modifying software and application programs.

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

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

中央処理装置1はディスクキャッシュ制御装置3に対し
、磁気ディスク装置7又は8のセクタ長を意識すること
なく、入出力要求を送出する。ディスクキャッシュ制御
装置3は中央処理装置1がデータブロックを磁気ディス
ク装置7又は8に書込むことを要求している場合、指示
手段13の指示に基づき、システムの初期設定情報から
磁気ディスク装置7と8のセクタ長を調べる。
The central processing unit 1 sends an input/output request to the disk cache control device 3 without being aware of the sector length of the magnetic disk device 7 or 8. When the central processing unit 1 requests to write a data block to the magnetic disk device 7 or 8, the disk cache control device 3 writes the data block to the magnetic disk device 7 or 8 based on the system initialization information based on the instruction from the instruction means 13. Check the sector length of 8.

例えば、磁気ディスク装置7がセクタ長が小さく、磁気
ディスク装置8のセクタ長が大きいとすると、ディスク
キャッシュ制御装置3は、このセクタ長の差を認識し、
中央処理装置1から指定された磁気ディスク装置が8で
あると、ディスクキャッシュメモリ4に該データブロッ
クに対応したデータブロックが磁気ディスク装置8から
読出されているか調べる。
For example, if the magnetic disk device 7 has a small sector length and the magnetic disk device 8 has a large sector length, the disk cache control device 3 recognizes this difference in sector length,
If the magnetic disk device designated by the central processing unit 1 is 8, it is checked whether a data block corresponding to the data block has been read from the magnetic disk device 8 in the disk cache memory 4.

即ち、中央処理装置1が指定したアドレスから指定され
たデータ長以上のデータブロックがディスクキャッシュ
メモリ4上にあれば、このディスクキャッシュメモリ4
上の指定されたアドレスから、最小セクタ長毎に主記憶
装置2から読出したデータにより書替えを行う。
That is, if there is a data block on the disk cache memory 4 starting from the address specified by the central processing unit 1 and having a specified data length or more, this disk cache memory 4
Starting from the specified address above, rewriting is performed using the data read from the main storage device 2 for each minimum sector length.

そして、指定されたデータ長の書替えが完了すると、デ
ータブロックの残りのデータは元のままで、チャネル5
と磁気ディスク制御装置6を経て、指定された磁気ディ
スク装置8に転送して、書替前のデータブロックが記録
されていた領域に書込ませる。
When the specified data length has been rewritten, the remaining data in the data block remains as it was, and channel 5
The data is transferred to the designated magnetic disk device 8 via the magnetic disk control device 6, and written into the area where the data block before rewriting was recorded.

若し、中央処理装置1が指定したアドレスから指定され
たデータ長以上のデータブロックがディスクキャッシュ
メモリ4上に無ければ、指定された磁気ディスク装置8
より指定されたアドレスから指定されたデータ長のデー
タブロックを読出して、ディスクキャッシュメモリ4上
に展開し、このデータブロックについて上記同様の処理
を行って、再び磁気ディスク装置8の元のデータブロッ
クが記録されていた領域に書込む。
If there is no data block on the disk cache memory 4 starting from the address specified by the central processing unit 1 and having the specified data length or more, the specified magnetic disk device 8
A data block of the specified data length is read from the specified address, expanded on the disk cache memory 4, and the same processing as described above is performed on this data block, and the original data block of the magnetic disk device 8 is restored again. Write to the recorded area.

中央処理装置1が磁気ディスク装置7を指定している場
合、ディスクキャッシュ制御装置3は、ディスクキャッ
シュメモリ4上のデータブロックに対し、従来通りの処
理を行ってデータブロックの書替えを行った後、磁気デ
ィスク装置7に書替えが完了したデータブロックを書込
ませる。
When the central processing unit 1 specifies the magnetic disk device 7, the disk cache control device 3 performs conventional processing on the data block on the disk cache memory 4 to rewrite the data block, and then The magnetic disk device 7 is caused to write the rewritten data block.

〔作用〕[Effect]

上記の如く構成することにより、ディスクキャッシュ制
?Il装置3は指示手段13の指示に基づき、セクタ長
の異なる磁気ディスク装置を認識し、セクタ長の大きい
磁気ディスク装置に対してデータブロックを書込む場合
、ディスクキャッシュメモリ4上で該データブロックの
必要とする部分のみ書替えを行った後、磁気ディスク装
置に再書込みするため、パーシャルライトによるデータ
の消去を防止し、仮想記憶方式においても、ディスクキ
ャッシュメモリ4から主記憶装置2のバッファ領域にデ
ータブロックが転送されるため、磁気ディスク装置側の
入出力動作に関係せず、ソフトウェアの変更やユーザの
作成したアプリケーションプログラムの修正等を行う必
要が無い。
By configuring as above, disk cache system? The Il device 3 recognizes magnetic disk devices with different sector lengths based on instructions from the instruction means 13, and when writing a data block to a magnetic disk device with a large sector length, writes the data block on the disk cache memory 4. After rewriting only the necessary part, it is rewritten to the magnetic disk device, which prevents erasure of data due to partial write, and even in the virtual storage method, data is transferred from the disk cache memory 4 to the buffer area of the main storage device 2. Since the blocks are transferred, there is no need to change the software or modify the application program created by the user, regardless of the input/output operations on the magnetic disk device side.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示す回路のブロック図で、
第3図は第2図の動作を説明するフローチャートである
FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention.
FIG. 3 is a flowchart illustrating the operation of FIG. 2.

中央処理装置1はディスクキャッシュ制御装置3に対し
、磁気ディスク装置7〜9のセクタ長を意識することな
く、磁気ディスク装置7又は8又は9のどれかを指定す
る機番と、シリンダ番号、磁気ヘッド番号及び該磁気ヘ
ッドがデータのり一ド/ライトを開始するセクタ番号を
示すアドレスと、データ長とを指定して、データブロッ
クのり−ド/ライトを指示する入出力要求を送出する。
The central processing unit 1 provides the disk cache control unit 3 with the machine number, cylinder number, and magnetic An input/output request instructing a data block read/write is sent by specifying a head number, an address indicating a sector number in which the magnetic head starts reading/writing data, and a data length.

ディスクキャッシュ制御装置3は、磁気ディスク装置7
〜9のディスク内のデータブロックと、ディスクキャッ
シュメモリ4内のデータブロックとを対応させる対応表
11と、ディスクキャッシュメモリ4内のデータブロッ
クの使用される頻度や有効/無効等の情報を持つキャッ
シュメモリ管理表12とを脩え、第3図に示す如く、中
央処理装置1が送出した入出力要求に基づき対応表11
の探索を行う。
The disk cache control device 3 includes a magnetic disk device 7
A correspondence table 11 that associates the data blocks in the disks of ~9 with the data blocks in the disk cache memory 4, and a cache that has information such as the frequency of use and validity/invalidity of the data blocks in the disk cache memory 4. As shown in FIG. 3, the correspondence table 11 is created based on the input/output requests sent by the central processing unit 1.
Explore.

この対応表11の探索は、処理の高速化を図るために中
央処理装置1が送出した機番とアドレスとデータ長に基
づき、ハツシュアルゴリズム等を使用する。対応表11
に中央処理装置1が入出力要求したデータブロックが、
ディスクキャッシュメモリ4に存在することを示してい
ると、即ち、ヒツトすると、管理表12の使用頻度を修
正して優先度を高めた後、中央処理装置1の要求がリー
ドかライトかを調べる。
This search of the correspondence table 11 uses a hash algorithm or the like based on the machine number, address, and data length sent by the central processing unit 1 in order to speed up the processing. Correspondence table 11
The data block that the central processing unit 1 requested for input/output is
If it indicates that it exists in the disk cache memory 4, that is, if it hits, the usage frequency in the management table 12 is corrected to increase the priority, and then it is checked whether the request from the central processing unit 1 is a read or a write.

中央処理装置1の要求がリードであると、ディスクキャ
ッシュ制御装置3はディスクキャッシュメモリ4からデ
ータブロックを読出し、主記憶装置2に転送する。又、
中央処理装置1の要求がライトであると、ディスクキャ
ッシュ制御装置3は指示プログラム10の指示に基づき
、中央処理装置1が指定した機番から、磁気ディスク装
置7〜9のセクタ長を認識する。
If the request from the central processing unit 1 is a read, the disk cache control device 3 reads the data block from the disk cache memory 4 and transfers it to the main storage device 2. or,
When the request from the central processing unit 1 is a write, the disk cache control unit 3 recognizes the sector length of the magnetic disk devices 7 to 9 based on the machine number specified by the central processing unit 1 based on the instruction from the instruction program 10.

例えば、磁気ディスク装置7が256バイトセクタの磁
気ディスク装置であり、磁気ディスク装置8が512バ
イトセクタの磁気ディスク装置であり、磁気ディスク装
置9が1024バイトセクタの磁気ディスク装置である
とすると、システムの初期設定情報がセクタ長を機番で
指示するため、機番が磁気ディスク装置7を指示してい
れば、主記憶装置2から読出したデータブロックを従来
と同様にキャッシュメモリ4に書込む。
For example, if the magnetic disk device 7 is a 256-byte sector magnetic disk device, the magnetic disk device 8 is a 512-byte sector magnetic disk device, and the magnetic disk device 9 is a 1024-byte sector magnetic disk device, the system Since the initial setting information indicates the sector length by machine number, if the machine number indicates the magnetic disk device 7, the data block read from the main storage device 2 is written to the cache memory 4 as in the conventional case.

機番が磁気ディスク装置8又は9を指示していれば、主
記憶装置2から読出したデータブロックを256バイト
単位で処理してディスクキャッシュメモリ4に書込む。
If the machine number indicates magnetic disk device 8 or 9, the data block read from main storage device 2 is processed in units of 256 bytes and written to disk cache memory 4.

例えば、主記憶装置2から読出したデータブロックが2
00バイトであれば、ディスクキャッシュメモリ4に2
00バイトのデータを書込み、残り56バイトをクリア
する。又、データブロックが500バイトならば、ディ
スクキャッシュメモリ4に500バイトのデータを書込
み、残り12バイトをクリアする。
For example, if the data blocks read from main memory 2 are 2
00 bytes, 2 in disk cache memory 4
Write 00 bytes of data and clear the remaining 56 bytes. Further, if the data block is 500 bytes, 500 bytes of data are written to the disk cache memory 4, and the remaining 12 bytes are cleared.

従って、例えば、ヒツトしたデータブロックが1024
バイトであるとすると、512バイト分が書替えられ、
残り512バイトは元のままとなる。
Thus, for example, if the hit data block is 1024
If it is a byte, 512 bytes are rewritten,
The remaining 512 bytes remain as they were.

ディスクキャッシュ制御装置3は、このようにして書替
えたディスクキャッシュメモリ4上のデータブロックを
、対応表11の要素に基づき、チャネル5を経て磁気デ
ィスク制御装置6に送出して、ヒツトしたデータブロッ
クが記録されていた磁気ディスク装置のヒツトしたデー
タブロックが書込まれていた磁気ディスク領域に再書込
みさせる。
The disk cache control device 3 sends the thus rewritten data block on the disk cache memory 4 to the magnetic disk control device 6 via the channel 5 based on the elements of the correspondence table 11, and identifies the hit data block. The hit data block of the magnetic disk device is rewritten in the magnetic disk area where the hit data block was written.

中央処理装置1が入出力要求したデータブロックが、デ
ィスクキャッシュメモリ4に存在しないことを対応表1
1が示していた場合、即ち、ミスヒツトした場合、ディ
スクキャッシュ制御装置3は、指定されたデータブロッ
クをディスクキャッシュメモリ4に書込んだ時の磁気デ
ィスク装置7゛〜9のディスク内のデータブロックと、
ディスクキャッシュメモリ4内のデータブロックとを対
応させる要素を対応表11内の空き項目に追加する。
Correspondence table 1 indicates that the data block requested for input/output by the central processing unit 1 does not exist in the disk cache memory 4.
1, that is, when there is a miss, the disk cache control device 3 writes the data block in the disk of the magnetic disk devices 7-9 at the time when the specified data block was written to the disk cache memory 4. ,
Elements that correspond to data blocks in the disk cache memory 4 are added to empty items in the correspondence table 11.

対応表11に空き項目が無い場合は、管理表12を参照
して、無効が指定されているデータブロックの要素の項
目を消去して、これを空き項目とする。そして、管理表
12に新たなデータブローツクを追加したこと、このデ
ータブロックが存効であること、使用頻度等を示す要素
を追加する。この時、使用頻度が少なく古いデータブロ
ックは優先度が低いと判定し無効とする。
If there is no free item in the correspondence table 11, the management table 12 is referred to, and the item of the element of the data block designated as invalid is deleted to make it a free item. Then, elements indicating the addition of a new data block, the validity of this data block, the frequency of use, etc. are added to the management table 12. At this time, old data blocks that are used less frequently are determined to have a lower priority and are invalidated.

そして、指定された機番とアドレスとデータ長に基づき
、チャネル5と磁気ディスク制御装置6を経て磁気ディ
スク装置7〜9の指定された機番を持つ磁気ディスク装
置からデータブロックを読出して、ディスクキャッシュ
メモリ4に書込み、中央処理装置1の要求がリードかラ
イトかを調べるルーチンに移行する。
Then, based on the specified machine number, address, and data length, the data block is read from the magnetic disk unit having the specified machine number of the magnetic disk units 7 to 9 via the channel 5 and the magnetic disk control unit 6, and the data block is The routine moves to a routine that writes data to the cache memory 4 and checks whether the request from the central processing unit 1 is a read or write request.

本実施例ではディスクキャッシュ制御装置を中央処理装
置とチャネルの間に設けたが、中央処理装置内にディス
クキャッシュ制御装置及びディスクキャッシュメモリを
設ける方法と、磁気ディスク制御装置に夫々ディスクキ
ャッシュ制御装置及びディスクキャッシュメモリを備え
る場合も同様であることは勿論である。
In this embodiment, the disk cache control device is provided between the central processing unit and the channel, but there is a method in which a disk cache control device and a disk cache memory are provided in the central processing unit, and a method in which a disk cache control device and a disk cache memory are provided in the magnetic disk control device, respectively. Of course, the same applies when a disk cache memory is provided.

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

以上説明した如く、本発明はセクタ長の異なるディスク
装置を混在させて接続した計算機システムにおいて、ソ
フトウェアやユーザ作成のアプリケーションプログラム
の修正を不要とすることが出来る。
As described above, the present invention can eliminate the need to modify software or user-created application programs in a computer system in which disk devices with different sector lengths are connected together.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す回路のブロック図、 第3図は第2図の動作を説明するフローチャート、第4
図はセクタ長を基準とするデータの複写を説明する図、 第5図はブロックの複写を説明する図、第6図は仮想記
憶方式のバッファ領域のレイアウトを説明する図である
。 図において、 1は中央処理装置、 2は主記憶装置、3はディスクキ
ャッシュ制御装置、 4はディスクキャッシュメモリ、 5はチャネル、    6は磁気ディスク制御装置、7
+ 8+ 9は磁気ディスク装置、 10は指示プログラム、11は対応表、12は管理表、
    13は指示手段である。 、Tりi日月のガ代p1フ”口・バロ 乎 1 ロ アP−発υ目の一寅施ツ″)ン示す(コル4のフロ・ツ
ノm羊 ? (2) 茅2図のφカッ下と虎口1円すろフロー+ヤード事3図
 (での2) (α’)        Cb)’   、(C)セフ
9シにとkllトリるチー2のネ賃写と言え明する口務
 4 図 フ゛口・ソ2のネ変写と言え日月するに悟 5  図 イ反厄S己−1・危方弐′のべ・ ソファ鋼力戊のレイア?7Fと 乙  口
FIG. 1 is a principle block diagram of the present invention, FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention, FIG. 3 is a flowchart explaining the operation of FIG. 2, and FIG.
FIG. 5 is a diagram for explaining data copying based on sector length, FIG. 5 is a diagram for explaining block copying, and FIG. 6 is a diagram for explaining the layout of a buffer area in a virtual storage system. In the figure, 1 is a central processing unit, 2 is a main storage device, 3 is a disk cache control device, 4 is a disk cache memory, 5 is a channel, 6 is a magnetic disk control device, 7
+8+9 is a magnetic disk device, 10 is an instruction program, 11 is a correspondence table, 12 is a management table,
13 is an instruction means. ,Tiri sun and moon mogadai p1fu"mouth・baro乎 1 lower P-first υth one time")n (col 4's furotsuno m sheep ? (2) 茅2 figure's φ Kakushita and Toraguchi 1 yen slot flow + yard matter 3 diagram (2) (α') Cb)', (C) mouthpiece that can be said to be a copy of Chi 2 who goes to Cef 9shi 4 It can be said that it is a modification of Figure 1/So 2, and it can be said that it is Sun Moon and Satoru. 7F and Otsuguchi

Claims (1)

【特許請求の範囲】 ディスクキャッシュメモリ(4)を備え、主記憶装置(
2)とディスク装置(7)(8)との間のデータ転送を
該ディスクキャッシュメモリ(4)を介して実行すると
共に、セクタ長の異なるディスク装置(7)(8)を混
在させて接続した計算機システムであって、 該ディスクキャッシュメモリ(4)を制御するディスク
キャッシュ制御装置(3)に、該ディスク装置(7)(
8)のセクタ長を認識させると共に、最小のセクタ長を
基準として該主記憶装置(2)から転送されたデータを
処理して該ディスクキャッシュメモリ(4)に書込ませ
る指示を行う指示手段(13)を設け、最小のセクタ長
を持つディスク装置以外のディスク装置にデータブロッ
クを書込む場合、該ディスクキャッシュメモリ(4)上
で、最小セクタ長毎に書替え処理してデータブロックを
完成させた後、該当ディスク装置に該データブロックを
書込むことを特徴とするセクタ長混在ディスクシステム
制御方式。
[Claims] A disk cache memory (4) is provided, and a main storage device (4) is provided.
Data transfer between 2) and the disk devices (7) and (8) is performed via the disk cache memory (4), and disk devices (7) and (8) with different sector lengths are connected together. The computer system includes a disk cache control device (3) that controls the disk cache memory (4), and a disk device (7) (
instruction means (8) for recognizing the sector length and instructing to process the data transferred from the main storage device (2) and write it into the disk cache memory (4) based on the minimum sector length; 13) is provided, and when a data block is written to a disk device other than the disk device with the minimum sector length, the data block is completed by performing rewriting processing for each minimum sector length on the disk cache memory (4). After that, the data block is written to the corresponding disk device.
JP63083838A 1988-04-05 1988-04-05 Computer system Expired - Lifetime JP2681986B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63083838A JP2681986B2 (en) 1988-04-05 1988-04-05 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63083838A JP2681986B2 (en) 1988-04-05 1988-04-05 Computer system

Publications (2)

Publication Number Publication Date
JPH01255918A true JPH01255918A (en) 1989-10-12
JP2681986B2 JP2681986B2 (en) 1997-11-26

Family

ID=13813847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63083838A Expired - Lifetime JP2681986B2 (en) 1988-04-05 1988-04-05 Computer system

Country Status (1)

Country Link
JP (1) JP2681986B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181610A (en) * 1992-01-07 1993-07-23 Hokkaido Nippon Denki Software Kk Magnetic disk device control system
JP2013205913A (en) * 2012-03-27 2013-10-07 Nec Corp Control device and control method of storage device, and computer program
JP2015064685A (en) * 2013-09-24 2015-04-09 日本電気株式会社 Storage management system, storage management method, program, and information processing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6097431A (en) * 1983-10-31 1985-05-31 Fujitsu Ltd Magnetic disk controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6097431A (en) * 1983-10-31 1985-05-31 Fujitsu Ltd Magnetic disk controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181610A (en) * 1992-01-07 1993-07-23 Hokkaido Nippon Denki Software Kk Magnetic disk device control system
JP2013205913A (en) * 2012-03-27 2013-10-07 Nec Corp Control device and control method of storage device, and computer program
JP2015064685A (en) * 2013-09-24 2015-04-09 日本電気株式会社 Storage management system, storage management method, program, and information processing system
US10162573B2 (en) 2013-09-24 2018-12-25 Nec Corporation Storage management system, storage management method, storage medium and information processing system

Also Published As

Publication number Publication date
JP2681986B2 (en) 1997-11-26

Similar Documents

Publication Publication Date Title
JP3422370B2 (en) Disk cache controller
JP2635023B2 (en) Label writing method for file data
JP3249868B2 (en) Array type storage system
US6470421B1 (en) Method and means for reducing device contention by random accessing and partial track staging of records according to a first DASD format but device mapped according to a second DASD format
TWI475385B (en) Method of programming memory cells and reading data, memory controller and memory storage device using the same
US7325112B2 (en) High-speed snapshot method
CN101840362A (en) Method and device for achieving copy-on-write snapshot
TW201643690A (en) Data storage system and specific instruction executing method thereof
CN109240939B (en) Method for rapidly processing solid state disk TRIM
JP2000298608A (en) Computer data storage medium and memory managing method
US5337197A (en) Method and system for maintaining directory consistency in magneto-optic media
JPH01255918A (en) Control system for disk system with mixed sector length
JPH11120044A (en) Data processing device, data processing method, data processing system, and recording medium
JP2004013786A (en) Data storage method and data storage control device
JP3376316B2 (en) Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor
JP3008801B2 (en) Storage device system and disk array controller
JP3335919B2 (en) Disk cache controller
JPH086843A (en) Semiconductor memory device
JPS61245253A (en) Virtual machine input/output control method
JP3861061B2 (en) Disk cache controller
JP2782842B2 (en) Disk cache device
JPH08272654A (en) File management device
JPH0235537A (en) Multiplexed volume update control method
JPH0743634B2 (en) Split volume control method
JPH06290547A (en) High-speed data transferring method