JPH06139025A - Search key command processing method at the time of multitrack operation designation - Google Patents

Search key command processing method at the time of multitrack operation designation

Info

Publication number
JPH06139025A
JPH06139025A JP29271092A JP29271092A JPH06139025A JP H06139025 A JPH06139025 A JP H06139025A JP 29271092 A JP29271092 A JP 29271092A JP 29271092 A JP29271092 A JP 29271092A JP H06139025 A JPH06139025 A JP H06139025A
Authority
JP
Japan
Prior art keywords
magnetic disk
track
search
positioning
processing
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
JP29271092A
Other languages
Japanese (ja)
Inventor
Shigeru Sakamoto
茂 坂本
Hiromi Sugawara
広美 菅原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP29271092A priority Critical patent/JPH06139025A/en
Publication of JPH06139025A publication Critical patent/JPH06139025A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the deterioration of the processing efficiency of a magnetic disk even when a switching to the track of a different cylinder at the time of a search command processing by releasing the connection of a magnetic disk controller with the magnetic disk when a track positioning accompanying the movement of the cylinder occurs. CONSTITUTION:When the command of processing the search command over the plural tracks is issued from a processor 1, and the positioning of the track accomapanied by the movement of the cylinder occurs during the search operation, the connection of a magnetic disk controller 2 with a magnetic disk 3 is released. Therefore, the magnetic disk controller 2 can execute the other processing. The magnetic disk controller 2 commands the positioning of the track of the other cylinder to the magnetic disk 3. Then, when the positioning is ended, it is informed to the magnetic disk controller 2 by an interruption, and the magnetic disk controller 2 is connected with the magnetic disk 3, and the search is started.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ処理システムにお
ける磁気ディスクよりのキーデータサーチ方法に関し、
特にマルチトラック動作指定時におけるサーチキーコマ
ンドの処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for searching key data from a magnetic disk in a data processing system,
In particular, it relates to a search key command processing method when a multi-track operation is designated.

【0002】[0002]

【従来の技術】磁気ディスクへのデータのレコードは、
記録するデータの他に、レコードの標識を示すキー部お
よびフラグ、シリンダ番号、ヘッド番号等のレコードの
アドレスを示すカウント部が付加されて記録される。
2. Description of the Related Art A record of data on a magnetic disk is
In addition to the data to be recorded, a key portion indicating a record indicator and a count portion indicating a record address such as a flag, a cylinder number, and a head number are added and recorded.

【0003】データ処理において、しばしば、キー部の
キー番号を検索対象として磁気ディスクのサーチが行な
われる。このようなキー番号を検索対象とした磁気ディ
スクのサーチ方法の従来例を図2および図4を参照して
説明する。なお、図2は本発明の実施例の構成図である
が、ハードウェア的には従来例の構成も同じであるの
で、図2を参照することとする。また、図4は従来例の
動作説明図である。
In data processing, a magnetic disk is often searched by using the key number of the key portion as a search target. A conventional example of a magnetic disk search method in which such a key number is searched will be described with reference to FIGS. Although FIG. 2 is a configuration diagram of the embodiment of the present invention, since the configuration of the conventional example is the same in terms of hardware, FIG. 2 will be referred to. Further, FIG. 4 is an operation explanatory diagram of a conventional example.

【0004】動作説明においては、プロセッサ1より磁
気ディスク制御装置2に対して、磁気ディスク3のトラ
ックNよりN+2の間に記録されているレコードの中か
ら或るキー番号のレコードを検索させる場合を例に取っ
て説明する。また、この場合、トラックNとN+1は同
一シリンダに存在し、トラックN+2は別のシリンダに
存在するものとする。また、符号HAはホームアドレス
部、Cはカウント部、Kはキー部、Dはデータ部を示
す。
In the explanation of the operation, the case where the processor 1 causes the magnetic disk controller 2 to retrieve the record of a certain key number from the records recorded between the tracks N and N + 2 of the magnetic disk 3 will be described. An example will be explained. Further, in this case, it is assumed that the tracks N and N + 1 are in the same cylinder and the track N + 2 is in another cylinder. Reference numeral HA indicates a home address portion, C indicates a count portion, K indicates a key portion, and D indicates a data portion.

【0005】上述したように、プロセッサ1より磁気デ
ィスク制御装置2に対して、マルチトラック動作指定で
サーチキーコマンドが発行されると、磁気ディスク制御
装置2は磁気ディスク3に対して、最初のトラックNの
最初のレコードにヘッドの位置付けを指令し、位置付け
が完了すると磁気ディスク制御装置2と磁気ディスク3
とを結合し、図4に示すように、最初のレコード1より
最終レコードn+1を順次読出してキー部Kに記録され
ているキー番号が指定の値であるか否かの検索を実行す
る。
As described above, when the search key command is issued from the processor 1 to the magnetic disk control device 2 with the multi-track operation designation, the magnetic disk control device 2 causes the magnetic disk 3 to read the first track. The head positioning is commanded to the first record of N, and when the positioning is completed, the magnetic disk controller 2 and the magnetic disk 3
4, are combined, and as shown in FIG. 4, the last record n + 1 is sequentially read from the first record 1 to search whether the key number recorded in the key portion K is a designated value.

【0006】トラックNで検索されなかった場合は、次
のトラックN+1にヘッドを切替える。この場合、トラ
ックNとトラックN+1は同一シリンダに存在するた
め、ヘッド切替えのみで対処理し、順次検索が続行され
る。
If no track N is found, the head is switched to the next track N + 1. In this case, since the track N and the track N + 1 are in the same cylinder, the pair processing is performed only by switching the heads, and the search is continued.

【0007】トラックN+1においてもキーが検索され
なかった場合は、次のトラックN+2に切替えが行なわ
れる。この場合、トラックN+2のシリンダはトラック
N+1とは別シリンダであるため、トラックN+2より
検索を開始するまでには、ヘッドのトラックへの位置付
け、およびヘッドの最初のレコードへの位置付けが完了
後、検索が再開される。
If no key is found in the track N + 1, the next track N + 2 is selected. In this case, since the cylinder of the track N + 2 is a cylinder different from the track N + 1, by the time the search is started from the track N + 2, after the positioning of the head to the track and the positioning of the head to the first record are completed, the search is performed. Is resumed.

【0008】[0008]

【発明が解決しようとする課題】前述したように、従来
のマルチトラック動作指定でサーチキーコマンドが発行
されると、図4で説明したように、異なるシリンダのト
ラックへヘッドの切替えが行なわれる場合においても、
磁気ディスク制御装置と磁気ディスクは結合された状態
であった。
As described above, when the search key command is issued in the conventional multi-track operation designation, the heads are switched to the tracks of different cylinders as described with reference to FIG. Even in
The magnetic disk control device and the magnetic disk were in a coupled state.

【0009】異なるシリンダのトラックへヘッドを切替
える場合は、機械的動作および頭出しのためのディスク
の回転待ちがあるため、非常に長時間を要し、この間磁
気ディスク装置は磁気ディスクと結合状態、すなわち占
有されてしまうため、他の処理を実行することが出来
ず、処理効率を低下させる。
When the head is switched to the track of a different cylinder, it takes a very long time because of waiting for the rotation of the disk for mechanical operation and cueing. That is, since it is occupied, other processing cannot be executed, and the processing efficiency is reduced.

【0010】本発明は、前記問題を解決するためになさ
れたもので、サーチキーコマンド処理時に、異なるシリ
ンダのトラックに切替えが行なわれても、磁気ディスク
制御装置の処理効率を低下させないよう改良したマルチ
トラック動作指定時におけるサーチキーコマンド処理方
法を提供することを目的とする。
The present invention has been made to solve the above problem, and has been improved so that the processing efficiency of the magnetic disk controller is not deteriorated even when the tracks of different cylinders are switched during the processing of the search key command. It is an object to provide a search key command processing method when a multi-track operation is designated.

【0011】[0011]

【課題を解決するための手段】前述の課題を解決するた
めに、本発明が採用した手段を図1を参照して説明す
る。本発明のサーチキーコマンド処理方法は、サーチキ
ーコマンドを複数トラックにまたがって処理する磁気デ
ィスク制御装置において、サーチ動作途中におけるシリ
ンダの移動をともなうトラック位置付けが発生した場合
(処理11)に、磁気ディスク制御装置と磁気ディスク
との結合を解除(処理12)し、位置付けが完了(処理
13)したとき、再度磁気ディスク制御装置と磁気ディ
スクとを再結合(処理14)させるようにしたものであ
る。
Means adopted by the present invention for solving the above problems will be described with reference to FIG. According to the search key command processing method of the present invention, in a magnetic disk control device for processing a search key command across a plurality of tracks, when the track positioning accompanied by the movement of the cylinder during the search operation occurs (process 11), the magnetic disk is processed. The controller is disconnected from the magnetic disk (process 12), and when the positioning is completed (process 13), the magnetic disk controller and the magnetic disk are re-coupled (process 14) again.

【0012】[0012]

【作用】データ処理システムを構成するプロセッサより
サーチキーコマンドを複数トラックにまたがって処理す
るよう指令された場合に、サーチ動作途中においてシリ
ンダの移動をともなうトラックの位置付けが発生した場
合は、磁気ディスク制御装置と磁気ディスクとの結合を
解除する。そして、結合を解除した状態でトラックの位
置付け動作を行なわせ、位置付けが完了すると、再度磁
気ディスク制御装置と磁気ディスクとを結合させ、サー
チ動作を続行させる。
When the processor constituting the data processing system is instructed to process the search key command over a plurality of tracks and the positioning of the track accompanied by the movement of the cylinder occurs during the search operation, the magnetic disk control is performed. Release the connection between the device and the magnetic disk. Then, the track positioning operation is performed with the coupling released, and when the positioning is completed, the magnetic disk controller and the magnetic disk are coupled again and the search operation is continued.

【0013】以上のように、サーチキーコマンドを複数
トラックにまたがって実行中に、サーチ動作途中でシリ
ンダの移動をともなうトラック位置付けが発生したと
き、トラックの位置付けが完了するまで、磁気ディスク
を磁気ディスク制御装置より切り離すようにしたので、
切り離された期間は他の処理を実行でき、磁気ディスク
制御装置の処理効率を向上させることができる。
As described above, when the track positioning accompanied by the movement of the cylinder occurs during the search operation while the search key command is being executed over a plurality of tracks, the magnetic disk is replaced with the magnetic disk until the track positioning is completed. Since it was separated from the control device,
Other processing can be executed during the separated period, and the processing efficiency of the magnetic disk control device can be improved.

【0014】[0014]

【実施例】本発明の一実施例を図2および3を参照して
説明する。図2は本発明の実施例の構成図、図3は同実
施例の動作フローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described with reference to FIGS. 2 is a block diagram of the embodiment of the present invention, and FIG. 3 is an operation flowchart of the embodiment.

【0015】図2において、1はプロセッサ、2は磁気
ディスク制御装置、21は制御部、3は磁気ディスクで
ある。プロセッサ1より、マルチトラック動作指定でサ
ーチキーコマンドが発せられると、図3に示す動作フロ
ーチャートに基く処理が行なわれる。
In FIG. 2, 1 is a processor, 2 is a magnetic disk controller, 21 is a controller, and 3 is a magnetic disk. When the search key command is issued from the processor 1 by specifying the multi-track operation, the processing based on the operation flowchart shown in FIG. 3 is performed.

【0016】処理S1 処理S1では、指令された最初のトラックに位置付けを
行なわせる指令を磁気ディスク制御装置2の制御部21
より磁気ディスク3に発する。
Process S1 In process S1, the controller 21 of the magnetic disk controller 2 issues a command to position the first commanded track.
More emitted to the magnetic disk 3.

【0017】処理S2 処理S2では、磁気ディスク3は処理S1で指令された
トラックに位置付けを行い、位置付けが完了すると、磁
気ディスク制御装置2に対して割込みによって位置付け
完了を通知する。
Step S2 In step S2, the magnetic disk 3 positions the track instructed in step S1, and when the positioning is completed, the magnetic disk controller 2 is notified of the completion of positioning by an interrupt.

【0018】処理S3 磁気ディスク制御装置2では、磁気ディスク3よりの位
置付け完了通知を受けると、磁気ディスク制御装置2と
磁気ディスク3とを結合し、キーのサーチを開始する。
Process S3 When the magnetic disk control device 2 receives the positioning completion notification from the magnetic disk 3, the magnetic disk control device 2 and the magnetic disk 3 are connected and the key search is started.

【0019】処理S4,S5およびS12 処理S4で磁気ディスク3よりレコードを読出し、処理
S5でキーが一致したか否かの判定を行い、判定結果が
YESの場合は処理S12に移ってデータのアクセスを
行い処理を終了する。また、判定結果がNOの場合は処
理S6に移る。
Steps S4, S5 and S12 In step S4, a record is read from the magnetic disk 3, and in step S5 it is determined whether or not the keys match. If the determination result is YES, the process moves to step S12 to access the data. And the process ends. If the determination result is NO, the process proceeds to step S6.

【0020】処理S6 処理S6では、処理S5で判定したレコードがトラック
に記録されている最終レコードか否かを判定し、NOの
場合は処理S4に移って次のレコードに対する処理が行
なわれ、YESの場合は処理S7に移る。
Process S6 In process S6, it is determined whether or not the record determined in process S5 is the last record recorded on the track. If NO, the process proceeds to process S4 and the process for the next record is performed, and YES. In case of, it moves to the processing S7.

【0021】処理S7 処理S7では次にサーチするトラックが有るか否かの判
定が行なわれ、YESの場合は処理S8に移り、NOの
場合は処理を終了させる。
Process S7 In process S7, it is determined whether or not there is a track to be searched next. If YES, the process proceeds to process S8, and if NO, the process ends.

【0022】処理S8およびS9 処理S7で次にサーチするトラックが有った場合、次の
サーチするトラックは別のシリンダに存在するトラック
か否かの判定を行ない、NOの場合、すなわち、同一シ
リンダに存在するトラックである場合は処理S9でヘッ
ド切替えを行って処理S4に移ってサーチ処理を行な
う。また、YESの場合は処理S10に移る。
Steps S8 and S9 If there is a next track to be searched in the step S7, it is judged whether or not the next track to be searched is a track existing in another cylinder. If NO, that is, the same cylinder. If the track exists in step S9, the head is switched in step S9, and the process proceeds to step S4 to perform the search process. If YES, the process moves to step S10.

【0023】処理S10 処理S10では、磁気ディスク制御装置2と磁気ディス
ク3との結合が解除される。したがって、磁気ディスク
制御装置2は他の処理が実行可能となり、処理を実行す
る。
Process S10 In process S10, the coupling between the magnetic disk controller 2 and the magnetic disk 3 is released. Therefore, the magnetic disk control device 2 can execute other processing, and executes the processing.

【0024】処理S11 処理S11では、磁気ディスク制御装置2は磁気ディス
ク3に対して、別のシリンダのトラックへの位置付けを
指令して処理S2に移る。処理S2で位置付けが完了す
ると割込みで磁気ディスク制御装置2に通知され、処理
S3で磁気ディスク制御装置2と磁気ディスク3とが結
合されてサーチが開始される。
Process S11 In process S11, the magnetic disk control device 2 commands the magnetic disk 3 to position another cylinder on the track, and then proceeds to process S2. When the positioning is completed in the process S2, the magnetic disk controller 2 is notified by an interrupt, and the magnetic disk controller 2 and the magnetic disk 3 are combined in the process S3 to start the search.

【0025】したがって、処理S11より処理S3まで
の間、磁気ディスク制御装置はサーチキーコマンドの処
理から解放されて、他の処理を実行することが出来、処
理効率を向上させることができる。
Therefore, from the processing S11 to the processing S3, the magnetic disk controller can be released from the processing of the search key command and can execute other processing, and the processing efficiency can be improved.

【0026】以上、本発明の一実施例について説明した
が、本発明はこの実施例に限定されるものではなく、発
明の主旨に従った各種変形が可能である。
Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and various modifications can be made according to the gist of the invention.

【0027】[0027]

【発明の効果】以上説明したように、本発明によれば次
の効果が得られる。サーチキーコマンドを複数トラック
にまたがって実行中に、サーチ動作途中でシリンダの移
動をともなうトラック位置付けが発生したとき、トラッ
クの位置付けが完了するまで、磁気ディスクを磁気ディ
スク制御装置より切り離すようにしたので、切り離され
た期間は他の処理を実行でき、磁気ディスク制御装置の
処理効率を向上させることができる。
As described above, according to the present invention, the following effects can be obtained. When the track key positioning occurs due to the movement of the cylinder during the search operation while executing the search key command over multiple tracks, the magnetic disk is disconnected from the magnetic disk controller until the track positioning is completed. The other processing can be executed during the separated period, and the processing efficiency of the magnetic disk control device can be improved.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】同実施例の動作フローチャートである。FIG. 3 is an operation flowchart of the same embodiment.

【図4】従来例の動作説明図である。FIG. 4 is an operation explanatory diagram of a conventional example.

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

1 プロセッサ 2 磁気ディスク制御装置 3 磁気ディスク 1 processor 2 magnetic disk controller 3 magnetic disk

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 サーチキーコマンドを複数トラックにま
たがり処理する磁気ディスク制御装置において、 サーチ動作途中におけるシリンダの移動をともなうトラ
ック位置付けが発生した場合に、トラック位置付けが完
了するまでの間、磁気ディスクを磁気ディスク制御装置
から切り離すこと を特徴とするマルチトラック動作指
定時におけるサーチキーコマンド処理方法。
1. In a magnetic disk controller for processing a search key command across a plurality of tracks, when track positioning accompanied by movement of a cylinder occurs during a search operation, the magnetic disk is controlled until the track positioning is completed. A search key command processing method when a multi-track operation is specified, characterized by being separated from the magnetic disk controller.
JP29271092A 1992-10-30 1992-10-30 Search key command processing method at the time of multitrack operation designation Pending JPH06139025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29271092A JPH06139025A (en) 1992-10-30 1992-10-30 Search key command processing method at the time of multitrack operation designation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29271092A JPH06139025A (en) 1992-10-30 1992-10-30 Search key command processing method at the time of multitrack operation designation

Publications (1)

Publication Number Publication Date
JPH06139025A true JPH06139025A (en) 1994-05-20

Family

ID=17785312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29271092A Pending JPH06139025A (en) 1992-10-30 1992-10-30 Search key command processing method at the time of multitrack operation designation

Country Status (1)

Country Link
JP (1) JPH06139025A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100696568B1 (en) * 2004-07-23 2007-03-19 이시카와 가스킷 가부시키가이샤 Metal gasket

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100696568B1 (en) * 2004-07-23 2007-03-19 이시카와 가스킷 가부시키가이샤 Metal gasket

Similar Documents

Publication Publication Date Title
US5729718A (en) System for determining lead time latency as function of head switch, seek, and rotational latencies and utilizing embedded disk drive controller for command queue reordering
US4803572A (en) Recording/reproducing method and apparatus of magnetic disk unit in which playback commences before the magnetic head is completely centered on the track
US6553454B1 (en) Storage device and method of reordering commands from a command queue
JP2718708B2 (en) Control method for storage control system, storage control system, and storage control device
JPH06139025A (en) Search key command processing method at the time of multitrack operation designation
JPS5918747B2 (en) Sector file control method
US6327641B1 (en) Method of implementing a geometry per wedge (GPW) based headerless solution in a disk drive formatter and a computer program product incorporating the same
US5875453A (en) Apparatus for and method of information processing
KR0176615B1 (en) Hard disk drive control device and method thereof
JP2001307420A (en) Disk recording and reproducing device
JP2616444B2 (en) Magnetic disk drive
JPH05257609A (en) Method for continuous writing process of disk device
JP3068811B2 (en) Method of controlling storage device
KR100189927B1 (en) Hard disk drive control device and method
JPS598171A (en) Head switching system
JPS6297020A (en) Control method for magnetic tape
JPS6238928A (en) Seek control system for storage system
JPH0421888B2 (en)
JPH064449A (en) Disk controller
JPH06119717A (en) Hard disk device
JPS6126683B2 (en)
JPH0696544A (en) Magnetic disk apparatus
JPH01182970A (en) Magnetic disk device
JPS61204865A (en) Control system of auxiliary storage device
JPS6242370A (en) Formatting system for magnetic disc device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000620