JPH05143457A - System and method for high-speed writing from computer system into memory system - Google Patents

System and method for high-speed writing from computer system into memory system

Info

Publication number
JPH05143457A
JPH05143457A JP3167047A JP16704791A JPH05143457A JP H05143457 A JPH05143457 A JP H05143457A JP 3167047 A JP3167047 A JP 3167047A JP 16704791 A JP16704791 A JP 16704791A JP H05143457 A JPH05143457 A JP H05143457A
Authority
JP
Japan
Prior art keywords
data
storage
storage means
processor
cache
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.)
Pending
Application number
JP3167047A
Other languages
Japanese (ja)
Inventor
Pei-Hu Lin
ペイ−フー・リン
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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to JP3167047A priority Critical patent/JPH05143457A/en
Publication of JPH05143457A publication Critical patent/JPH05143457A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE: To improve a data writing speed in a storage device, and to improve the performance of a system without damaging the maintenance of the data by providing a first processor, storage means, and data buffer means in a storage system, and providing a second processor in a computer system. CONSTITUTION: A computer system is provided with a processor unit 40 connected with a bus controller 41, and the bus controller 41 transmits data, address, and a control signal through an input and output bus 42 to a storage system 43. The storage system 43 is provided with a storage processor 47, data buffer means 49, and storage device 48. Then, a high speed writing flag is set, the ready state and busy state of the storage system 43 are observed by this flag, and when the data are transmitted to the storage system 43, the processor 40 of the computer system immediately ends a storage data writing cycle, and a processor time can be prevented from being wasted after the data are transmitted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、シングルタスクオペレ
ーティングシステムの下でコンピュータにより記憶シス
テムへデータを書き込む方法に関するものである。
FIELD OF THE INVENTION The present invention relates to a method for writing data to a storage system by a computer under a single task operating system.

【0002】[0002]

【従来の技術】一般的なタイプのコンピュータシステム
において、記憶装置の機械的な動作はプロセッサユニッ
トの処理速度よりずっと遅い。その結果として、プロセ
ッサは入出力処理が終了するまでしばしば待機しなけれ
ばならない。このため、コンピュータシステムの総合的
な性能を改善するためにより速い記憶装置が用いられて
きたが、コンピュータシステムのメインメモリの処理速
度と外部の記憶装置との間での不均衡により生じるディ
レイタイムは問題を残すものである。
2. Description of the Related Art In a general type of computer system, the mechanical operation of a storage device is much slower than the processing speed of a processor unit. As a result, the processor often has to wait until the I / O process is complete. Therefore, faster storage devices have been used to improve the overall performance of computer systems, but the delay time caused by the imbalance between the processing speed of the main memory of the computer system and external storage devices is It leaves a problem.

【0003】シングルタスクオペレーティング環境下で
或る時点においてアプリケーションプログラムが実行さ
れる際に、ディスクデータ読出をスピードアップさせる
一般的な方法は、その際に最も頻繁にアクセスされるデ
ィスクのデータをディスクキャッシュランダムアクセス
メモリ(RAM)へストアすることである。この方法に
おいて、ディスクデータは予め設定されたページ数に分
割される。あるコンピュータ文献においてこの方法はデ
ィスクキャッシュ手法と命名されている。ディスクキャ
ッシュRAM内には頻繁にアクセスされるデータのペー
ジがどんな時でも少なくとも一つはある。そして、要求
されたデータがディスクキャッシュ内にあれば、そのデ
ータはディスクキャッシュRAMからアプリケーション
プログラムへ直接転送される。また、要求されたデータ
がディスクキャッシュRAM内になければ、要求された
データを含むページの全てのディスクデータがディスク
から取り出されてディスクキャッシュRAMへストアさ
れ、これと同時に、要求されたデータはアプリケーショ
ンプログラムへ転送される。ほとんどのアプリケーショ
ンプログラムの特色である局所性(Locality)のため、
アプリケーションプログラムにより要求されたデータが
ディスクキャッシュRAM内に何時でもある可能性は非
常に高い。
A general method of speeding up disk data reading when an application program is executed at a certain point under a single-task operating environment is to cache the data of the disk most frequently accessed at that time in a disk cache. It is to store in random access memory (RAM). In this method, the disk data is divided into a preset number of pages. In some computer literature this method is named the disk cache approach. There is at least one page of frequently accessed data in the disk cache RAM at any given time. Then, if the requested data is in the disk cache, the data is directly transferred from the disk cache RAM to the application program. Also, if the requested data is not in the disk cache RAM, all the disk data of the page including the requested data is fetched from the disk and stored in the disk cache RAM, and at the same time, the requested data is stored in the application. Transferred to program. Due to Locality, which is a feature of most application programs,
It is very likely that the data requested by the application program will always be in the disk cache RAM.

【0004】上述のディスクキャッシュ手法を図1に示
す。同図において、ステップ10からディスクキャッシ
ュ手法が開始される。次いでステップ11において要求
されたデータがディスクキャッシュRAM内にあるかど
うかが決定される。要求されたデータがディスクキャッ
シュRAM内にある場合には、ステップ13においてそ
の要求されたデータはディスクキャッシュRAMからア
プリケーションプログラムへ直接転送され、次いでステ
ップ14においてこのアルゴリズムはリターンする。ま
た、要求されたデータがディスクキャッシュRAM内に
無い場合には、ステップ11はステップ12へと続き、
要求データを含むページの全てのディスクデータがディ
スクキャッシュRAMへストアされる。このステップ1
2の後、本手法はステップ13へと進み、要求されたデ
ータはアプリケーションプログラムへと転送される。
The disk cache technique described above is shown in FIG. In the figure, the disk cache method is started from step 10. Then in step 11 it is determined whether the requested data is in the disk cache RAM. If the requested data is in the disk cache RAM, then in step 13 the requested data is transferred directly from the disk cache RAM to the application program and then in step 14 the algorithm returns. If the requested data is not in the disk cache RAM, step 11 continues to step 12,
All disk data of the page including the requested data is stored in the disk cache RAM. This step 1
After 2, the method proceeds to step 13 where the requested data is transferred to the application program.

【0005】図2は従来技術によるディスクデータ書込
を実行するためのフローチャートを示すものである。こ
の手法はステップ20から始まり、ステップ23におい
て、要求がチェックされ、その要求がディスクデータ書
込要求であるかどうかが決定される。その要求がディス
クデータ書込要求でない場合には、ステップ27で入出
力システムプログラムをコールしてその要求に合った処
理を実行する。また、その要求がディスクデータ書込要
求である場合には、ステップ24において、その書込要
求に対応するディスクデータがディスクキャッシュRA
M内にあるかどうかがチェックされる。書込要求に対応
するディスクデータがディスクキャッシュRAM内に無
かった場合には、ステップ27において従来のディスク
データ書込が行われる。ここで、従来のディスクデータ
書込のフローチャートを図7に示すが、その説明は後述
することとする。また、書込要求に対応するディスクデ
ータがディスクキャッシュRAM内にあった場合には、
ステップ25においてディスクへの書込対象となるデー
タがディスクキャッシュRAMへ書き込まれてその記憶
内容が更新される。次いで実行の流れはステップ27へ
移り、ステップ28にてリターンする。
FIG. 2 shows a flowchart for executing disk data writing according to the prior art. The procedure begins at step 20 and at step 23 the request is checked to determine if it is a write disk data request. If the request is not a disk data write request, the input / output system program is called in step 27 to execute the processing suitable for the request. If the request is a disk data write request, in step 24, the disk data corresponding to the write request is the disk cache RA.
Check if it is in M. If there is no disk data corresponding to the write request in the disk cache RAM, conventional disk data writing is performed in step 27. Here, a flow chart of the conventional disk data writing is shown in FIG. 7, and the explanation thereof will be described later. If the disk data corresponding to the write request is in the disk cache RAM,
In step 25, the data to be written to the disk is written in the disk cache RAM and the stored contents are updated. Then, the flow of execution moves to step 27 and returns at step 28.

【0006】図3は従来技術における他のディスクデー
タ書込方法を示すものである。この方法はレイジー書込
(Lazy Write)またはディレイ書込(Delay Write)として
知られており、安定したオペレーティングシステム環境
の下で頻繁に用いられている。ステップ30において、
このレイジー書込はアプリケーションプログラムからの
要求がディスクデータ書込であるかどうかを決定する。
要求がディスクデータ書込である場合には、この手法は
ステップ31へと進み、一時作業記憶エリア内に書き込
まれているデータをメインメモリへストアする。このデ
ィスクデータ書込要求は所定の待ち行列の最低位置に入
れられる。一般に、この待ち行列に記憶されている要求
は、入出力動作を司るコントローラによって起動される
バックグラウンドタスクにより実行される。そして、ス
テップ31の後、コンピュータシステムのプロセッサは
このディスクデータ書込サイクルを完了し、他の命令を
実行する。また、ステップ30の結果として、要求がデ
ィスクデータ書込でなかった場合には、実行はステップ
34へと続き、その要求を処理するルーチンを実行した
後、ステップ35においてリターンする。また、このレ
イジー書込手法においてはフラグがセットされ、このフ
ラグの値により待ち行列が一杯であるか否かが示され
る。
FIG. 3 shows another conventional disk data writing method. This method is lazy writing
Known as Lazy Write or Delay Write, it is frequently used under a stable operating system environment. In step 30,
This lazy writing determines whether the request from the application program is a disk data write.
If the request is a disk data write, the method proceeds to step 31 and stores the data written in the temporary working storage area to main memory. This disk data write request is put in the lowest position of a predetermined queue. Generally, the requests stored in this queue are executed by a background task started by a controller that controls input / output operations. Then, after step 31, the processor of the computer system completes this disk data write cycle and executes another instruction. Also, as a result of step 30, if the request was not a disk data write, execution continues at step 34, where a routine is processed to process the request, and then return at step 35. Also, in this lazy writing technique, a flag is set and the value of this flag indicates whether the queue is full.

【0007】[0007]

【発明が解決しようとする課題】IBMのPCシリーズ
のようなパーソナルコンピュータシステムは安定した環
境ではないため、このレイジー書込手法はPC−DOS
のようなオペレーティング環境下で用いることは出来な
い。このPCシリーズコンピュータのユーザがこのコン
ピュータシステムを何時、意図的に、又は偶然にリセッ
トするかは分からない。このため、このパーソナルコン
ピュータの電源システムは環境によりその安定性が左右
されることになる。レイジー書込がこの種の環境下で用
いられた場合、電源がオフされたとすれば、たとえそれ
が極めて短い時間であったとしても、その際に一時作業
記憶エリア内に待ち行列となっているディスクデータ書
込要求のデータは永久に失われることになる。このた
め、レイジー書込手法をPC−DOS環境下で用いるこ
とは殆ど不可能である。
Since a personal computer system such as IBM's PC series is not a stable environment, this lazy writing method is used for PC-DOS.
It cannot be used in operating environments such as. It is not known when the user of this PC series computer will reset the computer system, either intentionally or accidentally. Therefore, the stability of the power supply system of this personal computer depends on the environment. When lazy writing is used in this type of environment, if it is powered off, it is queued in a temporary working storage area, even for a very short time. The data of the disk data write request will be lost forever. Therefore, it is almost impossible to use the lazy writing method in the PC-DOS environment.

【0008】現在、PC−DOSのような環境は、デー
タ保全のためにダイレクト書込手法を広く用いている。
この手法下で、ディスクデータ書込はアプリケーション
プログラムにより発せられ、データはこの手法によりデ
ィスクへ即座に書き込まれる。このため、コンピュータ
システムのプロセッサは待機してディスクデータ書込の
ステータスをチェックし続けなければならない。そし
て、データがディスクに書き込まれるまで他の命令は実
行されない。この手法はかなりのプロセッサタイムを浪
費するので、コンピュータシステムの性能が悪化する。
これは、プロセッサの処理速度に比較して記憶装置が遅
い場合に特に当てはまる。
Currently, PC-DOS-like environments widely use direct write techniques for data integrity.
Under this approach, disk data writes are issued by the application program and data is immediately written to the disk by this approach. Therefore, the processor of the computer system must wait and continue to check the status of the disk data write. Then, other instructions are not executed until the data is written to the disc. This approach wastes considerable processor time and degrades the performance of the computer system.
This is especially true when the storage is slow compared to the processing speed of the processor.

【0009】このように、伝達されたデータの保全性を
損なうこと無くデータの記憶装置への書込速度を改善す
ることが必要である。
Thus, there is a need to improve the speed of writing data to storage without compromising the integrity of the transmitted data.

【0010】[0010]

【課題を解決するための手段】本発明は、シングルタス
クオペレーティング環境の下でコンピュータシステムか
ら記憶システムへ高速データ書込を行うシステム及びそ
の方法を提供するものであり、データの保全性を損なう
こと無くシステムの性能を大幅に改善するものである。
本発明のシステムは、コンピュータシステムと記憶シス
テムとを備えたものであり、記憶システムは、第1のプ
ロセッサと、記憶手段と、少なくとも1個のデータバッ
ファ手段とを備えたものであり、コンピュータシステム
は第2のプロセッサを含むものである。
SUMMARY OF THE INVENTION The present invention provides a system and method for high-speed data writing from a computer system to a storage system under a single-task operating environment, which impairs data integrity. None, it greatly improves the system performance.
The system of the present invention includes a computer system and a storage system, and the storage system includes a first processor, a storage unit, and at least one data buffer unit. Includes a second processor.

【0011】高速書込フラグは、本発明の方法により第
2のプロセッサによってセットされ、セットされた場合
には記憶システムのビジー状態を示すものである。高速
データ書込方法の好ましい具体例は、 1.記憶システムがレディ状態にあるのかビジー状態に
あるのかを決定するために高速書込フラグの値をチェッ
クし、 2.記憶システムがビジー状態である場合には上述のチ
ェックを繰り返し、 3.記憶システムがレディ状態である場合には、高速書
込フラグをセットしてビジー状態であることを示し、記
憶システムに書き込まれたデータの記憶システムのデー
タバッファ手段への伝送を可能とし、 4.データ書込サイクルを終了する、というステップを
含むものである。
The fast write flag is set by the method of the present invention by the second processor and, when set, indicates the busy state of the storage system. A preferred specific example of the high-speed data writing method is: 1. Check the value of the fast write flag to determine if the storage system is ready or busy. 2. If the storage system is busy, repeat the above check, When the storage system is in the ready state, the high speed write flag is set to indicate that the storage system is in a busy state, and the data written in the storage system can be transmitted to the data buffer means of the storage system. This includes the step of ending the data write cycle.

【0012】[0012]

【実施例】本発明のシステムの好ましい具体例を図4に
示す。このコンピュータシステムは、バスコントローラ
41に接続されたプロセッサユニット40を備えたもの
である。このバスコントローラ41は、入出力バス42
を介して記憶システム43へデータ、アドレス、制御信
号を送る。この記憶システム43は、記憶プロセッサ4
7と、データバッファ手段49と、記憶装置48とを備
えたものである。また、このコンピュータシステムは更
にキャッシュ記憶手段44を備えたものである。このキ
ャッシュ記憶手段44は、このシステムの他の記憶手段
内にユーザが任意に設けても良いものである。例えば、
記憶システム43内にキャッシュ記憶手段44を設ける
ことが出来る。また、基本入出力システム45とランダ
ムアクセスメモリ(RAM)46とがバスコントローラ
41に接続されている。このRAM46は本発明を実行
するプログラムと、高速書込フラグ(以下、FW(Fast
Write)フラグと略す)等の本発明にて用いられるフラ
グと、他の必要なルーチンとがストアされたものであ
る。さらに、このRAM46はプログラムを実行するた
めの自由記憶エリアを有するものである。また、入出力
バス42はデータ、アドレス、制御、割込信号を伝送す
るための信号線を有するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the system of the present invention is shown in FIG. This computer system includes a processor unit 40 connected to a bus controller 41. The bus controller 41 includes an input / output bus 42.
Data, address, and control signals are sent to the storage system 43 via. The storage system 43 includes a storage processor 4
7, a data buffer means 49, and a storage device 48. Further, this computer system further comprises a cache storage means 44. The cache storage means 44 may be arbitrarily provided by the user in another storage means of this system. For example,
A cache storage means 44 may be provided in the storage system 43. A basic input / output system 45 and a random access memory (RAM) 46 are connected to the bus controller 41. The RAM 46 stores a program for executing the present invention and a high speed write flag (hereinafter, FW (Fast
(Write) flag) and other necessary routines are stored. Further, the RAM 46 has a free storage area for executing the program. The input / output bus 42 has a signal line for transmitting data, address, control and interrupt signals.

【0013】但し、以下の記述においては、説明を目的
とし、理解を容易とするため、記憶装置48としてハー
ドディスク記憶装置を用いることとする。しかしなが
ら、本発明は他の様々な公知の記憶装置と共に用いられ
ても良いということは当業者によって理解されるであろ
う。
However, in the following description, a hard disk storage device is used as the storage device 48 for the purpose of explanation and for easy understanding. However, it will be appreciated by those skilled in the art that the present invention may be used with various other known storage devices.

【0014】図5は本発明の好ましい具体例のフローチ
ャートを示すものである。ステップ51において、シス
テムはアプリケーションプログラムの要求がディスク書
込要求であるかどうかをチェックする。アプリケーショ
ンプログラムの要求がディスク書込要求でない場合に
は、本発明の方法はステップ57へジャンプし、その要
求を処理する入出力プログラムを実行する。そして、実
行はリターンステップを行うステップ58へと続く。一
方、アプリケーションプログラムの要求がディスク書込
要求である場合には、システムはステップ52において
その要求に対応するデータがキャッシュ記憶手段44内
にあるかどうかを決定する。要求に対応するデータがキ
ャッシュ記憶手段44内にある場合にはステップ53が
実行され、書込データがキャッシュ記憶手段44へ書き
込まれる。
FIG. 5 shows a flow chart of the preferred embodiment of the present invention. In step 51, the system checks if the application program request is a disk write request. If the application program's request is not a disk write request, the method of the present invention jumps to step 57 and executes the I / O program which handles the request. Execution then continues to step 58 which performs a return step. On the other hand, if the request of the application program is a disk write request, the system determines in step 52 whether the data corresponding to the request is in the cache storage means 44. If the data corresponding to the request is in the cache storage means 44, step 53 is executed and the write data is written in the cache storage means 44.

【0015】ここで、FWフラグは、記憶システム43
がレディ状態にあるのかビジー状態にあるのかを示すた
めにセットされる。記憶システム43がレディ状態にあ
る場合には、記憶システム43のデータバッファ手段4
9内のデータはハードディスク記憶装置48に書き込ま
れており、データバッファ手段49は使用可能となる。
Here, the FW flag is the storage system 43.
Set to indicate if the is ready or busy. When the storage system 43 is in the ready state, the data buffer means 4 of the storage system 43
The data in 9 is written in the hard disk storage device 48, and the data buffer means 49 becomes usable.

【0016】そして、システムはステップ54において
FWフラグの値がレディ状態を意味するものであるかど
うかをチェックする。FWフラグの値がレディ状態を意
味するものでない場合には、本方法はレディ状態が検出
されるまでステップ54をループし、レディ状態が検出
されたとき、本方法はステップ55へと進み、FWフラ
グにビジー状態を意味する値をセットし、ハードディス
ク記憶装置48へ書き込まれるべきデータを記憶システ
ム43のデータバッファ手段49へ転送する。この後、
ステップ56においてディスクデータ書込サイクルを終
了し、リターンステップを実行する。一般に、ステップ
56の出口では記憶システム43はまだビジー状態とな
っている。
The system then checks at step 54 whether the value of the FW flag means ready. If the value of the FW flag does not imply a ready condition, the method loops through step 54 until a ready condition is detected, when a ready condition is detected, the method proceeds to step 55 where the FW A value indicating a busy state is set in the flag, and the data to be written in the hard disk storage device 48 is transferred to the data buffer means 49 of the storage system 43. After this,
At step 56, the disk data write cycle is ended, and the return step is executed. Generally, at the exit of step 56, storage system 43 is still busy.

【0017】この好ましい具体例によれば、データバッ
ファ手段49のデータが記憶プロセッサ47によりハー
ドディスクへ実際に書き込まれる際、記憶プロセッサ4
7はその書込処理の終了時にプロセッサユニット40へ
割込信号を出力する。この割込信号はプロセッサユニッ
ト40に図6に示すサービスルーチンを実行させる。同
図のステップ60において、プロセッサユニット40
は、ハードディスク記憶装置48のレディ状態を意味す
る値をFWフラグにセットする。このレディ状態におい
てのみ、記憶システム43は、アプリケーションプログ
ラムにより出力された次のディスクデータ読出要求、又
はディスクデータ書込要求を受け付けることが出来る。
この後、ステップ61においてリターンステップが実行
される。従来のダイレクト書込手法と本発明との違いを
より良く理解するため、ダイレクト書込手法のフローチ
ャートを図7に示す。
According to this preferred embodiment, when the data of the data buffer means 49 is actually written to the hard disk by the storage processor 47, the storage processor 4
7 outputs an interrupt signal to the processor unit 40 at the end of the writing process. This interrupt signal causes the processor unit 40 to execute the service routine shown in FIG. In step 60 of the figure, the processor unit 40
Sets in the FW flag a value meaning the ready state of the hard disk storage device 48. Only in this ready state, the storage system 43 can accept the next disk data read request or disk data write request output by the application program.
Then, in step 61, a return step is executed. To better understand the difference between the conventional direct writing method and the present invention, a flowchart of the direct writing method is shown in FIG.

【0018】同図のステップ71において、システム
は、要求がハードディスクデータ書込であるかどうかを
決定する。要求がハードディスクデータ書込である場合
には、ステップ72において要求に対応するデータがキ
ャッシュ記憶手段44内にあるかどうかを決定する。ス
テップ71において要求がハードディスクデータ書込で
ない場合には、ダイレクト書込手法はステップ77へ移
行し、この要求を処理する入出力ルーチンをコールした
後、ステップ78においてリターンステップが実行され
る。一方、ステップ72において要求に対応するデータ
がキャッシュ記憶手段44内にある場合には従来はステ
ップ73を実行している。このステップ73において、
ハードディスク記憶装置48への書込対象となるデータ
がキャッシュ記憶手段44へ書き込まれ、その記憶内容
が更新される。そして、ステップ74において、従来
は、ハードディスク記憶装置48への書込対象となるデ
ータを記憶システム43のデータバッファ手段49へ転
送し、完了フラグの値をビジー状態にセットする。この
ビジー状態とは、記憶システム43がハードディスクデ
ータ書込でビジーであるという意味であり、このデータ
書込が完了するまでは他のどんなデータ読出要求又はデ
ータ書込要求も禁止される。このステップ74の後、プ
ロセッサユニット40はステップ75を実行し、完了フ
ラグにレディ状態の値がセットされているかどうかをチ
ェックする。このレディ状態とは、ハードディスク記憶
装置48へのデータ伝送が完了し、記憶システム43が
他のデータ読出要求又はデータ書込要求を受け付けても
良いことを意味する。そして、完了フラグがレディ状態
にセットされていない場合には、本手法は、完了フラグ
がレディ状態にセットされるまでステップ75を実行し
続ける。そして、そのレディ状態が検出された後、本手
法はステップ76へと続き、このデータ書込サイクルを
終了してリターンステップを実行する。
In step 71 of the figure, the system determines whether the request is a hard disk data write. If the request is a hard disk data write, then in step 72 it is determined whether the data corresponding to the request is in the cache storage means 44. If the request is not hard disk data write in step 71, the direct write technique proceeds to step 77, calls an input / output routine to process the request, and then executes a return step in step 78. On the other hand, when the data corresponding to the request is found in the cache storage means 44 in step 72, step 73 is conventionally executed. In this step 73,
The data to be written in the hard disk storage device 48 is written in the cache storage means 44, and the stored contents are updated. Then, in step 74, conventionally, the data to be written in the hard disk storage device 48 is transferred to the data buffer means 49 of the storage system 43, and the value of the completion flag is set to the busy state. The busy state means that the storage system 43 is busy writing hard disk data, and any other data read request or data write request is prohibited until the data write is completed. After this step 74, the processor unit 40 executes the step 75 and checks whether or not the value of the ready state is set in the completion flag. The ready state means that the data transmission to the hard disk storage device 48 is completed and the storage system 43 may accept another data read request or data write request. Then, if the completion flag is not set to the ready state, the method continues executing step 75 until the completion flag is set to the ready state. Then, after the ready state is detected, the method continues to step 76, ending this data write cycle and performing a return step.

【0019】このステップ75の実行開始時からステッ
プ76の実行開始時までの時間は、ダイレクト書込手法
においてはプロセッサタイムの浪費である。従来の方法
においては、記憶システム43がビジー状態にある限
り、プロセッサユニット40は待機しなければならず、
どんな動作をも行うことが出来ない。これと対照的に、
本発明によれば、プロセッサユニット40は、データが
記憶システム43に送られるとすぐにディスクデータ書
込サイクルを終了する。このため、プロセッサユニット
40は、データが送られた後に時間を浪費するというこ
とがない。
The time from the start of execution of step 75 to the start of execution of step 76 is a waste of processor time in the direct writing method. In the conventional method, the processor unit 40 must wait as long as the storage system 43 is busy,
I can't do any action. In contrast to this,
According to the present invention, processor unit 40 ends the disk data write cycle as soon as the data is sent to storage system 43. Thus, the processor unit 40 does not waste time after the data has been sent.

【0020】また、レイジー書込手法においては待ち行
列が一杯であるか否かを示すフラグが用いられている。
本発明のFWフラグはこれに類似しているが、このFW
フラグは記憶システム43のビジー状態とレディ状態と
を示すものである。
Further, in the lazy writing method, a flag indicating whether or not the queue is full is used.
The FW flag of the present invention is similar to this, but this FW flag
The flag indicates the busy state and the ready state of the storage system 43.

【0021】端的に言えば、レイジー書込手法を実行す
るハードウェア上で走らせたアプリケーションプログラ
ムの実行速度は、従来のダイレクト書込手法を実行する
ハードウェア上で走らせたそれよりも速い。しかしなが
ら、データ保全の点において、従来のダイレクト書込手
法と本発明とは同等のものであり、また、レイジー書込
手法より遥かに優れたものである。
In short, the execution speed of the application program run on the hardware executing the lazy writing technique is faster than that running on the hardware executing the conventional direct writing technique. However, in terms of data integrity, the conventional direct writing method is equivalent to the present invention, and is far superior to the lazy writing method.

【0022】なお、上述した本発明の好ましい具体例は
説明を目的とするため簡素化され、また、本発明の方法
を実行するプログラムはこれを実行するためにメインメ
モリにストアされたものとして記載されている。本発明
の方法はハードウェア回路として容易に実施されるであ
ろうということを当業者は理解するであろう。このた
め、上述の好ましい具体例は説明のためのものであり、
これに限定されるものではない。本発明と等価である如
何なる自明の変形例も本発明の範囲である真の思想を逸
脱するものではない。
It should be noted that the preferred embodiments of the present invention described above have been simplified for purposes of explanation, and the programs for carrying out the method of the present invention have been described as being stored in main memory for execution thereof. Has been done. Those skilled in the art will understand that the method of the present invention may be easily implemented as a hardware circuit. Therefore, the preferred embodiments described above are for illustration purposes only,
It is not limited to this. Any obvious modification equivalent to the invention does not depart from the true idea which is within the scope of the invention.

【0023】[0023]

【発明の効果】本発明は上述のように、シングルタスク
オペレーティング環境にあるコンピュータシステムによ
る記憶システムへの高速データ書込方法であり、前記記
憶システムが、第1のプロセッサと、記憶手段と、少な
くとも1個のデータバッファ手段とを有し、このデータ
バッファ手段を介して前記記憶手段によりデータが受信
され、前記コンピュータシステムが第2のプロセッサを
有し、前記高速データ書込方法が、前記記憶システムが
ハードウェアレディ状態にあるのかまたはハードウェア
ビジー状態にあるのかを決定するために高速書込フラグ
の値を前記第2のプロセッサによりチェックし、このチ
ェックステップを繰り返し、前記記憶システムがビジー
状態にあるならば、前記高速書込フラグにビジー状態を
示す値をセットし、前記記憶システムがレディ状態にあ
るならば、前記第2のプロセッサにより前記記憶システ
ムの前記データバッファ手段へ伝送されて前記記憶シス
テムに書き込まれたデータを使用可能としてデータ書込
サイクルを終了するというステップを含むので、伝達さ
れたデータの保全性を損なうこと無くデータの記憶装置
への書込速度を改善し、これにより、システムの性能を
大幅に改善することが可能となる。
As described above, the present invention is a method for writing high-speed data to a storage system by a computer system in a single-task operating environment, wherein the storage system includes at least a first processor, storage means, and One data buffer means, data is received by the storage means via the data buffer means, the computer system has a second processor, and the high-speed data writing method is the storage system. Check the value of the fast write flag by the second processor to determine whether the storage system is in the hardware ready state or the hardware busy state, and repeats this check step to bring the storage system into the busy state. If there is, set a value indicating the busy state in the high speed write flag. If the storage system is ready, the step of activating the data transmitted by the second processor to the data buffer means of the storage system and written to the storage system and ending the data write cycle. , It improves the speed of writing data to the storage device without compromising the integrity of the transmitted data, which can significantly improve the performance of the system.

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

【図1】従来のディスクデータ読出方法を示すフローチ
ャートである。
FIG. 1 is a flowchart showing a conventional disc data reading method.

【図2】従来のディスクデータ書込方法を示すフローチ
ャートである。
FIG. 2 is a flowchart showing a conventional disc data writing method.

【図3】従来のレイジー書込方法を示すフローチャート
である。
FIG. 3 is a flowchart showing a conventional lazy writing method.

【図4】記憶装置への高速データ書込のためのコンピュ
ータシステムの好ましい具体例を示すブロック図であ
る。
FIG. 4 is a block diagram illustrating a preferred embodiment of a computer system for high speed data writing to a storage device.

【図5】本発明の方法の好ましい具体例を示すフローチ
ャートである。
FIG. 5 is a flow chart showing a preferred embodiment of the method of the present invention.

【図6】本発明の好ましい方法により用いられる処理ル
ーチンを示すフローチャートである。
FIG. 6 is a flow chart showing the processing routine used by the preferred method of the present invention.

【図7】従来のダイレクト書込手法を示すフローチャー
トである。
FIG. 7 is a flowchart showing a conventional direct writing method.

【符号の説明】[Explanation of symbols]

40 プロセッサユニット(第2のプロセッサ) 44 キャッシュ記憶手段 47 記憶プロセッサ(第1のプロセッサ) 48 記憶装置(記憶手段) 49 データバッファ手段 40 processor unit (second processor) 44 cache storage means 47 storage processor (first processor) 48 storage device (storage means) 49 data buffer means

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】シングルタスクオペレーティング環境にあ
るコンピュータシステムによる記憶システムへの高速デ
ータ書込方法であり、前記記憶システムが、第1のプロ
セッサと、記憶手段と、少なくとも1個のデータバッフ
ァ手段とを有し、このデータバッファ手段を介して前記
記憶手段によりデータが受信され、前記コンピュータシ
ステムが第2のプロセッサを有し、前記高速データ書込
方法が、 前記記憶システムがハードウェアレディ状態にあるのか
またはハードウェアビジー状態にあるのかを決定するた
めに高速書込フラグの値を前記第2のプロセッサにより
チェックし、 前記記憶システムがビジー状態にあるならばこのチェッ
ク処理を繰り返し、 前記記憶システムがレディ状態にあるならば前記高速書
込フラグにビジー状態を示す値をセットし、前記第2の
プロセッサによる前記記憶システムに書き込まれたデー
タの前記記憶システムの前記データバッファ手段への伝
送を可能とし、 データ書込サイクルを終了するというステップを含むこ
とを特徴とする方法。
1. A method for high-speed data writing to a storage system by a computer system in a single-task operating environment, wherein the storage system comprises a first processor, a storage means, and at least one data buffer means. Data is received by the storage means via the data buffer means, the computer system has a second processor, and the high-speed data writing method is such that the storage system is in a hardware ready state. Alternatively, the value of the high speed write flag is checked by the second processor to determine whether it is in the hardware busy state, and if the storage system is in the busy state, this check process is repeated, and the storage system is ready. If it is in the state, the high-speed write flag indicates a busy state Is set to enable transmission of data written in the storage system by the second processor to the data buffer means of the storage system, and ending the data write cycle. Method.
【請求項2】記憶システムからの割込要求が第2のプロ
セッサにより受信されたとき前記記憶システムがハード
ウェアレディ状態にあることを示す値を高速書込フラグ
にセットするというステップをさらに含むことを特徴と
する請求項1記載の方法。
2. The method further comprises the step of setting a fast write flag to a value indicating that the storage system is in a hardware ready state when an interrupt request from the storage system is received by the second processor. The method according to claim 1, characterized in that
【請求項3】コンピュータシステムが、最も頻繁にアク
セスされるデータをストアするためのキャッシュ記憶手
段をさらに含み、このキャッシュ記憶手段のデータアク
セス速度が記憶手段のデータアクセス速度よりも速く、 また、この方法が、前記記憶手段へ書き込まれるべきデ
ータに対応するデータが既に前記キャッシュ記憶手段内
にあるかどうかをチェックし、 その結果として、前記記憶手段へ書き込まれるべきデー
タに対応するデータが前記キャッシュ記憶手段内にあれ
ば、前記記憶手段へ書き込まれるべきデータを前記キャ
ッシュ記憶手段に書き込んでその記憶内容を更新すると
いうステップを、高速書込フラグの値をチェックするス
テップの前にさらに含むことを特徴とする請求項1記載
の方法。
3. The computer system further comprises cache storage means for storing the most frequently accessed data, the data access speed of the cache storage means being faster than the data access speed of the storage means. The method checks whether data corresponding to the data to be written to the storage means is already in the cache storage means, so that the data corresponding to the data to be written to the storage means is stored in the cache storage. If included in the means, the method further comprises the step of writing the data to be written in the storage means to the cache storage means and updating the storage contents thereof, before the step of checking the value of the high speed write flag. The method according to claim 1, wherein
【請求項4】記憶手段がハードディスク記憶装置である
ことを特徴とする請求項3記載の方法。
4. The method of claim 3 wherein the storage means is a hard disk storage device.
【請求項5】キャッシュ記憶手段が、ハードディスク記
憶装置よりも速いデータアクセス速度を有するデータ記
憶装置であることを特徴とする請求項4記載の方法。
5. The method of claim 4, wherein the cache storage means is a data storage device having a faster data access rate than the hard disk storage device.
【請求項6】記憶手段がフロッピィディスク記憶装置で
あることを特徴とする請求項3記載の方法。
6. The method of claim 3 wherein the storage means is a floppy disk storage device.
【請求項7】キャッシュ記憶手段がフロッピィディスク
記憶装置よりも速いデータアクセス速度を有するデータ
記憶装置であることを特徴とする請求項6記載の方法。
7. The method of claim 6 wherein the cache storage means is a data storage device having a faster data access rate than the floppy disk storage device.
【請求項8】記憶手段がテープ記憶装置であることを特
徴とする請求項3記載の方法。
8. The method of claim 3 wherein the storage means is a tape storage device.
【請求項9】キャッシュ記憶手段がテープ記憶装置より
も速いデータアクセス速度を有するデータ記憶装置であ
ることを特徴とする請求項8記載の方法。
9. The method of claim 8 wherein the cache storage means is a data storage device having a faster data access rate than a tape storage device.
【請求項10】記憶手段がフラッシュメモリ装置である
ことを特徴とする請求項3記載の方法。
10. The method of claim 3 wherein the storage means is a flash memory device.
【請求項11】キャッシュ記憶手段がフラッシュメモリ
装置よりも速いデータアクセス速度を有するデータ記憶
装置であることを特徴とする請求項10記載の方法。
11. The method of claim 10, wherein the cache storage means is a data storage device having a faster data access rate than a flash memory device.
JP3167047A 1991-07-08 1991-07-08 System and method for high-speed writing from computer system into memory system Pending JPH05143457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3167047A JPH05143457A (en) 1991-07-08 1991-07-08 System and method for high-speed writing from computer system into memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3167047A JPH05143457A (en) 1991-07-08 1991-07-08 System and method for high-speed writing from computer system into memory system

Publications (1)

Publication Number Publication Date
JPH05143457A true JPH05143457A (en) 1993-06-11

Family

ID=15842411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3167047A Pending JPH05143457A (en) 1991-07-08 1991-07-08 System and method for high-speed writing from computer system into memory system

Country Status (1)

Country Link
JP (1) JPH05143457A (en)

Similar Documents

Publication Publication Date Title
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
JPH03218514A (en) Method of optimizing size of i/o buffer and computer apparatus with optimized i/o buffer
JP2004185349A (en) Update data writing method using journal log
JP2003512670A (en) Linked list DMA descriptor architecture
KR950009455A (en) Digital signal processor
US6658537B2 (en) DMA driven processor cache
US6725348B1 (en) Data storage device and method for reducing write misses by completing transfer to a dual-port cache before initiating a disk write of the data from the cache
US5835957A (en) System and method for a fast data write from a computer system to a storage system by overlapping transfer operations
JP2006260525A (en) Cache circuit
CN112767978A (en) DDR command scheduling method, device, equipment and medium
JPH05143457A (en) System and method for high-speed writing from computer system into memory system
CN117055811A (en) Bus access command processing method, device, chip and storage medium
JPH09319657A (en) Processor with instruction read buffer
JP2001229074A (en) Memory controller and information processor and memory control chip
JPH0447350A (en) Main storage read/response control
CA2045258A1 (en) System and method for a fast data write from a computer system to a storage system
JPS6125168B2 (en)
JP3259095B2 (en) Data transfer method
JPH0628303A (en) Communication processing device
JPH0436847A (en) Method for selecting data transfer path
JPH0376501B2 (en)
JPH04113414A (en) Automatic application system for disk cache
JPH04113432A (en) Virtual storage control method
JPH0324612A (en) File update retrieving processor
JPH02307123A (en) Computer