JPS6318580A - Multiarm type disk file system - Google Patents

Multiarm type disk file system

Info

Publication number
JPS6318580A
JPS6318580A JP15984786A JP15984786A JPS6318580A JP S6318580 A JPS6318580 A JP S6318580A JP 15984786 A JP15984786 A JP 15984786A JP 15984786 A JP15984786 A JP 15984786A JP S6318580 A JPS6318580 A JP S6318580A
Authority
JP
Japan
Prior art keywords
file
arm
access
reserved
arms
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
JP15984786A
Other languages
Japanese (ja)
Inventor
Hitoshi Yonezawa
米沢 整
Takekuni Komatsu
小松 雄邦
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP15984786A priority Critical patent/JPS6318580A/en
Publication of JPS6318580A publication Critical patent/JPS6318580A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Moving Of Head For Track Selection And Changing (AREA)

Abstract

PURPOSE:To apply no influence to respective file access speeds even when the file accesses from plural processes compete by making a disk a multiarm type, reserving an arm according to a request from a user program every time for opening a file and releasing the reserved arm every time for closing the file. CONSTITUTION:The plural arms 2a, 2b, 2c capable of being independently operated and controlled are provided in the movable head disk 1 and when the file is opened, the arms 2a, 2b, 2c can be reserved according to the request from a user process. Thereafter, data in the file is made access according to a file read and a write commands and the arms 2a, 2b, 2c are reserved, so that the data is not moved by other cylinder according to other competing file access command. Accordingly, even when the plural file access commands compete, the individual file access command have the same speed as the case when the file is made access by itself.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、オペレーティングシステムを構成するディ
スクファイルシステムに関する。かよるディスクファイ
ルシステムではディスクへのファイルアクセスを高速か
つ連続的に維持することが、計算機システムの性能向上
を図る上からも望ましい。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a disk file system constituting an operating system. In such a disk file system, it is desirable to maintain fast and continuous file access to the disk in order to improve the performance of the computer system.

〔従来の技術〕[Conventional technology]

計算機システムの実働時には、オペレーティングシステ
ムの下で多くのユーザプロセス(ユーザプログラム)が
並列的に進行する。この状況下でハ、ユーザプロセスか
らファイルシステム(ファイル処理プロセス)に対し、
同時にファイルアクセス要求が届く。つまり、ファイル
オープンからファイルクー−ズまでの間に他のユーザプ
ロセスからのオープン、クローズが入り込むことが起る
During actual operation of a computer system, many user processes (user programs) run in parallel under the operating system. Under this situation, from the user process to the file system (file processing process),
File access requests arrive at the same time. In other words, an open or close operation from another user process may occur between the time the file is opened and the time the file is closed.

一般的なディスクファイルシステムの構造ヲ第2図に示
す。同図において、1はディスク、2はアームである。
The structure of a typical disk file system is shown in Figure 2. In the figure, 1 is a disk and 2 is an arm.

こへで、同図に示すシングルアームの可動ヘッドディス
ク上の複数ファイル(図ではファイル■、ファイル■)
K対して、複数のユーザプロセスからのファイルアクセ
ス要求が同時に発生した場合の動作について、第3図を
参照して説明する。
Now, multiple files (File ■, File ■ in the figure) on the single-arm movable head disk shown in the same figure.
The operation when file access requests from a plurality of user processes occur simultaneously for K will be described with reference to FIG.

(1)  ユーザプロセスAがファイル■をアクセスす
る丸め、まずファイルをオープンする(第3図■参照)
。・このファイルオープン時にはファイルの大きさの識
別などの、共通的表前処理が行われ、その後、特定レコ
ードをリードする(ランダムアクセス)。このとき、個
々のファイルはアクセス効率を高めるため、ディスク上
の連続する領域に配置されることが多い。このリード動
作によりまずアームが目的とするシリンダ位置にシーク
(アームの半径方向への移動)され(同■診照)、その
後にデータを読込む(同■参照)。ライト動作も、以上
と同様に行われ(同■参照)、その後所定の後処理をし
てファイルをクローズする(同■参照)。
(1) When user process A accesses file ■, first open the file (see Figure 3 ■)
. - When opening this file, common table preprocessing such as identifying the file size is performed, and then a specific record is read (random access). At this time, individual files are often arranged in contiguous areas on the disk to improve access efficiency. By this read operation, the arm first seeks (moves the arm in the radial direction) to the target cylinder position (see 2), and then reads the data (see 2). The write operation is also performed in the same manner as above (see 2), and then a predetermined post-processing is performed and the file is closed (see 2).

(2)  次いで、ユーザプロセスBがファイル■をア
クセスするため、まずファイルオープンし、このあと、
特定レコードをリードする(ランダムアクセス)。つま
り、ファイルオープン動作はファイルが変わる度に行わ
れる。なお、この場合はアームをファイル■の特定位置
からファイル■の特定位置ヘシークしたのち、データを
読込む。
(2) Next, in order to access file ■, user process B first opens the file, and then
Read a specific record (random access). In other words, a file open operation is performed every time the file changes. In this case, data is read after the arm is sought from a specific position in file ■ to a specific position in file ■.

(3)と〜で、ユーザプロセス人が再びファイル■の特
定レコードをアクセスしようとすると、アームがファイ
ル■の特定位置にあるため、まずシークしなければなら
ない。つまり、シークによる待時間が生じ、この待時間
はシリンダ間の距離に依存することになる。
In (3) and ~, when the user process attempts to access a specific record in file ■ again, the arm is at a specific position in file ■, so it must seek first. In other words, a waiting time occurs due to the seek, and this waiting time depends on the distance between the cylinders.

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

以上のように、複数のユーザプロセスが同一ディスク上
の複数のファイルを同時にアクセスすると、アク七スア
ームがファイル間を往復する頻度が高く々す、ディスク
アクセスのスピードが低下すると云う問題がある。
As described above, when multiple user processes access multiple files on the same disk at the same time, there is a problem in that the access arm frequently moves back and forth between files, reducing the speed of disk access.

したがって、この発明は複数プロセスからのファイルア
クセスが競合する場合においても、それぞれのファイル
アクセススピードに影響がないようKすることを目的と
する。
Therefore, it is an object of the present invention to prevent each file access speed from being affected even when file accesses from multiple processes compete.

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

ディスクをマルチアームタイプにすると工もに、ファイ
ルオープンする毎にユーザプログラムからの要求によっ
てアームをリザーブし、ファイルクローズする毎にリザ
ーブしたアームを解放するようにする。
When a disk is made into a multi-arm type, an arm is reserved each time a file is opened according to a request from a user program, and the reserved arm is released each time a file is closed.

〔作用〕[Effect]

(1)可動ヘッドディスクにおいて独立に動作。 (1) Operates independently in a movable head disk.

制御可能なアームを複数設ける。Provide multiple controllable arms.

(2)  ファイルオープン時にユーザプロセスからの
要求に応じてアームをリザーブすることができるようK
する。
(2) To be able to reserve an arm in response to a request from a user process when opening a file.
do.

(5)この後、ファイルリード、ライトコマンドにより
ファイル内データをアクセスする。このときアームがリ
ザーブされているため、競合する他のファイルアクセス
コマンドにより他のシリンダに動かされることはない。
(5) After this, the data in the file is accessed by file read and write commands. Since the arm is reserved at this time, it will not be moved to another cylinder by another conflicting file access command.

従って、複数のファイルアクセスコマンドが競合する場
合においても個々のファイルアクセスコマンドは自分の
みがファイルをアクセスしている場合と同一スピードに
なる。
Therefore, even when multiple file access commands compete, each file access command has the same speed as when only the user is accessing the file.

(4)ファイルクローズ時に、リザーブしたアームを空
き資源(リリーズ秋態)として解放する。
(4) When a file is closed, the reserved arm is released as a free resource (release state).

〔発明の実施例〕[Embodiments of the invention]

第1図はこの発明の詳細な説明するための説明図である
。第1図(イ)に示すように、こ工では2本のリザーブ
可能なアーム2a、2bと1本のリザーブ不可能なアー
ム2Cを有するディスクファイルシステムを例にとって
説明する。
FIG. 1 is an explanatory diagram for explaining the invention in detail. As shown in FIG. 1(a), a disk file system having two reservable arms 2a, 2b and one non-reservable arm 2C will be explained as an example.

一般に計算機システムにおいては、ファイルをアクセス
する複数のアクセスがオペレーティングシステムのマル
チプロセス制御機能を利用し、同時に進行する。また、
今日の大容量ディスクにおいては複数のファイルが同一
ディスク(記録媒体)に保存されることが多い。したが
って、この実施例においては、オフライン(システムメ
ンテナンス時)時にファイルユーティリティによりファ
イルの領域が獲得される方式をとり、ユーティリティで
はできるだけファイルを連続したシリンダ上に生成し、
それができない場合はできるだけ隣接したシリンダ上に
生成するようにする。
In general, in computer systems, multiple accesses to files proceed simultaneously using the multi-process control function of the operating system. Also,
In today's large-capacity disks, multiple files are often stored on the same disk (recording medium). Therefore, in this embodiment, a file area is acquired by a file utility when offline (during system maintenance), and the utility generates files on consecutive cylinders as much as possible.
If this is not possible, try to generate them on adjacent cylinders as much as possible.

このような構成において、オンライン運用時にハ多くの
ユーザプロセスからファイルシステムに対してファイル
アクセス要求が届くことくなり、ファイルアクセスが第
3図と同様に行われるが、このとき、ファイルシステム
にはディスク毎にアームのリザーブ、リリーズ管理テー
ブルを持たせるようにする。このテーブルの一例を第1
図(ロ)に示す。こへに、“11はリザーブ状態を示し
、10mはリリーズ状態を示す。そして、ユーザプロセ
スがファイルシステムに対しファイルのアクセスを要求
するとき、同時にアームをリザーブするよう依頼するよ
うにする。リザーブの依頼をファイルシステムが受は取
ると、ファイルオープン処理の一連の手順の中で第1図
(ロ)に示すアーム管理テーブルを参照してリリーズ状
態のアームを探し、空いているアームを該アクセスコマ
ンドにリザーブする(割り振る)。なお、リザーブの依
頼がない場合は、リザーブ不可能なアーム2Cを該アク
セスコマンドに割り振り、以後いくつかのアクセスコマ
ンドで該アームを共用する。いったんアームがリザーブ
されると、ファイルがクローズされるまでリザーブ状態
が保持される。したがって、たとえばユーザプロセス人
がファイル0をアクセスするためにアーム2aをリザー
ブし、ユーザプロセスBがファイル■をアクセスするた
めにアーム2bをリザーブすると、他のユーザプロセス
は処理の高速性を必要としないため、リザーブ不可能な
アーム2Cを使用することになる。
In such a configuration, during online operation, file access requests will be received from many user processes to the file system, and file access will be performed in the same way as shown in Figure 3. Each arm should have a reserve and release management table. An example of this table is
Shown in Figure (b). Here, "11 indicates a reserve state, and 10m indicates a release state. Then, when a user process requests file access to the file system, it requests the arm to be reserved at the same time. When the file system accepts the request, it searches for an arm in a released state by referring to the arm management table shown in Figure 1 (b) during a series of file open processing steps, and selects a free arm with the corresponding access command. Reserve (allocate) to.If there is no request for reservation, allocate arm 2C, which cannot be reserved, to the access command, and share the arm with several access commands thereafter.Once the arm is reserved, , the reserved state is maintained until the file is closed.Thus, for example, if user process B reserves arm 2a to access file 0 and user process B reserves arm 2b to access file ■. , and other user processes do not require high-speed processing, so they will use arm 2C, which cannot be reserved.

これにより、プロセス人とプロセスBのファイルアクセ
スが競合した場合でも、シングルアームの場合と比べて
シークによる待時間が増えることがない。なお、リザー
ブしたアームはファイルクローズ時に、空き資源として
解放される。
As a result, even if file access conflicts between the process and process B, the wait time due to seek does not increase compared to the single-arm case. Note that the reserved arm is released as a free resource when the file is closed.

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

この発明によれば、独立に制御しつるアームを複数有す
るディスクに対して個々のファイルアクセスコマンドに
アームを専有できるようにしたので、アームの動きを同
一ファイル内におさえることができ、シーク時間が短縮
される。したがって、ファイルアクセスが高速化される
利点がもたらされる。
According to this invention, for a disk having a plurality of independently controlled hanging arms, the arms can be exclusively used for individual file access commands, so the movement of the arms can be suppressed within the same file, and the seek time can be reduced. be shortened. Therefore, the advantage of faster file access is provided.

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

第1図はこの発明の詳細な説明するための説明図、第2
図は一般的なディスクファイルシステムを示す概要図、
第3図はその動作を説明するためのフローチャートであ
る。 符号説明 1・・・・・・ディスク、2+2a*2tz2c・・・
・・・アーム、■、■・・・・・・ファイル・ 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎    清 第1図 (ロ)
FIG. 1 is an explanatory diagram for explaining the invention in detail, and FIG.
The figure is a schematic diagram showing a typical disk file system,
FIG. 3 is a flowchart for explaining the operation. Code explanation 1...disc, 2+2a*2tz2c...
...Arm,■,■...File/Agent Patent attorney Akio Namiki Agent Patent attorney Kiyoshi Matsuzaki Figure 1 (B)

Claims (1)

【特許請求の範囲】 複数のデータファイルと互いに独立に制御可能な複数の
アームとを有し、オペレーテイングシステムを構成する
マルチアーム式ディスクファイルシステムであつて、 該ファイルシステムはファイルオープンする毎に要求元
(ユーザプログラム)からの要求によりアームをリザー
ブし、 ファイルクローズする毎にリザーブしたアームを解放す
ることを特徴とするマルチアーム式ディスクファイルシ
ステム。
[Scope of Claim] A multi-arm disk file system comprising a plurality of data files and a plurality of arms that can be controlled independently of each other, and which constitutes an operating system, wherein the file system is configured to: A multi-arm disk file system is characterized in that an arm is reserved in response to a request from a request source (user program), and the reserved arm is released each time a file is closed.
JP15984786A 1986-07-09 1986-07-09 Multiarm type disk file system Pending JPS6318580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15984786A JPS6318580A (en) 1986-07-09 1986-07-09 Multiarm type disk file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15984786A JPS6318580A (en) 1986-07-09 1986-07-09 Multiarm type disk file system

Publications (1)

Publication Number Publication Date
JPS6318580A true JPS6318580A (en) 1988-01-26

Family

ID=15702536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15984786A Pending JPS6318580A (en) 1986-07-09 1986-07-09 Multiarm type disk file system

Country Status (1)

Country Link
JP (1) JPS6318580A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7187593B2 (en) 2004-03-30 2007-03-06 Sharp Kabushiki Kaisha Control system; control apparatus; storage device and computer program product
US7230784B2 (en) 2004-12-03 2007-06-12 Searete, Llc High bandwidth data transfer to and from rotating data storage devices
US8279545B2 (en) 2004-12-03 2012-10-02 The Invention Science Fund I, Llc High bandwidth data transfer to and from rotating data storage devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7187593B2 (en) 2004-03-30 2007-03-06 Sharp Kabushiki Kaisha Control system; control apparatus; storage device and computer program product
US7230784B2 (en) 2004-12-03 2007-06-12 Searete, Llc High bandwidth data transfer to and from rotating data storage devices
US8279545B2 (en) 2004-12-03 2012-10-02 The Invention Science Fund I, Llc High bandwidth data transfer to and from rotating data storage devices

Similar Documents

Publication Publication Date Title
US5511177A (en) File data multiplexing method and data processing system
US4104718A (en) System for protecting shared files in a multiprogrammed computer
US5956712A (en) Byte range locking in a distributed environment
JP4252139B2 (en) Storage system
US5752256A (en) Disk array apparatus and method for dividing and reading/writing partial data across a plurality of drive groups utilizing parallel processing
US5113509A (en) Method of changing data on disk
JP2550311B2 (en) Multiple control system of magnetic disk
JPS6318580A (en) Multiarm type disk file system
JPH04219844A (en) High-speed medium preferential release type exclusive system
JPS5851347A (en) Medium allocation system for file
JP2755103B2 (en) Storage device access method
JP2000003287A (en) Exclusive controller for shared resource, method therefor and recording medium for recording exclusive control program
JPH03116261A (en) Multiprocessor control system
JPS62205581A (en) Disk control method
JP4102618B2 (en) Disk storage
JPH02115958A (en) Data transfer control system
JPS60209858A (en) File processing system
JPS6059426A (en) Access method of magnetic disk device
JPH0237565A (en) Optical disk rotating speed control system
JPS59177662A (en) Optimizing system of exclusive unit in exclusive control
JPS6055854B2 (en) Data base storage area management control method
JP3524954B2 (en) Disk controller
JPS63213043A (en) File processing system for external memory
JPH02203480A (en) Magnetic disk controller
JPH02304615A (en) Allocating system for parallel disk control buffer