JPH03164924A - Magnetic disk access system - Google Patents

Magnetic disk access system

Info

Publication number
JPH03164924A
JPH03164924A JP30537889A JP30537889A JPH03164924A JP H03164924 A JPH03164924 A JP H03164924A JP 30537889 A JP30537889 A JP 30537889A JP 30537889 A JP30537889 A JP 30537889A JP H03164924 A JPH03164924 A JP H03164924A
Authority
JP
Japan
Prior art keywords
command
magnetic disk
block
command block
queue
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
JP30537889A
Other languages
Japanese (ja)
Inventor
Masajiro Fukunaga
雅次郎 福永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP30537889A priority Critical patent/JPH03164924A/en
Publication of JPH03164924A publication Critical patent/JPH03164924A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process each access at high speed even though plural application programs have simultaneous accesses to a magnetic disk by processing with preference a command that satisfies the continuous command processing conditions. CONSTITUTION:A magnetic disk control part 4 accepts a command block 2 and registers it into a command queuing part 5. Then the part 4 carries out an access to a magnetic disk related to the block 2 satisfying the continuous command processing conditions and if included in the part 5. If not, the part 4 waits for a time equal to the command waiting time. Then the part 4 performs an access related to the block 2 having the largest waiting time in the part 5 if the part 4 cannot accept the block 2 that satisfies the continuous command processing conditions despite a due waiting time. Thus is possible to process each access to the magnetic disk at high speed when plural application programs 1 have simultaneous accesses to the magnetic disk.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は磁気ディスクアクセス力式に関し、特にマルチ
タスクのオペレーティングシステムによる磁気ディスク
アクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk access system, and more particularly to a magnetic disk access system using a multitasking operating system.

〔従来の技術〕[Conventional technology]

従来、この種の磁気ディスクアクセス方式は、例えば、
第2図に示すような構成で実現されていた(第2図は、
従来の磁気ディスクアクセス方式の一例の構成を示すブ
ロック図である)。
Conventionally, this type of magnetic disk access method uses, for example,
This was realized with the configuration shown in Figure 2 (Figure 2 shows
FIG. 1 is a block diagram showing the configuration of an example of a conventional magnetic disk access method.

以下に、第2図を参照して従来の磁気ディスクアクセス
方式の動作を説明する。
The operation of the conventional magnetic disk access method will be explained below with reference to FIG.

アプリケーションプロゲラ1.11〜1n(nは正整数
)中のそれぞれのアプリケ−ショップ1コグラム(以下
、アプリケーションプログラム11〜1n中の任意のア
プリケーションプログラムを示す場合には、[アプリケ
ーションプログラム1」として示す。コマンドブロック
21〜2nとコマンドブロック2との関係についても同
様)は、オペレーティングシステム(図示せず)内のコ
マンド管理部3に対し磁気ディスク(磁気ディスク装置
7上の磁気ディスク)のアクセス要求コマンドを発行す
る(アクセス要求コマンドを内容とするコマンドブロッ
ク2(磁気ディスクアクセス用のコマンドブロック2)
を発行する)。
Application program 1.1 program for each application program in 11 to 1n (n is a positive integer) The same applies to the relationship between the command blocks 21 to 2n and the command block 2), which sends a magnetic disk (magnetic disk on the magnetic disk device 7) access request command to the command management unit 3 in the operating system (not shown). (Command block 2 containing the access request command (command block 2 for magnetic disk access)
).

コマンド′管理部3は、オペレーティングシステム内の
磁気ディスク制御部31 (従来の磁気ディスクアクセ
ス方式における磁気ディスク制御部)に当り亥コマンド
フ゛ロック2を渡す。
The command management unit 3 passes the command block 2 to the magnetic disk control unit 31 (magnetic disk control unit in the conventional magnetic disk access method) in the operating system.

磁気ディスク制御部31は、アプリケーションプログラ
ム1から発行された当該コマンドプロ・ツク2を受け取
ると、磁気ディスク装置7に必要な110(inpuむ
/ o u t p u t )命令を発行し、磁気デ
ィスク装置7から1101了割込みがあるまでつ÷イト
 (wait)する。
When the magnetic disk control unit 31 receives the command program 2 issued from the application program 1, it issues the necessary 110 (input/out put) command to the magnetic disk device 7, and It waits until there is a 1101 completion interrupt from the device 7.

磁気ディスク装置7は、磁気ディスク制御部31から要
求されたi / o命令に関する処理(磁気ディスクア
クセス)を終了すると、磁気ディスク制御部31にi 
/ o終了割込みを通知する。
When the magnetic disk device 7 completes the processing (magnetic disk access) related to the I/O command requested by the magnetic disk controller 31, the magnetic disk device 7 sends the i/o command to the magnetic disk controller 31.
/o Notify end interrupt.

磁気ディスク制御部31は、i / o v!:子側込
みにより起動されると、コマンド管理部3に対してコマ
ンド終了通知を発行する。
The magnetic disk control unit 31 performs an i/o v! : When activated by the slave side, it issues a command completion notification to the command management unit 3.

これにより、コマンド管理部3は、磁気ディスクアクセ
ス用のコマンドブロック2を発行したアプリケーション
プログラム1にコマンド終了(当該コマンドブロック2
に関する処理の終了)を通知する。
As a result, the command management unit 3 causes the application program 1 that issued the command block 2 for magnetic disk access to terminate the command (the command block 2
notification of the completion of processing related to the above).

以上のような処理を経るごとにより、アプリケーション
プログラム1は、磁気ディスク装置7上の磁気ディスク
内のデータをアクセスしていた。
Through each of the above-described processes, the application program 1 accesses data in the magnetic disk on the magnetic disk device 7.

なお、磁気ディスク装置7では、その物理的特性より、
磁気ディスク上に記せされているデータを読み出すため
に以下に示す時間力(必要になる。
Note that, due to the physical characteristics of the magnetic disk device 7,
In order to read the data written on the magnetic disk, the following time is required.

■ 読出しヘッドを必要なデータが格納されているシリ
ンダまで移動する時間(シーク時間)■ 必要なデータ
が格納されているセクタが読出しヘッドの下まで回転す
るのに要する時間(回転待ち時間) ここて、シーク時間および回転待ち時間は、データを読
み出すときの磁気ディスク上の読出し対象のデータの位
置とその時蕉の読出し−・ソドの位置との相対関係によ
り大きぐ異なる。そのために、通常は平均j直を用いて
各時間を表現する。現在の磁気ディスク装置における各
時間は、−船釣におよそ次の値である。
■ Time required for the read head to move to the cylinder that stores the required data (seek time) ■ Time required for the sector that stores the required data to rotate to the bottom of the read head (rotation wait time) Here The seek time and rotational waiting time vary greatly depending on the relative relationship between the position of the data to be read on the magnetic disk and the position of the data read at that time. For this purpose, each time is usually expressed using the average j-time. Each time in the current magnetic disk device has approximately the following value for boat fishing.

■ 平均シーク時間・・・・20〜100ms■ 平均
回転待ち時間・・・約8m s〔発明が解決しようとす
る課題〕 上述した従来の磁気ディスクアクセス方式では、複数の
アプリケーションプログラム(例えば、第2図中のアプ
リケーションプログラム11〜ln中の複数のアプリケ
ーションプログラム1)から同時に磁気ディスクアクセ
スが行われると、以下に示すような理由により磁気ディ
スクアクセスに要する時間が増大するという欠点がある
■ Average seek time: 20 to 100 ms ■ Average rotational waiting time: approximately 8 ms [Problem to be solved by the invention] In the conventional magnetic disk access method described above, multiple application programs (for example, the second If a plurality of application programs 1) among the application programs 11 to ln in the figure access the magnetic disk at the same time, there is a drawback that the time required for the magnetic disk access increases for the following reasons.

磁気ディスクアクセスに要する時間が増大する理由につ
いて、第2図ならびに第3図(a)および(b)を参照
して説明する。
The reason why the time required to access the magnetic disk increases will be explained with reference to FIG. 2 and FIGS. 3(a) and 3(b).

複数のアプリケーションプログラム1から磁気ディスク
制御部31に対して磁気ディスクアクセス用のコマンド
ブロック2が発行されると、各コマンドプロ・7り2は
発行された順にコマンド管理部3から磁気ディスク制御
部31に渡される。
When command blocks 2 for magnetic disk access are issued from the plurality of application programs 1 to the magnetic disk control unit 31, each command block 2 is sent from the command management unit 3 to the magnetic disk control unit 31 in the order in which they are issued. passed to.

通常、アプリケーションプログラムlは同一のプロセス
(磁気ディスク制御部31も1つのプロセスである)に
は1つのコマンドブロック2しか発行しないために、ア
プリケーションプログラム1i(・iは1〜nの正整数
)がコマンドブロック21に基づく磁気ディスクアクセ
スを行っている間に他のアプリケーションプログラム1
j(jはi以外のl−nの正整数)が磁気ディスクアク
セス用のコマンドブロック2jを発行すると、磁気ディ
スク制御部3Iはアプリケーションプログラム11から
の磁気ディスクアクセスが終了するとアブリゲーノヨン
プログラJ・1」からの磁気ディスクアクセスを行うこ
とになる。
Normally, since the application program l issues only one command block 2 to the same process (the magnetic disk control unit 31 is also one process), the application program li (i is a positive integer from 1 to n) While performing magnetic disk access based on command block 21, other application programs 1
j (j is a positive integer of l-n other than i) issues a command block 2j for magnetic disk access, and when the magnetic disk access from the application program 11 is completed, the magnetic disk control unit 3I executes the application program J. The magnetic disk will be accessed from "1".

個々のアプリケーションプログラム1は通常異なるファ
イル(磁気ディスク装置7にの磁気ティスフ内のファイ
ル)をアクセスすることか多く、それらのファイルは磁
気ディスク内の異なるシリンダに71コケートされてい
ることが多いので、」二連のアプリケーションプログラ
ム1jからの磁気ディスクアクセスを行うためにはシー
ク時間を必要とずするごとが多い。
Each application program 1 usually accesses different files (files in the magnetic disk of the magnetic disk device 7), and these files are often cocatenated in different cylinders in the magnetic disk. '' In order to access the magnetic disk from two series of application programs 1j, seek time is often not required.

したがって、磁気ディスク制御部31は、複数のアプリ
ケーションプログラム1から渡された複数のコマンドブ
ロック2を順番に処理していく過程で、各コマンドブロ
ック2についてシークを行う必要が生じる可能性が高い
Therefore, in the process of sequentially processing a plurality of command blocks 2 passed from a plurality of application programs 1, it is highly likely that the magnetic disk control unit 31 will need to perform a seek for each command block 2.

ここで、上述したように、平均シーク時間は平均回転待
ち時間の数倍〜10数倍の大きさであるために、複数の
アプリケーションプログラムlから同時1すjに磁気デ
ィスクアクセス用のコマンドブロック2が発行された場
合の、特定のアプリケーションプログラム1の磁気ディ
スクアクセス時間は非常に大きくなる。
Here, as mentioned above, since the average seek time is several times to ten times as large as the average rotational waiting time, command blocks 2 for accessing the magnetic disk from multiple application programs simultaneously When the application program 1 is issued, the magnetic disk access time of the specific application program 1 becomes extremely long.

例えば、第3図(a)に示すような1つのアプリケ−シ
ョップ1:]グラム1からの複数回の磁気ディスクアク
セス(同一のアプリケーションプログラム1からの磁気
ディスクアクセスであるから、同一シリンダのデータの
アクセスである(シーク時間を必要としない)可能性が
高い)と、第3図(b)(第31習(b)中のrAP、
JおよびrAP2Jは互いに異なるアプリケーションプ
ログラム1を示している)に示すような2つのアプリケ
ジョンプログラム1からのそれぞれ複数回の磁気ディス
クアクセスとを比較すると、各アプリケーションプログ
ラム1の複数回の磁気ディスクアクセスに要する時間は
第3図(b)に示す場合のほうが極めて大きくなる。
For example, as shown in FIG. 3(a), multiple magnetic disk accesses from one application program 1:]gram 1 (the magnetic disk accesses are from the same application program 1, so data in the same cylinder is 3(b) (rAP in Lesson 31(b),
When comparing the multiple magnetic disk accesses from two application programs 1 as shown in (J and rAP2J indicate different application programs 1), it is found that the multiple magnetic disk accesses of each application program 1 are The time required is much longer in the case shown in FIG. 3(b).

本発明の目的は、上述の点に鑑み、複数のアプリケーシ
ョンプログラムから同時期に複数回の磁気ディスクアク
セスが行われる場合に、各磁気ディスクアクセスを高速
に処理することができる磁気ディスクアクセス方式を提
供することにある。
In view of the above points, an object of the present invention is to provide a magnetic disk access method that can process each magnetic disk access at high speed when multiple application programs access the magnetic disk multiple times at the same time. It's about doing.

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

本発明の磁気ディスクアクセス方式は、アプリケジョン
プログラムが二lマント管理部を介しC発行する磁気デ
ィスクアクセス用のコマンドブロックを受りイ」けてコ
マンドブロックキューに登録し、連続コマンド処理条件
を満たすコマントブl:1ツクがコマンドブロックキュ
ーに存在する場合には当該コマンドブロックに関する磁
気ディスクアクセスを実行し、連続コマンド処理条件を
満たすコマンドブロックがコマンドブロックキューに存
在しない場合にはコマンド待ち時間だけウェイI・し連
続コマンド処理条件を満たす磁気ディスクアクセス用の
コマンドブロックを受Lj付けるのを待ち、コマンド待
ち時間だけウェイトしたにもかかわらず連続コマンド処
理条件を満たすコマンドブロックを受け付けることかで
きないときにはコマンドブロックキューにおいて待ち時
間が最大のコマンドブロックに関する磁気ディスクアク
セスを実行する磁気ディスク制御部と、このルクタ気デ
ィスク制御部により設定され参照されるコマンドブロッ
クキューの管理(磁気ディスクアクセス用のコラン1ζ
ブロツクに関する連続コマンド処理条件の判定を含む)
を行う′:1マン1゛・1−ユーイング部と、前記磁気
ディスク制御部におりるウェイトに係るコマンド待ち時
間の管理を行うタイマ監視部とを有する。
In the magnetic disk access method of the present invention, an application program receives a command block for magnetic disk access issued via a second management unit, registers it in a command block queue, and satisfies continuous command processing conditions. Command block: If one block exists in the command block queue, performs magnetic disk access regarding the command block, and if there is no command block that satisfies the continuous command processing condition in the command block queue, waits for the command waiting time. - Waits for a command block for magnetic disk access that satisfies the continuous command processing condition to be accepted, and if it cannot accept a command block that satisfies the continuous command processing condition even after waiting for the command waiting time, the command block queue is sent. A magnetic disk control unit that executes magnetic disk access for the command block with the maximum waiting time, and a command block queue that is set and referenced by this random disk control unit (coran 1ζ for magnetic disk access).
(including determination of continuous command processing conditions related to blocks)
The magnetic disk drive apparatus includes a 1man 1'/1-Ewing section for performing the following operations, and a timer monitoring section for managing command waiting time related to waits sent to the magnetic disk control section.

〔作用〕[Effect]

本発明の磁気ディスクアクセス方式では、磁気ディスク
制御部が磁気ティスフアクセス用のコマンドブロックを
受け付けてコマンドブロックキエに登録し連続コマンド
処理条件を満たすコマンドブロックがコマンドブロック
キューに存在する場合には当該コマンドブロックに関す
る磁気ディスクアクセスを実行し連続コマンド処理条件
を満たすコマンドプロ・νりがコマンドブロックキュー
に存在しない場合にはコマンド待ち時間だりウェイトし
連続コマンド処理条件を満たす磁気ディスクアクセス用
のコマンドブロックを受け付けるのを待ちコマンド待ち
時間だけウェイトしたにもかかわらず連続コマンド処理
条件を満たすコマンドブロックを受け付けることができ
ないときにはコマンドブロックキューにおいて待ら時間
が最大のコマンドブロックに関する磁気ディスクアクセ
スを実行し、コマンドキューインク部が磁気ディスク制
御部により設定され参照されるコマンドブロックキュー
の管理を行い、タイマ監視部が磁気ディスク制御部にお
けるウェイトに係るコマンド待ち時間の管理を行う。
In the magnetic disk access method of the present invention, the magnetic disk control unit receives a command block for magnetic disk access, registers it in the command block queue, and if there is a command block that satisfies the continuous command processing condition in the command block queue, the corresponding command block is registered in the command block queue. If there is no command block queue in the command block queue that executes magnetic disk access related to the command block and satisfies the continuous command processing condition, the command block for magnetic disk access that satisfies the continuous command processing condition is If a command block that satisfies the continuous command processing condition cannot be accepted even after waiting for acceptance for the command waiting time, execute magnetic disk access for the command block with the longest waiting time in the command block queue, The command queue ink unit manages a command block queue set and referenced by the magnetic disk control unit, and the timer monitoring unit manages command waiting time related to wait in the magnetic disk control unit.

〔実施例〕〔Example〕

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

第1図は、本発明の磁気ディスクアクセス方式の一実施
例の構成を示すブロック図である。本実施例の磁気ディ
スクアクセス方式は、アプリケーションプログラム11
〜1nと、コマンドブロック21〜2nと、コマンド管
理部3と、磁気ディスク制御部4と、コマンドキューイ
ンク部5と、タイマ監視部6と、磁気ディスク装置7と
を含ん1 で構成されている(第2図に示す従来の磁気ディスクア
クセス方式と同一の構成要素は同一の符号で示している
)。
FIG. 1 is a block diagram showing the configuration of an embodiment of the magnetic disk access method of the present invention. The magnetic disk access method of this embodiment is based on the application program 11.
1n, command blocks 21 to 2n, a command management section 3, a magnetic disk control section 4, a command queue ink section 5, a timer monitoring section 6, and a magnetic disk device 7. (The same components as in the conventional magnetic disk access system shown in FIG. 2 are indicated by the same reference numerals).

第4図を参照すると、磁気ディスク制御部4の処理は、
ウェイトステップ401と、起動要因判定ステップ40
2と、コマンドブロック登録ステップ403と、コマン
ド実行中判定ステンプ404と、連続コマンド処理条件
満足コマンドブロック検索ステップ405と、コマンド
ブロック取出しステップ406と、k(kは自然数)加
算ステップ407と、コマンドブロック発行ステップ4
08と、コマンド実行中フラグONステン、プ409と
、コマンド終了通知ステップ410と、コマンド実行中
フラグOFFステップ411と、1w算出ステップ41
−2と、計時要求ステップ413と、kおよびtw設定
ステップ414と、待ちコマンドブロック有無判定ステ
ップ415と、先頭コマンドブロック取出しステップ4
16とからなる。
Referring to FIG. 4, the processing of the magnetic disk control unit 4 is as follows:
Wait step 401 and activation factor determination step 40
2, command block registration step 403, command execution determination step 404, continuous command processing condition satisfying command block search step 405, command block extraction step 406, k (k is a natural number) addition step 407, and command block Issue step 4
08, command execution flag ON step 409, command end notification step 410, command execution flag OFF step 411, 1w calculation step 41
-2, time measurement request step 413, k and tw setting step 414, waiting command block presence/absence determination step 415, and leading command block extraction step 4
It consists of 16.

第5図を参照すると、コマンドキューインク部2 5は、コマンド登録手段51と、コマンド取出し手段5
2と、コマンド検索手段53と、コマンドブロックキュ
ー54 (キューヘン1′ポインタ55およびキューテ
イルポインク56により待ちコマンドブロックを管理し
ている)とを含んで構成されている(各手段は磁気ディ
スク制御部4により使用される)。
Referring to FIG. 5, the command queue ink section 25 includes a command registering means 51 and a command extracting means 5.
2, command search means 53, and command block queue 54 (waiting command blocks are managed by queue 1' pointer 55 and queue tail pointer 56). Section 4).

第6図を参照すると、タイマ監視部6は、磁気ディスク
制御部4により使用される1時要求手段61を含んで構
成されている。
Referring to FIG. 6, the timer monitoring section 6 includes a one-time request means 61 used by the magnetic disk control section 4.

次に、このように構成された本実施例の磁気ディスクア
クナス方式の動作について説明する。
Next, the operation of the magnetic disk Acnus system of this embodiment configured as described above will be explained.

本実施例が適用される計算機システムで動作中のアプリ
ケーションプログラムであるアプリケーションプログラ
ム11〜1nは、磁気ディスク制御部4にコマンドを発
行するために、それぞれ1つのコマンドブロック21〜
2nを持っ′ζいる。
Application programs 11 to 1n, which are application programs running in the computer system to which this embodiment is applied, each have one command block 21 to 1n, in order to issue commands to the magnetic disk control unit 4.
There is ′ζ with 2n.

アプリケーションプログラムl(アプリケージジンプロ
グラム11〜in中の任意のアプリケーションプログラ
ム)が磁気ディスク制御部4にコマンドブロック2を発
行すると、オペレーティングシステム(図示せず)内の
コマンド管理部3は当該コマンドブロック2をオペレー
ティングシステム内の磁気ディスク制御部4に渡す。
When the application program l (any application program among the application engine programs 11 to 11) issues a command block 2 to the magnetic disk control unit 4, the command management unit 3 in the operating system (not shown) issues the command block 2. It is passed to the magnetic disk control unit 4 within the operating system.

磁気ディスク制御部4は、第4図のステップ401に示
すように、通常はウェイト(wait)している。
The magnetic disk control unit 4 normally waits, as shown in step 401 in FIG.

ステップ401におけるウェイト中に、上述のようにし
てコマンドブロック2の受付けが発生した場合の磁気デ
ィスク制御部4の処理について説明する。
The processing of the magnetic disk control unit 4 when the command block 2 is received as described above during the wait in step 401 will be described.

この場合には、磁気ディスク制御部4は、以下に示すよ
うな処理を行う (第4図ステップ403〜409参照
)。
In this case, the magnetic disk control unit 4 performs the following processing (see steps 403 to 409 in FIG. 4).

ステップ402の起動要因(ウェイトの状態から起動す
る要因。コマンドブロック受付け、i10終了割込みお
よびタイムアウト等が要因となる)の判定において起動
要因がコマンドブロック2の受付けの発生であると判定
されるので、受け付けたコマンドブロック2をコマンド
キューインク部5に渡す。コマンドキューインク部5内
のコマンド登録手段51は、当該コマンドブロック2を
コマンドブロックキュ−54に登録する。この登録は、
コマンドブロックキュ−54の最後尾を示すキューテイ
ルボインク56により指示されるコマンドブロック2(
第5図中ではコマンドプロ・7り2m(mは1〜nの正
整数))の後に当該コマンドブロック2を追加すること
により行われる(ステップ403)。
In step 402, in determining the activation factor (factor for activation from a wait state; factors include command block reception, i10 end interrupt, timeout, etc.), it is determined that the activation factor is the occurrence of reception of command block 2. The received command block 2 is passed to the command queue ink unit 5. The command registration means 51 in the command queue ink unit 5 registers the command block 2 in the command block queue 54. This registration is
Command block 2 (
In FIG. 5, this is done by adding the command block 2 after the command 7ri2m (m is a positive integer from 1 to n) (step 403).

次に、現在磁気ディスク装置7がコマンド実行中(磁気
ディスクアクセスの処理中)であるか否かを判定するく
ステップ404)。
Next, it is determined whether or not the magnetic disk device 7 is currently executing a command (processing a magnetic disk access) (step 404).

この判定で磁気ディスク装置7がコマンド実行中であれ
ば、ステップ401に戻りウェイトする。
If it is determined that the magnetic disk device 7 is executing the command, the process returns to step 401 and waits.

ステップ404の判定でコマンド実行中でなければ、磁
気ディスク装置7における現在のシリンダ位置く読出し
ヘッドの位置)と当該コマンドブロック2の内容である
磁気ディスクアクセスに係るシリンダ位置とを比較し、
その比較に基づいてコマンドブロックキュー54内に連
Vtコマンド処5 理条件を満たすコマンドブロック2が存在するか否かを
判定するために、コマンドキューインク部5内のコマン
ド検索手段53に制御を渡す。コマンド検索手段53は
、連続コマンド処理条件を満たすコマンドブロック2を
キューヘソドボインク55により指示されるコマンドブ
ロック2(第5図中ではコマンドブロック21)から順
次検索し、該当するコマンドブロック2が存在すればそ
のコマンドブロック2のコマンド番号を磁気ディスク制
御部4に返し、該当するコマンドブロック2が存在しな
ければエラー通知を磁気ディスク制御部4に返す(ステ
ップ405)。
If it is determined in step 404 that the command is not being executed, the current cylinder position (read head position) in the magnetic disk device 7 is compared with the cylinder position related to magnetic disk access, which is the content of the command block 2;
Based on the comparison, control is passed to the command search means 53 in the command queue ink unit 5 in order to determine whether or not there is a command block 2 that satisfies the continuous Vt command processing conditions in the command block queue 54. . The command search means 53 sequentially searches for command blocks 2 that satisfy the continuous command processing condition from the command block 2 (command block 21 in FIG. 5) instructed by the queue head ink 55, and determines whether a corresponding command block 2 exists. Then, the command number of the command block 2 is returned to the magnetic disk control unit 4, and if the corresponding command block 2 does not exist, an error notification is returned to the magnetic disk control unit 4 (step 405).

ここで、連続コマンド処理条件とは次式で示される条件
である。
Here, the continuous command processing condition is a condition expressed by the following equation.

2Δts 1C2−C1l<tw tw=tmax−2に Δts・・・1シリンダの平均シーク時間C1・・・・
現在のシリンダ位置 C2・・・・受付はコマンドブロックに係るシリンダ位
置 6 tw・・・・コマンド待ち時間 tma x・・最大コマンド待ち時間 k・・・・・連続コマンド処理回数 ステップ405の検索で連続コマンド処理条件を満たす
二ノマンドブロノク2が存在する場合には、当該コマン
ドブロック2をコマンドキューインク部5内のコマンド
ブロックキュー54から取り出すためにコマンド取出し
手段52に制御を渡す。
2Δts 1C2-C1l<tw tw=tmax-2 to Δts...Average seek time for one cylinder C1...
Current cylinder position C2...The reception is at cylinder position 6 related to the command block tw...Command waiting time tmax x...Maximum command waiting time k...Continuous command processing number Continuously by the search in step 405 If there is a second command block 2 that satisfies the command processing conditions, control is passed to the command extraction means 52 in order to extract the command block 2 from the command block queue 54 in the command queue ink section 5.

コマンド取出し手段52は、コマンド検索手段53の検
索結果であるコマンド番号で指定されたコマンドブロッ
ク2をコマンドブロックキュー54から取り出す(ステ
ップ406)。
The command extracting means 52 extracts the command block 2 specified by the command number, which is the search result of the command searching means 53, from the command block queue 54 (step 406).

さらに、kに1を加算しくステップ407)、当該コマ
ンドブロック2を磁気ディスク装置7に発行しくステッ
プ40B)、コマンド実行中フラグ(コマンド実行中で
ある場合にONが設定されるフラグ。磁気ディスク制御
部4の内部に存在する)をONにしくステップ409)
、ステップ401に戻りウェイトする。
Furthermore, 1 is added to k (step 407), the command block 2 is issued to the magnetic disk device 7 (step 40B), a command execution flag (a flag that is set to ON when a command is being executed. Magnetic disk control) Step 409)
, the process returns to step 401 and waits.

ステップ405の検索で連続コマンド処理条件を満たす
コマンドブロック2がコマンドブロックキュー54内に
存在しない場合(コマンド検索手段53からエラー通知
が返された場合)には、ステップ401に戻りウェイト
する。
If the command block 2 that satisfies the continuous command processing condition does not exist in the command block queue 54 in the search in step 405 (if an error notification is returned from the command search means 53), the process returns to step 401 and waits.

続いて、ステップ401におけるウェイト中に、i /
 O終了割込みが発生した場合の磁気ディスク制御部4
の処理について説明する。
Subsequently, during the wait in step 401, i/
Magnetic disk control unit 4 when an O end interrupt occurs
The processing will be explained.

この場合には、磁気ディスク制御部4は、以下に示すよ
うな処理を行う(第4図ステップ410〜413参照)
In this case, the magnetic disk control unit 4 performs the following processing (see steps 410 to 413 in FIG. 4).
.

ステップ402の起動要因の判定において起動要因がi
 / o終了側込みであると判定されるので、コマンド
管理部3にコマンドブロック2に関する処理の終了を通
知しくステップ410)、コマンド実行中フラグをOF
Fにする(ステップ411)。
In the determination of the activation factor in step 402, the activation factor is i.
/o Since it is determined that the end side is included, the command management section 3 is notified of the end of the processing related to command block 2 (step 410), and the command execution flag is set to OFF.
F (step 411).

次に、コマンド待ち時間tw (tw=tmax2’)
を計算しくステップ412)、そのコマンド待ち時間t
wの計時要求をタイマ監視部6に行う。タイマ監視部6
内の計時要求手段61は、指定された時間(コマンド待
ち時間tw)が経過すると副時要求元プロセス(磁気デ
ィスク制御部4)をウェイクアップ(wake  up
)する(ステップ413)。
Next, the command waiting time tw (tw=tmax2')
Step 412), the command waiting time t
A time measurement request for w is made to the timer monitoring unit 6. Timer monitoring section 6
When a specified time (command waiting time tw) has elapsed, the time measurement requesting means 61 wakes up the secondary time requesting process (magnetic disk control unit 4).
) (step 413).

ステップ413における計時要求を行った後に、ステッ
プ401に戻りウェイトする。
After issuing the time measurement request in step 413, the process returns to step 401 and waits.

最後に、ステップ401におけるウェイト中に、タイム
アウトが発生した場合(計時要求手段61からウェイク
アップされた場合)の磁気ディスク制御部4の処理につ
いて説明する。
Finally, the processing of the magnetic disk control unit 4 when a timeout occurs during the wait in step 401 (when woken up by the time measurement requesting means 61) will be described.

この場合には、磁気ディスク制御部4は、以下に示すよ
うな処理を行う(第4図ステップ414〜416参照)
In this case, the magnetic disk control unit 4 performs the following processing (see steps 414 to 416 in FIG. 4).
.

ステップ402の起動要因の判定において起動要因がタ
イムアウトの発生であると判定されるので、連続コマン
ド処理回数kを「1」に設定し、コマンド待ち時間tw
を[tmax−2Jに設定する(ステップ414)。
In the determination of the activation factor in step 402, it is determined that the activation factor is the occurrence of a timeout, so the number of consecutive command processings k is set to "1", and the command waiting time tw
is set to [tmax-2J (step 414).

次に、コマンドキューインク部5内に待ちコマンドブロ
ック(コマンドブロックキュー54を構9 成する未発行のコマンドブロック2)が存在するか否か
を判定する(ステップ415)。
Next, it is determined whether or not there is a waiting command block (an unissued command block 2 forming the command block queue 54) in the command queue ink unit 5 (step 415).

この判定で待ちコマンドブロックが存在する場合には、
コマンドキューインク部5内のコマンドブロックキュー
54から先頭のコマンドブロック2を取り出しくコマン
ド取出し手段52により取り出される)(ステップ41
6)、ステップ408に制御を移す。
If there is a waiting command block in this judgment,
(Step 41
6), control is transferred to step 408;

ステップ415の判定で待ちコマンドブロックが存在し
ない場合には、ステップ401に戻りウェイトする。
If it is determined in step 415 that there is no waiting command block, the process returns to step 401 and waits.

磁気ディスク制御部4は、以上のような処理を行うこと
により、アプリケーションプログラム11〜1nから発
行されるコマンドブロック21〜2nの中で連続コマン
ド処理条件を満たすコマンドを優先的に処理していく。
By performing the above-described processing, the magnetic disk control unit 4 preferentially processes commands that satisfy the continuous command processing condition among the command blocks 21 to 2n issued from the application programs 11 to 1n.

第7図は、連続コマンド処理回数にとコマンド待ち時間
twとの関係を示す図である。
FIG. 7 is a diagram showing the relationship between the number of consecutive command processings and the command waiting time tw.

この図に示すように、コマンド待ち時間twは連続コマ
ンド処理回数k(連続コマンド処理条件0 を連続的に満たす回数)が多くなるにしたがい急激に小
さくなる。このため、最大コマンド待ち時間tmaxを
適当に設定することにより、連続コマンド処理条件を満
たすコマンドブロックを連続して実行する回数を調整す
ることができる。これにより、同一のアプリケージ曲ン
プログラムIからのコマンドブロック2のみが受け付け
られ、他のアプリケーションプログラムl (当該アプ
リケーションプログラムlのコマンドブロック2)がロ
ックアウトするという事態を回避することができる。
As shown in this figure, the command waiting time tw decreases rapidly as the number of consecutive command processings k (the number of times the continuous command processing condition 0 is continuously satisfied) increases. Therefore, by appropriately setting the maximum command waiting time tmax, it is possible to adjust the number of consecutive executions of command blocks that satisfy the continuous command processing condition. Thereby, it is possible to avoid a situation where only the command block 2 from the same application program I is accepted and the other application program I (command block 2 of the application program I) is locked out.

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

以上説明したように本発明は、アプリケーションプログ
ラムから受り付げたコマンドブロックが連続コマンド処
理条件を満足するか否かの判定に基づいて磁気ディスク
アクセスを行うことにより、以下に示ずような利点■お
よび■が生じ、複数のアプリケーションプログラムから
同時期に複数回の磁気ディスクアクセスが行われても各
磁気ディスクアクセスを高速に処理することができると
いう効果がある。
As explained above, the present invention provides the following advantages by accessing the magnetic disk based on determining whether a command block received from an application program satisfies the continuous command processing condition. and (2) occur, and even if a plurality of application programs access the magnetic disk multiple times at the same time, each magnetic disk access can be processed at high speed.

■ 連続コマンド処理条件を満たすコマンドブロックの
発行を一定時間(コマンド待ち時間tw)だけ待つこと
により、不要なシーク回数を低減できる。
(2) By waiting for a certain period of time (command waiting time tw) to issue a command block that satisfies the continuous command processing conditions, the number of unnecessary seeks can be reduced.

■ 最大コマンド待ち時間tmaxを適正に調整するこ
とにより、同一のアプリケーションプログラムからのコ
マンドブロックのみが実行されて他のアプリケーション
プログラムからのコマンドブロックがロックアウトする
という事態を回避することができる(■に示すシーク回
数の低減を無制限に行おうとすると、上述のようなロッ
クアウトが生じるので、その弊害を防止している)。
■ By appropriately adjusting the maximum command waiting time tmax, it is possible to avoid a situation where only command blocks from the same application program are executed and command blocks from other application programs are locked out (see If an attempt is made to reduce the number of seeks shown in the table without limit, a lockout as described above will occur, so this problem is prevented.)

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は従来の磁気ディスクアクセス方式の一例の構成
を示すブロック図、 第3図(a)および(b)は従来の磁気ディスクアクセ
ス方式において複数のアプリケーションプロクラムから
同時期に複数回の磁気ディスクアクセスか行われたとき
の態様を説明するだめの図、第4図は第1図中の磁気デ
ィスク制御部の処理を示す流れ図、 第5図は第1図中のコマンドキューインク部の構成を示
づ=ブロック図、 第6図は第1しI中のタイマ監視部の構成を示すブロッ
ク図、 第7図は連続コマンド処理回数とコマンド待ら時間との
関係を示す図である。 図において、 11〜In・アブリケーソヨンプログラム、21〜2n
・コマンドブし1ツク、 3・・・・・コマンド管理部、 4・・・・・磁気ディスク制御部、 5・・・・・コマン)・−1−ニーインク部6・・・・
・タイマ監視部、 7・・・・・磁気ディスク装置、 51・・・・コマンド金銭手段、 52・・・・コマンド取出し手段、 3 53 ・ 4 55 ・ 56 ・ 1 コマンド検索手段、 コマンドブロックキュー ・キューヘソドボインク、 ・キューテイルボインク、 ・計時要求手段である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a block diagram showing the configuration of an example of a conventional magnetic disk access method. FIGS. FIG. 4 is a flowchart illustrating the processing of the magnetic disk control unit in FIG. , Figure 5 is a block diagram showing the configuration of the command queue ink unit in Figure 1, Figure 6 is a block diagram showing the configuration of the timer monitoring unit in Parts 1 and 7, and Figure 7 is a block diagram showing the configuration of the timer monitoring unit in Figure 1. FIG. 7 is a diagram showing the relationship between the number of times and command waiting time. In the figure, 11~In・Abrication Soyon Program, 21~2n
・Command book 1 click, 3...Command management section, 4...Magnetic disk control section, 5...Command)・-1-Knee ink section 6...
・Timer monitoring unit, 7...Magnetic disk device, 51...Command money means, 52...Command extraction means, 3 53 ・ 4 55 ・ 56 ・ 1 Command search means, Command block queue・Cue Hesodobo Ink, ・Cue Tail Boink, ・Time measurement request means.

Claims (1)

【特許請求の範囲】 アプリケーションプログラムがコマンド管理部を介して
発行する磁気ディスクアクセス用のコマンドブロックを
受け付けてコマンドブロックキューに登録し、連続コマ
ンド処理条件を満たすコマンドブロックがコマンドブロ
ックキューに存在する場合には当該コマンドブロックに
関する磁気ディスクアクセスを実行し、連続コマンド処
理条件を満たすコマンドブロックがコマンドブロックキ
ューに存在しない場合にはコマンド待ち時間だけウェイ
トし連続コマンド処理条件を満たす磁気ディスクアクセ
ス用のコマンドブロックを受け付けるのを待ち、コマン
ド待ち時間だけウェイトしたにもかかわらず連続コマン
ド処理条件を満たすコマンドブロックを受け付けること
ができないときにはコマンドブロックキューにおいて待
ち時間が最大のコマンドブロックに関する磁気ディスク
アクセスを実行する磁気ディスク制御部と、 この磁気ディスク制御部により設定され参照されるコマ
ンドブロックキューの管理を行うコマンドキューインク
部と、 前記磁気ディスク制御部におけるウェイトに係るコマン
ド待ち時間の管理を行うタイマ監視部とを有することを
特徴とする磁気ディスクアクセス方式。
[Claims] When an application program receives a command block for magnetic disk access issued via a command management unit and registers it in a command block queue, and a command block that satisfies continuous command processing conditions exists in the command block queue. If there is no command block in the command block queue that satisfies the continuous command processing condition, the command block for magnetic disk access that satisfies the continuous command processing condition is executed after waiting for the command waiting time. If a command block that satisfies the continuous command processing condition cannot be accepted even after waiting for the command waiting time, the magnetic disk executes magnetic disk access for the command block with the maximum waiting time in the command block queue. a control unit; a command queue ink unit that manages a command block queue set and referenced by the magnetic disk control unit; and a timer monitoring unit that manages a command waiting time related to a wait in the magnetic disk control unit. A magnetic disk access method characterized by:
JP30537889A 1989-11-24 1989-11-24 Magnetic disk access system Pending JPH03164924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30537889A JPH03164924A (en) 1989-11-24 1989-11-24 Magnetic disk access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30537889A JPH03164924A (en) 1989-11-24 1989-11-24 Magnetic disk access system

Publications (1)

Publication Number Publication Date
JPH03164924A true JPH03164924A (en) 1991-07-16

Family

ID=17944399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30537889A Pending JPH03164924A (en) 1989-11-24 1989-11-24 Magnetic disk access system

Country Status (1)

Country Link
JP (1) JPH03164924A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09106327A (en) * 1995-10-11 1997-04-22 Oki Techno Syst Lab:Kk Data transfer scheduling method
US6300042B1 (en) 1998-11-24 2001-10-09 Motorola, Inc. Lithographic printing method using a low surface energy layer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09106327A (en) * 1995-10-11 1997-04-22 Oki Techno Syst Lab:Kk Data transfer scheduling method
US6300042B1 (en) 1998-11-24 2001-10-09 Motorola, Inc. Lithographic printing method using a low surface energy layer
US6562553B2 (en) 1998-11-24 2003-05-13 Motorola, Inc. Lithographic printing method using a low surface energy layer

Similar Documents

Publication Publication Date Title
EP0848321B1 (en) Method of data migration
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
US4819203A (en) Control system for interruption long data transfers between a disk unit or disk coche and main memory to execute input/output instructions
JP2550311B2 (en) Multiple control system of magnetic disk
JPH03164924A (en) Magnetic disk access system
WO2003040948A1 (en) Computer and control method
JPH065518B2 (en) Data processing subsystem control method
JP3283928B2 (en) Disk controller
JP2523539B2 (en) I / O processing method
JP3252517B2 (en) I / O control method and I / O control system
JPH02165220A (en) Disk access control system
JP2704138B2 (en) Control method of magnetic disk cache
JP2005258735A (en) Db cooperation prefetch system
JPH07271519A (en) Disk controller
JPS62154159A (en) Burst multiplexer channel
JPH0391055A (en) Method for setting hardware lock, hardware lock controller, method and device for detecting hardware lock
JPH04307652A (en) Inter-multiprocessor communication system
JPH02238546A (en) Control processing system for input/output device
JP2000066905A (en) Method and device for task rising and wait processing in real time os
JPS5836373B2 (en) Access time variable device
JP2000010899A (en) Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded
JPH04270432A (en) Disk cache control system
JPS6252900B2 (en)
JPH04153837A (en) Timer request processing system
JPH02293954A (en) Right-of-using control method for storage device