JPH0431131B2 - - Google Patents

Info

Publication number
JPH0431131B2
JPH0431131B2 JP60252085A JP25208585A JPH0431131B2 JP H0431131 B2 JPH0431131 B2 JP H0431131B2 JP 60252085 A JP60252085 A JP 60252085A JP 25208585 A JP25208585 A JP 25208585A JP H0431131 B2 JPH0431131 B2 JP H0431131B2
Authority
JP
Japan
Prior art keywords
storage device
track
image buffer
contents
virtual 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.)
Expired - Lifetime
Application number
JP60252085A
Other languages
Japanese (ja)
Other versions
JPS62113231A (en
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 filed Critical
Priority to JP60252085A priority Critical patent/JPS62113231A/en
Publication of JPS62113231A publication Critical patent/JPS62113231A/en
Publication of JPH0431131B2 publication Critical patent/JPH0431131B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は拡張記憶装置の仮想デイスク制御方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a virtual disk control method for an expanded storage device.

〔従来の技術〕[Conventional technology]

従来より、主記憶装置とは別にこの主記憶装置
との間でデータの超高速転送が可能な拡張記憶装
置を設けた情報処理装置が知られている。このよ
うな従来の情報処理装置では、上記拡張記憶装置
は一時フアイルとしてのみ使用されており、この
ため、利用者が保持しているデータは従来と同様
に拡張記憶装置に比べて転送速度の格段に遅い例
えば磁気デイスク装置上で利用せざるを得なかつ
た。
2. Description of the Related Art Conventionally, information processing apparatuses have been known that are provided with an extended storage device that is capable of extremely high-speed data transfer between the main storage device and the main storage device. In such conventional information processing devices, the expanded storage device is used only as a temporary file, so the data held by the user is transferred at a much faster transfer speed than the expanded storage device. For example, it had to be used on a magnetic disk device because of its slow speed.

このような事情に鑑み、拡張記憶装置を永久フ
アイルとしても使用することができる拡張記憶装
置の制御方式が提案された(例えば特願昭59−
178722号参照)。これは、拡張記憶装置上のデー
タ形式を磁気デイスク装置と同様な形式とし、入
出力要求時に拡張記憶装置をあたかも磁気デイス
ク装置であるかのようにシミユレートするもので
ある。
In view of these circumstances, a control method for an extended storage device that can also be used as a permanent file has been proposed (for example, in Japanese Patent Application No.
(See No. 178722). This is to make the data format on the expanded storage device similar to that of a magnetic disk device, and to simulate the expanded storage device as if it were a magnetic disk device when an input/output request is made.

第7図は上記提案に係る制御方式の説明図であ
る。主記憶装置6と高速データ転送可能な拡張記
憶装置5を仮想デイスク装置として使用する場
合、利用者プログラム1,そのオブジエクトプロ
グラム2,オブジエクトプログラム2中に含まれ
るRTP(実行時入出力ルーチンであるランタイム
パツケージ)3,およびオペレーテイング・シス
テム(OS)4が介在する。仮想デイスク装置と
して使用する場合は、図示しない磁気デイスク装
置に格納されているデータを一旦主記憶装置6を
介して拡張記憶装置5に移すことが必要であり、
この処理は通常のユーテイリイテイプログラムに
よつて行なわれる。また、処理された結果は例え
ば出力されるか再び磁気デイスク装置に格納され
る。利用者プログラム1の変更なしに高速な仮想
デイスク装置としてのアクセスを可能とし、更に
データの退避等を円滑に処理できるようにするた
め、拡張記憶装置5上のデータ形式を磁気デイス
クと同様な形式としている。利用者プログラム1
からの仮想デイスク装置に対する入出力要求に対
し、RTP3は仮想デイスク装置に対する要求で
あることを識別すると、OS4に制御を渡す。OS
4では、拡張記憶装置をあたかも磁気デイスク装
置であるかのようにシミユレートし、入力要求に
対してはデータをプログラムに渡し、出力要求に
対してはカウント部や必要に応じてキー部を出力
すべきデータの先頭に付加し主記憶装置6を介し
て拡張記憶装置5上に格納する。
FIG. 7 is an explanatory diagram of the control method according to the above proposal. When using the main storage device 6 and the expansion storage device 5 capable of high-speed data transfer as a virtual disk device, the user program 1, its object program 2, and the RTP (runtime input/output routine) included in the object program 2 A runtime package) 3 and an operating system (OS) 4 are involved. When used as a virtual disk device, it is necessary to temporarily transfer data stored in a magnetic disk device (not shown) to the extended storage device 5 via the main storage device 6.
This processing is performed by a normal utility program. Further, the processed results are outputted or stored again in a magnetic disk device, for example. In order to enable access as a high-speed virtual disk device without changing the user program 1, and to enable smooth processing of data evacuation, etc., the data format on the extended storage device 5 is set to the same format as a magnetic disk. It is said that User program 1
When the RTP 3 identifies that the request is for a virtual disk device in response to an input/output request to the virtual disk device, it passes control to the OS 4. OS
4 simulates the extended storage device as if it were a magnetic disk device, passes data to the program in response to input requests, and outputs the count part and key part as necessary in response to output requests. It is added to the beginning of the target data and stored on the extended storage device 5 via the main storage device 6.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、磁気デイスク装置の動作をシミユレ
ートする際の例えばサーチ処理等においては拡張
記憶装置上の多くのレコードを参照する必要があ
る。一方、拡張記憶装置は主記憶装置とデータ転
送は可能であるが、一般にプロセツサからは直接
アクセスすることができない。従つて、レコード
単位で拡張記憶装置から主記憶装置へデータの転
送を行なつてレコードの参照を実施する方式によ
れば、拡張記憶装置と主記憶装置との間のデータ
転送が頻繁に必要となり、処理効率が低下すると
いう問題点がある。
By the way, when simulating the operation of a magnetic disk device, for example in search processing, it is necessary to refer to many records on the extended storage device. On the other hand, although extended storage devices can transfer data with the main storage device, they generally cannot be directly accessed by a processor. Therefore, according to the method of referencing records by transferring data from the expanded storage device to the main storage device on a record-by-record basis, data transfer between the expanded storage device and the main storage device is frequently required. , there is a problem that processing efficiency decreases.

本発明はこのような問題点を解決したもので、
その目的は、磁気デイスク装置の動作をシミユレ
ートする際における拡張記憶装置と主記憶装置と
の間の入出力頻度を少なくし得るようにすること
にある。
The present invention solves these problems,
The purpose is to reduce the frequency of input/output between the extended storage device and the main storage device when simulating the operation of a magnetic disk device.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、主記憶装
置および該主記憶装置との間でデータ転送が可能
な拡張記憶装置を有する情報処理装置における前
記拡張記憶装置の仮想デイスク制御方式におい
て、 前記拡張記憶装置上のデータ形式を磁気デイス
ク装置のデータ形式に合わせ前記拡張記憶装置を
仮想デイスク装置としてアクセスすることを可能
とする前記拡張記憶装置の仮想デイスク制御をす
るにあたり、前記主記憶装置上に仮想デイスク装
置における1トラツク分の最新イメージを保持す
るトラツクイメージバツフアを複数設け、仮想デ
イスク装置アクセス時に磁気デイスク装置の動作
をシミユレートする際は前記トラツクイメージバ
ツフア上でアクセスに必要なデータ参照の操作を
行ない、前記トラツクイメージバツフアと前記拡
張記憶装置との入出力はトラツク単位で行なうと
共に、前記拡張記憶装置から前記トラツクイメー
ジバツフアへのトラツク内容の読出しは何れのト
ラツクイメージバツフアにも必要とするトラツク
の内容が保持されていない場合に行ない、前記ト
ラツクイメージバツフアから前記拡張記憶装置へ
のトラツク内容の書込みは前記トラツクイメージ
バツフアに保持された内容を別のトラツク内容に
変更する場合および仮想デイスク装置に対するチ
ヤネルプログラムのシミユレートが終了した場合
であつて且つそれまで保持されたトラツクの内容
が更新されているにもかかわらずそれが前記拡張
記憶装置に反映されていないときに行なうように
する。
In order to achieve the above object, the present invention provides a virtual disk control method for an expanded storage device in an information processing apparatus having a main storage device and an expanded storage device capable of data transfer between the main storage device and the expanded storage device. When controlling the virtual disk of the expanded storage device by adjusting the data format on the storage device to the data format of the magnetic disk device and making it possible to access the expanded storage device as a virtual disk device, a virtual disk is created on the main storage device. A plurality of track image buffers are provided to hold the latest image for one track in a disk device, and when simulating the operation of a magnetic disk device when accessing a virtual disk device, data reference operations necessary for access are performed on the track image buffers. Input/output between the track image buffer and the extended storage device is performed on a track-by-track basis, and reading of track contents from the extended storage device to the track image buffer is necessary for any track image buffer. This is performed when the content of the track to be stored is not held, and the writing of the track content from the track image buffer to the extended storage device is performed when the content held in the track image buffer is changed to another track content. and when the simulation of the channel program for the virtual disk device has been completed, and even though the contents of the track held up to that point have been updated, they are not reflected in the expanded storage device. do.

〔作用〕[Effect]

主記憶装置上の複数のトラツクイメージバツフ
アには仮想デイスク装置の複数のトラツクの最新
イメージが保持され、磁気デイスク装置の動作を
シミユレートする際はこのトラツクイメージバツ
フア上でアクセスに必要なデータ参照の操作即ち
サーチ動作,リード動作,ライト動作等の操作が
行なわれ、拡張記憶装置と主記憶装置とのデータ
転送はトラツク単位で行なわれる。従つて、拡張
記憶装置と主記憶装置との間の入出力頻度はトラ
ツク単位で転送する分レコード単位で行なう場合
より減少する。また、拡張記憶装置からトラツク
イメージバツフアへのトラツク内容の読出しは何
れのトラツクイメージバツフアにも必要とするト
ラツクの内容が保持されていない場合に行なわ
れ、トラツクイメージバツフアから拡張記憶装置
へのトラツク内容の書込みはトラツクイメージバ
ツフアに保持された内容を別のトラツク内容に変
更する場合および仮想デイスク装置に対するチヤ
ネルプログラムのシミユレートが終了した場合で
あつて且つそれまで保持されたトラツクの内容が
更新されているにもかかわらずそれが拡張記憶装
置に反映されていないときに行なわれるから、よ
り拡張記憶装置とトラツクイメージバツフア間の
入出力回数は減少し、効率良くシミユレートが行
なわれる。
Multiple track image buffers on the main storage device hold the latest images of multiple tracks of a virtual disk device, and when simulating the operation of a magnetic disk device, data necessary for access is referenced on this track image buffer. Operations such as search operations, read operations, and write operations are performed, and data transfer between the extended storage device and the main storage device is performed in units of tracks. Therefore, the input/output frequency between the expanded storage device and the main storage device is reduced by transferring in units of tracks compared to the case of transferring in units of records. Also, the track contents are read from the extended storage device to the track image buffer when the required track contents are not held in any of the track image buffers. The track contents are written when the contents held in the track image buffer are changed to different track contents, and when the simulation of the channel program for the virtual disk device is completed and the contents of the tracks held until then are changed. Since this is performed when the update has not been reflected in the extended storage device, the number of inputs and outputs between the extended storage device and the track image buffer is reduced, and simulation is performed more efficiently.

〔実施例〕〔Example〕

第1図は本発明を適用する情報処理装置の一例
を示す要部ブロツク図であり、10は主記憶装
置、11は仮想デイスク装置として使用する拡張
記憶装置、12は主記憶装置10と拡張記憶装置
11との間でデータの入出力を行なう転送手段、
13はシミユレート実行手段14を有するプロセ
ツサである。このシミユレート実行手段14はプ
ロセツサのシミユレート実行プログラムにより実
行される。
FIG. 1 is a main part block diagram showing an example of an information processing device to which the present invention is applied, in which 10 is a main storage device, 11 is an expanded storage device used as a virtual disk device, and 12 is a main storage device 10 and expanded storage device. a transfer means for inputting and outputting data to and from the device 11;
13 is a processor having a simulation execution means 14; This simulation execution means 14 is executed by a simulation execution program of a processor.

拡張記憶装置11は、同図の点線で区画するよ
うな仮想デイスク装置のトラツクの容量を単位と
して管理されており、各区画には磁気デイスク装
置と同様な形式で1トラツク分のデータが格納さ
れる。
The extended storage device 11 is managed based on the track capacity of a virtual disk device, which is divided by the dotted line in the figure, and each partition stores one track's worth of data in a format similar to that of a magnetic disk device. Ru.

また主記憶装置10には、拡張記憶装置11の
区画すなわち一つのトラツクの容量と等しい容量
を有するトラツクイメージバツフア15が複数設
けられており、転送手段12はシミユレート実行
手段14の指示に応答して拡張記憶装置11と主
記憶装置10上の前記トラツクイメージバツフア
15との間でトラツク単位にデータの入出力を高
速で実行する。
The main storage device 10 is also provided with a plurality of track image buffers 15 having a capacity equal to the capacity of one track, that is, a partition of the extended storage device 11. Data input/output is performed in track units at high speed between the extended storage device 11 and the track image buffer 15 on the main storage device 10.

第2図〜第5図はシミユレート実行手段14が
行なう仮想デイスクのシミユレート処理の一例を
示す流れ図であり、第2図はシーク処理、第3図
はサーチ処理、第4図はライト処理、第5図はチ
ヤネルプログラムのシミユレート終了時に行なわ
れる処理をそれぞれ示す。
2 to 5 are flowcharts showing an example of virtual disk simulation processing performed by the simulation execution means 14, in which FIG. 2 is a seek process, FIG. 3 is a search process, FIG. 4 is a write process, and FIG. The figures each show the processing performed at the end of the simulation of the channel program.

仮想デイスク装置上のデータを書換える際、シ
ミユレート実行手段14はオブジエクトプログラ
ム等より与えられたチヤネルプログラム例えばシ
ーク,サーチ,ライトのチヤネルプログラムや二
つの連続したレコードのデータを書換えるチヤネ
ルプログラムであるシーク,サーチ,ライト,ラ
イトのチヤネルプログラム等に合致したシミユレ
ートを実施し、仮想デイスク装置からデータを読
出す際は同様にして与えられたシーク,サーチ,
リード等のチヤネルプログラムに合致したシミユ
レートを実施する。シーク,サーチ,リード,ラ
イト以外のコマンドが与えられた場合にも同様に
シミユレートが行なわれるが、以下の説明では上
記コマンドに関するシミユレート処理のみ説明す
る。
When rewriting data on the virtual disk device, the simulation execution means 14 uses a channel program given by an object program, for example, a seek, search, write channel program, or a channel program that rewrites data of two consecutive records. Simulates the seek, search, write, and write channel programs, etc., and executes the same seek, search, write, etc. when reading data from the virtual disk device.
Implement simulations that match channel programs such as leads. Simulation is similarly performed when commands other than seek, search, read, and write are given, but in the following explanation, only the simulation processing related to the above commands will be explained.

第1図において、仮想デイスク装置として使用
する拡張記憶装置11上のデータを書換えるとき
のシミユレートは例えば次のようにして行なわれ
る 即ち、シミユレート実行手段14は、先ず第2
図に示すようにシークコマンドで指定された番号
のトラツクの内容を保持するトラツクイメージバ
ツフアが主記憶装置10上に有るか否かを探し
(S1)、有ればその指定されたトラツクに注目し
てシーク処理を終了し、次のサーチ処理に移行す
る(S2,S7)。しかし、現在のトラツクイメージ
バツフアの何れにも指定されたトラツクが無いと
きは、目的とするトラツクをアクセスする為に使
用する適当なトラツクイメージバツフアを選択す
る(S3)。そして、選択したトラツクイメージバ
ツフアの内容が更新されているにもかかわらず拡
張記憶装置11に反映されていないかどうかを、
例えば各トラツクイメージバツフア対応に設けた
識別フラグ等を参照して判定し(S4)、反映され
ていればこの選択したトラツクイメージバツフア
に指定されたトラツクの内容を例えば第6図の矢
印302に示すように拡張記憶装置11から転送
し(S6)、反映されていなければこの選択したト
ラツクイメージバツフアの内容を第7図の矢印3
01に示すように拡張記憶装置11の対応する部
分へ書込み且つそのトラツクイメージバツフア対
応の識別フラグをリセツトし(S5)、その後、選
択したトラツクイメージバツフアに指定されたト
ラツクの内容を第6図の矢印302に示すように
拡張記憶装置11から転送する(S6)、そして、
ステツプS7へ移行する。
In FIG. 1, a simulation of rewriting data on an extended storage device 11 used as a virtual disk device is performed, for example, as follows. That is, the simulation execution means 14 first
As shown in the figure, a search is made to see if there is a track image buffer on the main memory 10 that holds the contents of the track with the number specified by the seek command (S1), and if there is, the specified track is noted. Then, the seek process ends and the process moves to the next search process (S2, S7). However, if the designated track is not found in any of the current track image buffers, an appropriate track image buffer to be used to access the target track is selected (S3). Then, check whether the contents of the selected track image buffer have been updated but are not reflected in the extended storage device 11.
For example, the determination is made by referring to the identification flag provided for each track image buffer (S4), and if the flag is reflected, the content of the track specified for this selected track image buffer is determined, for example, by the arrow 302 in FIG. As shown in FIG. 7, the contents of the selected track image buffer are transferred from the extended storage device 11 (S6), and if they are not reflected, the contents of the selected track image buffer are transferred to the
As shown in 01, the content of the track specified in the selected track image buffer is written to the corresponding part of the extended storage device 11 and the identification flag corresponding to the track image buffer is reset (S5). Transfer from the extended storage device 11 as shown by arrow 302 in the figure (S6), and
The process moves to step S7.

シミユレート実行手段14は、サーチ処理では
例えば第3図に示すように、先ず注目中のトラツ
クを保持するトラツクイメージバツフア上でサー
チコマンドで指定されたレコードを探し(S10)、
指定されたレコードが見つかれば、見つけたレコ
ードに注目してサーチ処理を終了しリード処理へ
移行する(S11、S19)。一方、見つからなけれ
ば、今注目したトラツクの次のトラツク番号のト
ラツクを保持しているトラツクイメージバツフア
を探し(S12)、有ればこの次のトラツクに注目
を移してステツプS10に戻り上記と同様なレコー
ドの探索を行なう(S13,S18)。また無ければ、
次のトラツクをアクセスする為に使用する適当な
トラツクイメージバツフアを選択し(S14)、こ
の選択したトラツクイメージバツフアの内容が更
新されているにもかかわらず拡張記憶装置11に
反映されていないかどうかをそのトラツクイメー
ジバツフア対応の識別フラグにより判定し
(S15)、反映されていればこの選択したトラツク
イメージバツフアに次のトラツクの内容を転送し
(S17)、反映されていなければこの選択したトラ
ツクイメージバツフアの内容を拡張記憶装置11
の対応する部分へ書込み且つその識別フラグをリ
セツトした後(S16)、選択したトラツクイメー
ジバツフアに次のトラツクの内容を拡張記憶装置
11から転送し(S17)、ステツプS18へ移行す
る。
In the search process, for example, as shown in FIG. 3, the simulation execution means 14 first searches for the record specified by the search command on the track image buffer that holds the track of interest (S10).
If the designated record is found, the search processing is ended with attention focused on the found record, and the process moves to read processing (S11, S19). On the other hand, if it is not found, search for a track image buffer that holds a track with the next track number of the track you are currently focusing on (S12), and if it is found, shift your attention to this next track and return to step S10 to repeat the above steps. A search for similar records is performed (S13, S18). If there is no more,
An appropriate track image buffer to be used to access the next track is selected (S14), and even though the contents of the selected track image buffer have been updated, they are not reflected in the extended storage device 11. The content of the next track is determined by the identification flag corresponding to that track image buffer (S15), and if it is reflected, the contents of the next track are transferred to this selected track image buffer (S17), and if it is not reflected, this track image buffer is The contents of the selected track image buffer are stored in the extended storage device 11.
After writing to the corresponding portion and resetting its identification flag (S16), the contents of the next track are transferred from the expanded storage device 11 to the selected track image buffer (S17), and the process moves to step S18.

またライト処理においては、シミユレート実行
手段14は例えば第4図に示す処理を行ない、第
6図の矢印303で示すように、サーチ処理で見
つけたレコードのデータを最初のライトコマンド
で指定されたバツフアWBF1の内容で書換え、
このトラツクイメージバツフア対応の識別フラグ
をリセツトする(S20)。そして、次のレコード
に注目してライト処理を終了する(S21)。もし、
チヤネルプログラムがシク,サーチ,ライト,ラ
イトの如くライトコマンドが連続す場合には、第
4図のライト処理が先のサーチ処理に続いて再び
実行され、ステツプS20で書換えたレコードの次
のレコードのデータを例えば第6図の矢印304
に示すように後続のライトコマンドで指定された
バツフアWBF2の内容で書換える処理が行なわ
れる。なお、後続のライトコマンドによつて書換
えるレコードが前のライトコマンドで書換えたレ
コードが属するトラツクと異なる場合にはシーク
処理,サーチ処理で説明したと同様な方法により
目的とするトラツクをトラツクイメージバツフア
上に確保して処理を進める。
In the write process, the simulate execution means 14 performs the process shown in FIG. 4, for example, and as shown by the arrow 303 in FIG. Rewrite with the contents of WBF1,
The identification flag corresponding to this track image buffer is reset (S20). Then, focusing on the next record, the write process ends (S21). if,
If the channel program includes consecutive write commands such as SHIK, SEARCH, WRITE, and WRITE, the write process shown in Figure 4 is executed again following the previous search process, and the write command of the record next to the record rewritten in step S20 is executed again. For example, the arrow 304 in FIG.
As shown in FIG. 2, the process of rewriting the buffer WBF2 with the contents specified by the subsequent write command is performed. Note that if the record to be rewritten by the subsequent write command is different from the track to which the record rewritten by the previous write command belongs, the target track can be moved to a track image back using the same method as explained for seek processing and search processing. Secure it on the front door and proceed with the process.

次に、仮想デイスク装置として使用する拡張記
憶装置11からデータを読出すときのシミユレー
ト動作について説明する。仮想デイスク装置から
データを読出すときのチヤネルプログラムとして
は例えばシーク,サーチ,リード等であり、シミ
ユレート実行手段14は、上記書換え処理と同様
に第2図のシーク処理と第3図のサーチ処理を行
なつてトラツクイメージバツフア上でサーチコマ
ンドにより指定されたレコードを探し出す。な
お、このシーク,サーチ処理においても書換え時
と同様に注目したいトラツクの内容を保持するト
ラツクイメージバツフアがないか或いは見つけた
いレコードを含むトラツクイメージバツフアがな
い場合には拡張記憶装置11の所定のトラツクの
内容を適当なトラツクイメージバツフアに転送す
る処理が行なわれ、またトラツクイメージバツフ
アに元あつたトラツクの内容が更新されいるにも
かかわらず拡張記憶装置11に反映されていなけ
れば上記転送前にそのトラツクイメージバツフア
の内容を拡張記憶装置11の対応する部分へ転送
する処理が行なわれる。上記シーク,サーチ処理
により指定されたレコードが探し出されると、リ
ード処理ではサーチコマンドで見つけたレコード
のデータをリードコマンドで指定されたバツフア
に転送する。
Next, a simulated operation when reading data from the extended storage device 11 used as a virtual disk device will be described. Channel programs for reading data from a virtual disk device include, for example, seek, search, read, etc., and the simulate execution means 14 executes the seek process in FIG. 2 and the search process in FIG. 3 in the same way as the rewriting process described above. Then, the record specified by the search command is searched on the track image buffer. Note that in this seek and search processing, as in the case of rewriting, if there is no track image buffer that holds the contents of the track of interest or there is no track image buffer that contains the record that is to be found, the predetermined location of the extended storage device 11 is If the contents of the track are transferred to the appropriate track image buffer, and the contents of the track originally stored in the track image buffer have been updated but are not reflected in the extended storage device 11, the above will occur. Before the transfer, processing is performed to transfer the contents of the track image buffer to the corresponding portion of the extended storage device 11. When the record specified by the seek and search processing is found, the read processing transfers the data of the record found by the search command to the buffer specified by the read command.

さて、シミユレート実行手段14は上述したよ
うなチヤネルプログラムのシミユレート処理を終
了すると、例えば第5図に示すように識別フラグ
がセツトされているトラツクイメージバツフアが
あればこのトラツクイメージバツフアの内容を例
えば第6図の矢印305に示すように拡張記憶装
置11の対応する部分へ転送し、対応する識別フ
ラグをリセツトする処理を行なう(S30)。この
処理からも分かるように、ライトコマンドが連続
するチヤネルプログラムであつても一つのライト
コマンド処理終了毎にトラツクイメージバツフア
の内容を拡張記憶装置へ反映させるのではなく、
チヤネルプログラム終了時に反映処理を実施する
ものである。
Now, when the simulation execution means 14 finishes the simulation processing of the channel program as described above, if there is a track image buffer whose identification flag is set as shown in FIG. For example, as shown by the arrow 305 in FIG. 6, the data is transferred to the corresponding portion of the extended storage device 11, and the corresponding identification flag is reset (S30). As can be seen from this process, even if the write command is a continuous channel program, the contents of the track image buffer are not reflected to the extended storage device every time one write command is processed.
Reflection processing is performed when the channel program ends.

なお、第2図および第3図に示す処理から分か
るように、コマンド列のシミユレートが終了して
も複数のトラツクイメージバツフア15には仮想
デイスク装置のトラツクの最新状態が保持されて
おり、次のシミユレートではこれらを参照するの
で、この点でも効率の良いシミユレートが可能で
ある。また、チヤネルプログラムのシミユレート
終了時にトラツクイメージバツフアの内容を拡張
記憶装置11へ反映するようにしているので、シ
ステム障害時におけるデータ消失が防止される。
As can be seen from the processing shown in FIGS. 2 and 3, even after the simulation of the command sequence is completed, the latest state of the tracks of the virtual disk device is maintained in the plurality of track image buffers 15, and the next Since these are referred to in the simulation, efficient simulation is possible in this respect as well. Furthermore, since the contents of the track image buffer are reflected in the extended storage device 11 when the simulation of the channel program ends, data loss in the event of a system failure is prevented.

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

以上説明したように、本発明は、主記憶装置上
のトラツクイメージバツフア中に仮想デイスク装
置として使用する拡張記憶装置におけるトラツク
の最新イメージを保持し、仮想デイスク装置アク
セス時にデイスク装置の動作をシミユレートする
際は前記トラツクイメージバツフア上でサーチ動
作,リード動作,ライト動作等のアクセスに必要
なデータ参照の操作を行ない、また拡張記憶装置
とトラツクイメージバツフアとの入出力はトラツ
ク単位で行なうものであるから、その分主記憶装
置と拡張記憶装置との間の入出力回数を少なくす
ることができ、更に、拡張記憶装置からトラツク
イメージバツフアへのトラツク内容の読出しは何
れのトラツクイメージバツフアにも必要とするト
ラツクの内容が保持されていない場合に行ない、
トラツクイメージバツフアから拡張記憶装置への
トラツク内容の書込みはトラツクイメージバツフ
アに保持された内容を別のトラツク内容に変更す
る場合および仮想デイスク装置に対するシミユレ
ートが終了した場合であつて且つそれまで保持さ
れたトラツクの内容が更新されているにもかかわ
らずそれが拡張記憶装置に反映されていないとき
に行なうようにしたので、より拡張記憶装置とト
ラツクイメージバツフア間の入出力回数が少なく
なる。従つて、システム障害時のデータ消失を防
ぎながら、拡張記憶装置とトラツクイメージバツ
フア間の入出力回数を最低限にしてシミユレート
処理を高速に行なうことができるという効果があ
る。
As explained above, the present invention maintains the latest image of tracks in an extended storage device used as a virtual disk device during a track image buffer on the main storage device, and simulates the operation of the disk device when accessing the virtual disk device. When doing so, data reference operations necessary for access such as search, read, and write operations are performed on the track image buffer, and input/output between the extended storage device and the track image buffer is performed on a track-by-track basis. Therefore, the number of inputs and outputs between the main storage device and the extended storage device can be reduced accordingly, and furthermore, the track contents can be read from the extended storage device to the track image buffer by either track image buffer. This is done when the contents of the track you need are not retained.
Track contents are written from the track image buffer to the extended storage device only when the contents held in the track image buffer are changed to other track contents and when the simulation for the virtual disk device is completed, and the track contents are retained until then. This is done when the contents of a track that has been updated have not been reflected in the expanded storage device, so the number of inputs and outputs between the expanded storage device and the track image buffer can be reduced. Therefore, it is possible to perform simulation processing at high speed by minimizing the number of inputs and outputs between the extended storage device and the track image buffer while preventing data loss in the event of a system failure.

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

第1図は本発明を適用する情報処理装置の一例
を示す要部ブロツク図、第2図はシミユレート実
行手段14が行なうシーク処理の一例を示す流れ
図、第3図はシミユレート実行手段14が行なう
サーチ処理の一例を示す流れ図、第4図はシミユ
レート実行手段14が行なうライト処理一例を示
す流れ図、第5図はシミユレート実行手段14が
行なうチヤネルプログラムのシミユレート終了時
処理の流れ図、第6図は仮想デイスク装置の書き
換え動作の説明図および、第7図は拡張記憶装置
5を仮想デイスク装置として使用する場合の制御
方式の説明図である。 図において、10は主記憶装置、11は拡張記
憶装置、12は転送手段、13はプロセツサ、1
4はシミユレート実行手段、15はトラツクイメ
ージバツフアである。
FIG. 1 is a block diagram of a main part showing an example of an information processing device to which the present invention is applied, FIG. 2 is a flowchart showing an example of a seek process performed by the simulation execution means 14, and FIG. 3 is a search process performed by the simulation execution means 14. FIG. 4 is a flow chart showing an example of a write process performed by the simulate execution means 14. FIG. 5 is a flow chart of a process performed by the simulate execution means 14 at the end of simulation of a channel program. FIG. 6 is a flow chart showing an example of a write process performed by the simulate execution means 14. FIG. 7 is an explanatory diagram of the rewriting operation of the device, and FIG. 7 is an explanatory diagram of the control method when the extended storage device 5 is used as a virtual disk device. In the figure, 10 is a main storage device, 11 is an expanded storage device, 12 is a transfer means, 13 is a processor, 1
4 is a simulation execution means, and 15 is a track image buffer.

Claims (1)

【特許請求の範囲】[Claims] 1 主記憶装置および該主記憶装置との間でデー
タ転送が可能な拡張記憶装置を有する情報処理装
置における前記拡張記憶装置の仮想デイスク制御
方式において、 前記拡張記憶装置上のデータ形
式を磁気デイスク装置のデータ形式に合わせ前記
拡張記憶装置を仮想デイスク装置としてアクセス
することを可能とする前記拡張記憶装置の仮想デ
イスク制御をするにあたり、前記主記憶装置上に
仮想デイスク装置における1トラツク分の最新イ
メージを保持するトラツクイメージバツフアを複
数設け、仮想デイスク装置アクセス時に磁気デイ
スク装置の動作をシミユレートする際は前記トラ
ツクイメージバツフア上でアクセスに必要なデー
タ参照の操作を行ない、前記トラツクイメージバ
ツフアと前記拡張記憶装置との入出力はトラツク
単位で行なうと共に、前記拡張記憶装置から前記
トラツクイメージバツフアへのトラツク内容の読
出しは何れのトラツクイメージバツフアにも必要
とするトラツクの内容が保持されていない場合に
行ない、前記トラツクイメージバツフアから前記
拡張記憶装置へのトラツク内容の書込みは前記ト
ラツクイメージバツフアに保持された内容を別の
トラツク内容に変更する場合および仮想デイスク
装置に対するチヤネルプログラムのシミユレート
が終了した場合であつて且つそれまで保持された
トラツクの内容が更新されているにもかかわらず
それが前記拡張記憶装置に反映されていないとき
に行なうようにしたことを特徴とする拡張記憶装
置の仮想デイスク制御方式。
1. In a virtual disk control method for an expanded storage device in an information processing device having a main storage device and an expanded storage device capable of data transfer between the main storage device, the data format on the expanded storage device is changed to a magnetic disk device. In order to control the virtual disk of the extended storage device so that the expanded storage device can be accessed as a virtual disk device according to the data format of A plurality of track image buffers are provided to hold the data, and when simulating the operation of a magnetic disk device when accessing a virtual disk device, data reference operations necessary for access are performed on the track image buffer, and the data reference operation necessary for access is performed on the track image buffer. Input/output to/from the extended storage device is performed on a track-by-track basis, and track contents are read from the extended storage device to the track image buffer when the required track contents are not held in any of the track image buffers. The writing of track contents from the track image buffer to the extended storage device is performed when changing the contents held in the track image buffer to another track contents and when simulating a channel program for a virtual disk device. The extended storage device is characterized in that the processing is performed when the track is completed and the content of the track held until then is not reflected in the expanded storage device even though it has been updated. Virtual disk control method.
JP60252085A 1985-11-12 1985-11-12 Virtual disk control system for extended storage device Granted JPS62113231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60252085A JPS62113231A (en) 1985-11-12 1985-11-12 Virtual disk control system for extended storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60252085A JPS62113231A (en) 1985-11-12 1985-11-12 Virtual disk control system for extended storage device

Publications (2)

Publication Number Publication Date
JPS62113231A JPS62113231A (en) 1987-05-25
JPH0431131B2 true JPH0431131B2 (en) 1992-05-25

Family

ID=17232338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60252085A Granted JPS62113231A (en) 1985-11-12 1985-11-12 Virtual disk control system for extended storage device

Country Status (1)

Country Link
JP (1) JPS62113231A (en)

Also Published As

Publication number Publication date
JPS62113231A (en) 1987-05-25

Similar Documents

Publication Publication Date Title
US5890208A (en) Command executing method for CD-ROM disk drive
US20060236051A1 (en) High-speed snapshot method
JPS6258479A (en) Label writing method for file data
JPH04229355A (en) Data access method and data processing system
JPH06250906A (en) Backup/recovery system for data developed in main storage device
JPH03160534A (en) Access control system for shared file
JP2586219B2 (en) High-speed media priority release exclusion method
JPS62239226A (en) Partial alteration of data record for direct access memory
JPS6369066A (en) Data correcting system on unrewritable medium
JPH0431131B2 (en)
JPH0431130B2 (en)
JPH01255028A (en) Method for making access to external storage device
JP2561394B2 (en) I / O control method
JP2912657B2 (en) File access processor
JP2735400B2 (en) Asynchronous I / O control method
JPH0337748A (en) External storage accessing system utilizing main storage
JPH04350741A (en) Access speed increasing method for indexed sequential file
JP3328849B2 (en) Data writing processor
JP2507399B2 (en) Database equipment
JPH06222890A (en) Data update control system for virtual disk device in extended storage mechanism
JPS59195753A (en) Control system of disc cache memory
JPS63280356A (en) Buffer management system for virtual disk device
JPH05233402A (en) Memory mapped file access system
JPH07244564A (en) Disk array device
JPH04111026A (en) Write system for updating history information to data base