JP2000242441A - Disk control method and its controller - Google Patents

Disk control method and its controller

Info

Publication number
JP2000242441A
JP2000242441A JP11041346A JP4134699A JP2000242441A JP 2000242441 A JP2000242441 A JP 2000242441A JP 11041346 A JP11041346 A JP 11041346A JP 4134699 A JP4134699 A JP 4134699A JP 2000242441 A JP2000242441 A JP 2000242441A
Authority
JP
Japan
Prior art keywords
access
disk
area
data
priority
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
JP11041346A
Other languages
Japanese (ja)
Inventor
Shinichi Fuse
真一 布施
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP11041346A priority Critical patent/JP2000242441A/en
Publication of JP2000242441A publication Critical patent/JP2000242441A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the performance of access to an area of high priority from decreasing owing to access to other areas by setting as reference values by the areas of a disk one of an access processing frequency, an access data amount, and an access time and accessing the respective areas according to the reference values. SOLUTION: In addition to a setting means which sets reference values for the access frequencies, access data amounts, etc., of the areas A and B of the disk according to access priority, a disk control part 4 is provided with a disk access control means 4a which adjusts the access frequencies and access amounts by the areas A and B according to the set values of the areas A and B set by the setting means. The two areas A and B of the disk 3 are given priority. Namely, data of high priority are recorded in the area A and data of relatively low priority are recorded in the area B. According to the priority, a reference value for an access ratio is set in advance and a queue processing by access is performed according to the reference value.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディスク領域のア
クセス性能を向上させるディスク制御方法およびそのデ
ィスク制御装置に関する。
The present invention relates to a disk control method and a disk control device for improving the access performance of a disk area.

【0002】[0002]

【従来の技術】ディスク制御装置は、装置全体の動作を
制御するOS(Operating System)、外部からの指
示に従ってアクセス要求を出力する主制御部、静止画・
動画などの画像データを記録するディスク、前記主制御
部からのアクセス要求に応じて順番にディスク領域への
データの書き込みおよび読み出しを行うディスク制御部
(ディスクドライバ・ディスクコントローラ)などから
なっている。
2. Description of the Related Art A disk control device includes an OS (Operating System) for controlling the operation of the entire device, a main control unit for outputting an access request in accordance with an external instruction, a still image
The disk includes a disk for recording image data such as a moving image, a disk controller (disk driver / disk controller) for sequentially writing and reading data to and from a disk area in response to an access request from the main controller.

【0003】ところで、主制御部からディスク領域への
ランダムなアクセスは、そのアクセス発生のたびにデー
タの読み書き用ヘッドの移動(シーク)が頻繁に行わ
れ、シーケンシャルなアクセスに比べると、シークの発
生によりデータの読み書き速度の性能が遅くなる問題が
ある。
In the random access from the main control unit to the disk area, the data read / write head is frequently moved (seeked) every time the access occurs. As a result, there is a problem that the performance of data read / write speed is reduced.

【0004】そこで、ディスク制御部としては、主制御
部からアクセス要求を受け付けた後、アクセス要求の並
び替え処理を実施し、極力シークが発生しないような工
夫が講じられている。
[0004] Therefore, the disk control unit is arranged to execute an access request rearrangement process after accepting an access request from the main control unit, so as to minimize seeks.

【0005】[0005]

【発明が解決しようとする課題】しかし、このようなデ
ィスク制御装置は、データの読み書き速度の性能を適宜
にコントロールすることが難しい。
However, it is difficult for such a disk control device to appropriately control the data read / write speed performance.

【0006】以下、その理由について説明する。今、例
えば図7に示すようにディスクに2つのデータ領域A,
Bが存在すると仮定する。領域Aはディスクの先頭側に
小さい領域で配置され、アクセス頻度の高いデータが格
納されている。領域Bは領域Aよりも大きな領域を有
し、アクセス頻度の低いデータが格納されている。
Hereinafter, the reason will be described. Now, for example, as shown in FIG. 7, two data areas A,
Assume that B exists. The area A is arranged in a small area at the head of the disk, and stores frequently accessed data. The area B has a larger area than the area A, and stores data with a low access frequency.

【0007】このような場合、領域Aだけのアクセスの
場合にはシークの発生が少なく、高い性能が得られる
が、領域Bへのアクセスの場合には領域Aのアクセスに
比べると多くのシークが発生し、性能に影響がでてく
る。
In such a case, in the case of accessing only the area A, the occurrence of seek is small and high performance can be obtained. However, in the case of accessing the area B, more seeks are performed than in the case of accessing the area A. Occurs, affecting the performance.

【0008】そのため、高い性能を保つためには、複数
のディスクを用意し、一方のディスクの先頭側に領域A
を配置して領域Bを空けたままにし、他方のディスクの
先頭側に領域Bを配置し、図7に示す領域Bに相当する
データを読み書きすることが考えられている。しかし、
この考えは、コストと性能とのトレードオフが必要とな
り、適切な改善方法とは言えない。
Therefore, in order to maintain high performance, a plurality of disks are prepared, and the area A is provided at the head of one disk.
It is considered that the area B is left empty by disposing the area B, the area B is arranged at the head of the other disk, and data corresponding to the area B shown in FIG. 7 is read and written. But,
This idea requires a trade-off between cost and performance, and is not an appropriate improvement method.

【0009】本発明は上記事情に鑑みてなされたもの
で、他の領域のアクセスによって優先度の高い領域のア
クセス性能が低下しないようにするディスク制御方法お
よびそのディスク制御装置を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a disk control method and a disk control device for preventing access to another area from deteriorating access performance in a high priority area. .

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
に、本発明は、ディスクの各領域毎に、アクセス処理回
数、アクセスデータ量およびアクセス時間の何れか1つ
を基準値として設定し、この基準値に基づき前記各領域
へのアクセス処理を実行するディスク制御方法である。
In order to solve the above problems, the present invention sets, for each area of a disk, one of an access processing count, an access data amount, and an access time as a reference value, This is a disk control method for executing access processing to each area based on this reference value.

【0011】このような制御方法によれば、ディスクの
各領域への例えばアクセス処理回数が予め定めるアクセ
ス回数の比率に基づいて実行するので、例えば優先度の
低い領域のアクセス処理によって、優先度の高い領域の
アクセス性能が低下するようなことがなくなる。
According to such a control method, for example, the number of times of access processing to each area of the disk is performed based on the ratio of a predetermined number of times of access. The access performance in the high area does not deteriorate.

【0012】また、別の発明は、アクセス優先度の高い
データを格納する領域とアクセス優先度の低いデータを
格納する領域が設定されるディスクと、前記ディスクの
各領域のアクセス優先度に従ってアクセス処理回数、ア
クセスデータ量およびアクセス時間の少なくとも1つ基
準値として設定する設定手段と、アクセス要求を監視
し、前記基準値に基づき前記ディスクへのアクセスを実
行するディスクアクセス制御手段とを設けたディスク制
御装置である。
Another aspect of the present invention is a disk in which an area for storing data having a high access priority and an area for storing data having a low access priority are set, and an access process is performed in accordance with the access priority of each area of the disk. A disk control comprising: setting means for setting at least one of the number of times, access data amount, and access time as a reference value; and disk access control means for monitoring an access request and executing access to the disk based on the reference value. Device.

【0013】この発明は、以上のような手段を講じたこ
とにより、アクセス優先度の高いデータをディスク先頭
側領域に、アクセス優先度の低いデータを先頭側領域よ
りも下位の領域に格納し、かつ、優先度に応じてアクセ
ス処理回数の比率等を設定しておけば、ディスクの各領
域の比率に応じて各領域のアクセス処理を実行でき、ア
クセス優先度の高いデータのアクセス性能が低下するこ
とがなくなる。
According to the present invention, by taking the above measures, data having a high access priority is stored in an area at the head of the disk, and data having a low access priority is stored in an area lower than the area at the head. In addition, if the ratio of the number of times of access processing is set according to the priority, the access processing of each area can be executed according to the ratio of each area of the disk, and the access performance of data with high access priority is reduced. Disappears.

【0014】さらに、別の発明は、ディスクの各領域ご
毎に、単位時間当たりのアクセス処理回数等を計測し、
この計測値をアクセス処理回数等の基準値として自動的
に設定することができ、またRAIDシステムにも以上
のような手段を容易に適用可能である。
Further, another invention measures the number of access processes per unit time and the like for each area of a disk,
This measurement value can be automatically set as a reference value such as the number of times of access processing, and the above means can be easily applied to a RAID system.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0016】図1は本発明に係るディスク制御装置の一
実施の形態を示す構成図である。
FIG. 1 is a block diagram showing an embodiment of a disk control device according to the present invention.

【0017】このディスク制御装置は、メモリ1、主制
御部2、ディスク3、このディスク3の制御や主制御部
2とディスク3間のデータアクセスの制御を行うディス
ク制御部4が設けられている。
The disk control device includes a memory 1, a main control unit 2, a disk 3, and a disk control unit 4 for controlling the disk 3 and controlling data access between the main control unit 2 and the disk 3. .

【0018】メモリ1は、装置全体の基本動作を制御す
るOS(Operating System)や必要な各種のプログ
ラム、さらに各プログラムの実行に必要な制御情報を格
納するROMまたはRAMあるいはその両方から構成さ
れ、そのうちRAMは専ら主制御部2において所定の処
理を実現するためのデータ作業領域として用いられる。
The memory 1 comprises an OS (Operating System) for controlling the basic operation of the entire apparatus, various necessary programs, and a ROM and / or a RAM for storing control information necessary for executing each program. The RAM is used exclusively as a data work area for realizing a predetermined process in the main control unit 2.

【0019】前記主制御部2は、キーボード,ポインテ
ィングデバイスなどの入力機器5から入力される指示信
号や所定のプログラム処理の過程で必要なアクセス要求
を出力し、メモリ1に蓄積される原データをディスク3
のある領域に書き込んだり、ディスク3のある領域から
データを読み出してメモリ1に蓄積しデータの復元など
の処理を行う。
The main control unit 2 outputs an instruction signal input from an input device 5 such as a keyboard or a pointing device or an access request required in the course of a predetermined program processing, and converts the original data stored in the memory 1 Disk 3
Write data to a certain area or read data from a certain area of the disk 3 and store it in the memory 1 to perform processing such as data restoration.

【0020】前記ディスク制御部4は、主制御部2から
アクセス要求を受けたとき、ディスクドライブに装填さ
れるディスク3への情報の読み出しおよび書き込み制御
を行う機能をもっている。
The disk control unit 4 has a function of controlling reading and writing of information from and to the disk 3 loaded in the disk drive when receiving an access request from the main control unit 2.

【0021】このディスク制御部4には予めアクセス優
先度に応じてディスク3の各領域A,Bのアクセス回数
やアクセスデータ量などの基準値を設定する設定手段の
他、この設定手段によって設定された各領域A,Bの設
定値に従ってディスク3の各領域ごとのアクセス回数や
アクセス量を調整するためのディスクアクセス制御手段
4aが設けられている。
The disk controller 4 is set in advance by setting means for setting reference values such as the number of accesses to each area A and B of the disk 3 and the amount of access data in accordance with the access priority. A disk access control means 4a is provided for adjusting the number of accesses and the amount of access for each area of the disk 3 according to the set values of the areas A and B.

【0022】このディスクアクセス制御手段4aとして
は、例えば図2に示すようにディスク3の各領域A,B
のアクセス実行回数をカウントする領域Aカウンタ11
A,領域Bカウンタ11Bおよび領域A,Bごとのキュ
ー12A,12Bが設けられ、さらに自身またはメモリ
1に記憶されるディスクアクセス制御用プログラムに基
づいて図3に示すような処理を実行する機能をもってい
る。
The disk access control means 4a includes, for example, the respective areas A and B of the disk 3 as shown in FIG.
A counter 11 that counts the number of times access is performed
A, an area B counter 11B and queues 12A, 12B for each area A, B are provided.
It has a function of executing a process as shown in FIG. 3 based on the disk access control program stored in 1.

【0023】その他、ディスク制御装置には画像入力装
置6の他、入力データ、主制御部2による処理過程のデ
ータ、処理結果のデータなどを表示制御部7を介して表
示する表示装置8などが設けられている。なお、画像入
力装置6としては、文書、画像などを読み取るスキャ
ナ、被写体像を撮像しその静止画像または動画像を表わ
す画像データを出力するカメラ、さらには予め画像デー
タなどを記録する記録媒体、所定の伝送制御手順にて他
の装置から画像データを受け取る通信制御装置などが用
いられる。
In addition to the image input device 6, the disk control device includes a display device 8 for displaying input data, data of a processing process by the main control unit 2, data of a processing result, and the like via a display control unit 7. Is provided. The image input device 6 includes a scanner for reading a document, an image, and the like, a camera for capturing an image of a subject and outputting image data representing a still image or a moving image, a recording medium for recording image data in advance, a predetermined medium, A communication control device that receives image data from another device in the transmission control procedure described above is used.

【0024】次に、以上のように構成された装置のう
ち、特に本発明の要部となるディスク制御部4の処理手
順について説明する。
Next, a description will be given of a processing procedure of the disk control unit 4 which is an essential part of the present invention, among the devices configured as described above.

【0025】従来のディスク制御部では、主制御部から
ディスクの各領域に対してデータの書き込み要求および
読出し要求を受けると、それら各アクセス要求を1つの
キューに順次並べていきその並び順番に処理を行った
り、シークを低減するために近いアドレス領域がかたま
るようなキューの並び変えを実施し、その並びに従って
処理を行つている。
In the conventional disk control unit, when a data write request and a data read request are received from the main control unit for each area of the disk, those access requests are sequentially arranged in one queue, and the processing is performed in the arrangement order. The queues are rearranged so that address areas close to each other are gathered in order to reduce seeks, and processing is performed according to the rearrangement.

【0026】これに対し、本発明の制御装置としては、
ディスク3が例えば2つの領域A,Bに分けられたと
き、ユーザがディスク3の2つの領域A,Bに優先度を
付け、先頭側領域Aには優先度の高いデータを記録し、
先頭側領域よりも下位の領域Bには優先度の比較的低い
データを記録するとともに、その各領域の優先度に従っ
て予めアクセス比率の基準値を設定し、その基準値に従
ってアクセスによるキュー処理を実行することにある。
例えば領域A,Bに対応するキュー12A,12Bのア
クセス処理回数として、9:1の比率とするごとくであ
る。この場合には、領域Aのアクセス処理が9回行われ
る間に領域Bのアクセス処理が1回行われるように、各
領域キュー12A,12Bを選択し処理するものであ
る。
On the other hand, as the control device of the present invention,
When the disk 3 is divided into, for example, two areas A and B, the user assigns priority to the two areas A and B of the disk 3 and records high-priority data in the head area A,
Data having a relatively low priority is recorded in an area B lower than the head area, a reference value of an access ratio is set in advance according to the priority of each area, and a queue process by access is executed according to the reference value. Is to do.
For example, the ratio of the number of access processes of the queues 12A and 12B corresponding to the areas A and B is set to 9: 1. In this case, the area queues 12A and 12B are selected and processed so that the access processing of the area B is performed once while the access processing of the area A is performed nine times.

【0027】以下、ディスク制御部4による具体的な処
理手順について図3を参照して説明する。
Hereinafter, a specific processing procedure by the disk control unit 4 will be described with reference to FIG.

【0028】ディスク制御部4は、初期化処理を行う。
この初期化処理は不要なデータをクリアする一方、ユー
ザから領域A,Bのキュー処理回数,つまりアクセス処
理回数の比率が設定される(S1)。この場合、領域A
の優先度が高いので、そのアクセス処理回数が領域Bに
比べて高くなるように設定する。
The disk controller 4 performs an initialization process.
In this initialization process, unnecessary data is cleared, and the user sets the number of times of queue processing for the areas A and B, that is, the ratio of the number of times of access processing (S1). In this case, the area A
, The access processing count is set to be higher than that of the area B.

【0029】このようにして各領域A,Bのアクセス処
理回数(基準値)が設定された後、主制御部2からディ
スク装置3へのアクセス要求があると、その要求対象領
域がA,Bの何れであるかを確認し(S2,S3)、そ
の確認結果に従って該当領域に対応するキュー12A、
12Bにアクセス要求内容をキューイングする(S4,
S5)。
After the number of access processes (reference value) for each of the areas A and B is set as described above, when an access request from the main control unit 2 to the disk device 3 is made, the request target areas are A and B. (S2, S3), and according to the confirmation result, the queue 12A corresponding to the corresponding area,
12B queues the access request contents (S4,
S5).

【0030】しかる後、ディスク制御部4は、領域Aカ
ウンタ11Aのカウント値を調べ(S6)、そのカウン
ト値が「0」の場合には領域A側キュー12Aにアクセ
ス要求データがあるか否かを調べる(S7)。キュー1
2Aにアクセス要求データが有れば、当該キュー12A
からアクセス要求データを読み出し、アクセス要求を処
理する(S8、S9)。そして、領域A側キュー12A
のアクセス処理後、Aカウンタ11Aのカウント値を+
1インクリメントした後(S10)、A側設定値(例え
ば9)に達したか否かを判断し(S11)、達していな
い場合には再びステップS7に戻り、キュー12Aにア
クセス要求データがある限り、A側設定値に達するまで
アクセス処理を実行する。
Thereafter, the disk control unit 4 checks the count value of the area A counter 11A (S6). If the count value is "0", it is determined whether there is access request data in the area A side queue 12A. Is checked (S7). Queue 1
If there is access request data in 2A, the queue 12A
Then, the access request data is read from the server, and the access request is processed (S8, S9). Then, the area A side queue 12A
After the access processing, the count value of the A counter 11A is increased by +
After incrementing by 1 (S10), it is determined whether or not the A-side set value (for example, 9) has been reached (S11). If not, the process returns to step S7 again, as long as the access request data remains in the queue 12A. , Access processing is performed until the A-side set value is reached.

【0031】ところで、ステップS6において領域Aカ
ウンタ11Aのカウント値が「0」であるが、A側キュ
ー12Aにデータがないとか、Aカウンタ11Aのカウ
ント値が「0」以外であって、かつ、キュー12Aにデ
ータがないとき、さらにステップS11においてA側設
定値を越えたとき、ステップS12に移行し、領域Bカ
ウンタ11Bのカウント値が「0」か否かを判断する。
ここで、カウント値が「0」の場合には、キュー12B
からアクセス要求データを読み出し、アクセス要求を処
理する(S13、S14)。そして、領域B側キュー1
2Bのアクセス処理後、Bカウンタ11Bのカウント値
を+1インクリメントした後(S15)、領域Aカウン
タ11AがA側設定値を越えているか否かを判断し(S
16)、越えていない場合にはステップS7に移行し前
述と同様に処理を繰り返す。
In step S6, the count value of the area A counter 11A is "0", but there is no data in the A-side queue 12A, or the count value of the A counter 11A is other than "0", and When there is no data in the queue 12A, and when the value exceeds the A-side set value in step S11, the process proceeds to step S12, and it is determined whether the count value of the area B counter 11B is "0".
Here, when the count value is “0”, the queue 12B
Then, the access request data is read from and the access request is processed (S13, S14). Then, the area B side queue 1
After the 2B access processing, the count value of the B counter 11B is incremented by +1 (S15), and then it is determined whether or not the area A counter 11A exceeds the set value on the A side (S15).
16) If not, the process proceeds to step S7, and the process is repeated as described above.

【0032】ステップS16において領域Aカウンタ1
1AがA側設定値を越えていれば、ステップS17に移
行し、領域Bカウンタ11Bのカウント値がB側設定値
に達っしているか否かを判断する。今、B側設定値が
「1」の場合には領域Bカウンタ11Bのカウント値に
達することになるので、この場合には領域A,Bカウン
タ11A、11Bをクリアし(S18)、ステップS6
に戻って同様の処理を繰り返す。
In step S16, the area A counter 1
If 1A exceeds the A-side set value, the process proceeds to step S17, and it is determined whether or not the count value of the area B counter 11B has reached the B-side set value. If the B-side set value is "1", the count value of the area B counter 11B is reached. In this case, the areas A and B counters 11A and 11B are cleared (S18), and step S6 is performed.
And the same processing is repeated.

【0033】なお、B側設定値が「2」以上の場合も当
然予想される。この場合には、ステップS17において
B側設定値に達しないと判断され、ステップS13に移
行し同様の処理を繰り返す。
Incidentally, the case where the B-side set value is "2" or more is naturally expected. In this case, it is determined in step S17 that the B-side set value has not been reached, and the flow shifts to step S13 to repeat the same processing.

【0034】また、ステップS12において領域Bカウ
ンタ11Bのカウント値が「0」以外のときには、当該
カウント値がB側設定値に達っしているか否かを判断し
(ステップS19)、達していない場合にはステップS
13に、達している場合にはステップS16に移行す
る。
If the count value of the area B counter 11B is other than "0" in step S12, it is determined whether or not the count value has reached the B-side set value (step S19). Step S in case
If it has reached 13, the process proceeds to step S16.

【0035】従って、ディスク制御部4は、各領域A,
Bの優先度に基づいて予め設定された各領域のアクセス
処理回数比率に従ってアクセス処理を実施するので、領
域Bのアクセス処理によって、優先度の高い領域Aのア
クセス処理が低下することがなく、またシークの発生を
極力少なく抑えることができる。
Therefore, the disk control unit 4 controls each area A,
Since the access processing is performed in accordance with the access processing frequency ratio of each area set in advance based on the priority of B, the access processing of the area B does not reduce the access processing of the area A having a high priority. The occurrence of seek can be minimized.

【0036】また、別のディスクアクセス制御手段4a
としては、各ディスク領域A,Bの単位時間当たりのア
クセス処理回数により各領域のアクセス処理を行っても
よい。この場合には、例えば優先度の低い領域Bの単位
時間当たりのアクセス処理回数を例えば1秒当たり10
回に制限するなどの方法が考えられる。
Further, another disk access control means 4a
As an example, the access processing of each disk area A, B may be performed based on the number of access processing times per unit time. In this case, for example, the number of access processes per unit time of the low priority area B is set to, for example, 10 per second.
A method such as limiting the number of times can be considered.

【0037】具体的には、ある時刻TからT+t(t<
1秒)の間に領域Bのアクセス処理を10回実行した
時、T+1秒の時刻になるまで領域Bのアクセス処理を
停止し、残り時間の間は専ら領域Aのアクセス処理を実
行する。
Specifically, from a certain time T, T + t (t <
When the access processing of the area B is executed 10 times during (1 second), the access processing of the area B is stopped until the time of T + 1 seconds, and the access processing of the area A is exclusively executed during the remaining time.

【0038】従って、このディスク制御装置によれば、
優先度の低いディスク領域の単位時間当たりのアクセス
処理回数を制限するので、優先度の高いディスク領域A
のアクセス性能が低下することをなくなる。
Therefore, according to this disk control device,
Since the number of access processes per unit time of the low-priority disk area is limited, the high-priority disk area A
Access performance is not degraded.

【0039】さらに、領域Aのアクセス処理時間、領域
Bのアクセス処理時間の時間比率を設定し、各領域の時
間比率に従って各領域のアクセス処理を実行してもよ
い。
Further, a time ratio between the access processing time of the area A and the access processing time of the area B may be set, and the access processing of each area may be executed according to the time ratio of each area.

【0040】なお、前述するディスク制御装置は、アク
セス処理回数またはアクセス処理回数または時間の比率
によってアクセス処理を制御する例を説明したが、例え
ば領域A,Bの優先度に従ってアクセスデータ量の比率
を用いて同様な処理手順を用いてアクセス処理の制御を
行ってもよい。
Although the above-described disk control device has described an example in which the access processing is controlled by the number of times of access processing or the number of times of access processing or the ratio of time, for example, the ratio of the amount of access data is determined according to the priority of the areas A and B. The access processing may be controlled using a similar processing procedure.

【0041】その1つは、図4に示すように、データが
ディスク3の各領域A,Bにブロック分けして格納され
ていることから、単純なアクセス処理回数の比率ではな
く、単位時間当たりのアクセスデータ量の比率に応じて
各領域のアクセス処理を調整する例である。
One is that, as shown in FIG. 4, data is stored in each of the areas A and B of the disk 3 by dividing the data into blocks. This is an example of adjusting the access processing of each area according to the ratio of the amount of access data.

【0042】例えばある単位時間内において領域Aの9
0ブロックに対してアクセス処理をする間に、領域Bの
10ブロックに対してアクセス処理を実行するように、
各領域のキュー12A、12Bを選択してアクセス処理
を実行する。この場合には、単位時間当たりのアクセス
データ量の比率は90ブロック:10ブロックであり、
図3と同様な処理手順で実現できる。
For example, in a certain unit time, 9
While performing the access processing on the 0 block, the access processing is performed on the 10 blocks in the area B.
The access processing is executed by selecting the queues 12A and 12B of each area. In this case, the ratio of the amount of access data per unit time is 90 blocks: 10 blocks,
It can be realized by a processing procedure similar to that of FIG.

【0043】また、単位時間当たりのアクセスデータ処
理量を制限する例として、例えば優先度の低い領域のア
クセスデータ量を制限することも考えられる。
As an example of limiting the amount of access data processing per unit time, for example, it is conceivable to limit the amount of access data in a low priority area.

【0044】具体的には、領域Bに関し、1秒当たり1
00KBytesで制限するなどである。つまり、ある
時刻TからT+t(t<1秒)の間に領域Bへのアクセ
スデータ量が100KBytesを越える場合、T+1
秒の時刻になるまで領域Bのアクセス処理を停止し、残
り時間の間は専ら領域Aのアクセス処理を実行するもの
である。
More specifically, with respect to the area B, 1 per second
For example, it is limited by 00 KBytes. That is, if the amount of access data to the area B exceeds 100 KBytes between T + t (t <1 second) from a certain time T, T + 1
The access processing of the area B is stopped until the time of seconds is reached, and the access processing of the area A is exclusively executed during the remaining time.

【0045】従って、このディスク制御装置によれば、
優先度の低いディスク領域の単位時間当たりのアクセス
データ量を制限するので、優先度の高いディスク領域A
のアクセス性能が低下することがなくなる。
Therefore, according to this disk control device,
Since the amount of access data per unit time of the low-priority disk area is limited, the high-priority disk area A
Access performance does not decrease.

【0046】さらに、領域Aに対応するキュー12Aの
アクセス処理を優先させる必要がある場合、優先度の低
い領域Bに対応するキュー12Bのアクセス処理の比率
が崩れないように、キュー12Aのアクセス処理は大き
なアクセスデータ量であっても分割することはないが、
キュー12Bの場合には1つのアクセスデータ量が大き
い場合には分割して処理を行うことも考えられる。
Further, when it is necessary to give priority to the access processing of the queue 12A corresponding to the area A, the access processing of the queue 12A corresponding to the area B having the lower priority is maintained so that the ratio of the access processing does not collapse. Does not split even if the amount of access data is large,
In the case of the queue 12B, when one access data amount is large, it is conceivable to perform processing by dividing the data.

【0047】(他の実施形態) (1) 上記実施の形態では、ユーザがディスク3の各
領域の優先順位に従ってアクセス処理回数、アクセスデ
ータ量、時間を設定するようにしたが、これら各領域の
アクセス回数等を自動的に設定することも可能である。
(Other Embodiments) (1) In the above embodiment, the user sets the number of times of access processing, the amount of access data, and the time according to the priority of each area of the disk 3. It is also possible to automatically set the number of accesses and the like.

【0048】このディスク制御部4においては,ディス
ク3の各領域A,Bごとに、今回単位時間当たりのアク
セス回数、アクセスデータ量およびアクセス時間の何れ
か1つを計測する計測手段およびこの計測手段により今
回単位時間に計測された計測結果を用いて次単位時間内
のアクセス回数、アクセスデータ量、アクセス時間とし
て自動的に設定する自動設定手段の他、入力される各デ
ィスク領域のアクセス回数、アクセスデータ量またはア
クセス時間を監視し、前記設定手段で設定される各領域
のアクセス回数、アクセスデータ量、アクセス時間また
はその比率に従って前記ディスクの各領域のアクセス処
理を実行するディスクアクセス制御手段4aが設けられ
ている。
In the disk control unit 4, for each of the areas A and B of the disk 3, a measuring means for measuring any one of the number of accesses per unit time this time, the amount of access data and the access time, and this measuring means In addition to the automatic setting means for automatically setting the number of accesses within the next unit time, the amount of access data, and the access time using the measurement result measured in the unit time this time, the number of accesses to each input disk area, Disk access control means 4a for monitoring the data amount or access time and executing access processing for each area of the disk according to the number of accesses to each area, the access data amount, the access time or the ratio set by the setting means is provided. Have been.

【0049】以下、その1つの具体例について説明す
る。メモリ1内あるいはディスク制御部4にA頻度用カ
ウンタおよびB頻度用カウンタを設け、ある単位時間内
に領域A,Bへのアクセス処理回数をカウントする。そ
して、ある単位時間に達した時、両頻度用カウンタのカ
ウント値を用いてアクセス処理回数の比率を演算し、領
域A,Bのキュー処理回数の比率、つまりアクセス処理
回数の比率として設定する。次単位時間の間、設定され
たアクセス処理回数の比率に基づいて領域Aおよび領域
Bのアクセス処理を実行する一方、各A頻度用カウンタ
およびB頻度用カウンタの内容をクリアし、次単位時間
のアクセス処理回数の比率を演算するために新たに領域
A,Bへのアクセス処理回数をカウントする。
Hereinafter, one specific example will be described. An A frequency counter and a B frequency counter are provided in the memory 1 or in the disk control unit 4, and the number of access processes to the areas A and B is counted within a certain unit time. Then, when a certain unit time is reached, the ratio of the number of access processing times is calculated using the count value of the dual frequency counter, and set as the ratio of the number of queue processing times of the areas A and B, that is, the ratio of the number of access processing times. During the next unit time, the access processing of the area A and the area B is executed based on the set ratio of the number of access processing, while the contents of the A frequency counter and the B frequency counter are cleared, and the next unit time is cleared. In order to calculate the ratio of the number of times of access processing, the number of times of access processing to areas A and B is newly counted.

【0050】このように単位時間ごとに前回単位時間内
のアクセス頻度を監視しながら領域Aと領域Bのアクセ
ス処理回数の比率を自動的に設定するので、動的にアク
セス頻度の低い領域は優先度が低く設定され、アクセス
頻度の高い領域の場合には優先度が高く設定され、常に
最適な優先度でアクセス処理を実行できる。
As described above, the ratio of the number of access processing times in the area A and the area B is automatically set while monitoring the access frequency within the previous unit time for each unit time. The degree of priority is set low, and in the case of an area with a high access frequency, the priority is set high, so that access processing can always be executed with the optimum priority.

【0051】なお、以上の例は、単位時間当たりの各領
域のアクセス処理回数を計測するようにしたが、例えば
アクセスデータ量またはアクセス時間を計測し、その計
測結果に基づいて次単位時間内の各領域のアクセスデー
タ量またはアクセス時間又はそれらの比率を設定する方
法であってもよい。
In the above example, the number of times of access processing of each area per unit time is measured. For example, the amount of access data or the access time is measured, and based on the measurement result, the next unit time within the next unit time is measured. A method of setting an access data amount or access time of each area or a ratio thereof may be used.

【0052】(2) 上記実施の形態においては、単体
ディスク3の各領域A,Bのアクセス処理について説明
したが、複数のディスクを仮想的に1つのディスクとみ
なしてアクセス処理を実行するRAIDシステムについ
ても同様に適用できる。
(2) In the above embodiment, the access processing of each of the areas A and B of the single disk 3 has been described. However, a RAID system that executes access processing by regarding a plurality of disks as virtually one disk Is similarly applicable.

【0053】このRAIDはレベル0からレベル6まで
に分類されるが、ここではレベル0となるRAID0の
適用について説明する。なお、RAID0とは、ストラ
イプ(striping)とも呼ばれる負荷分散を目的とした手
法であり、複数のディスクを繋ぎ合わせて容量を増や
し、仮想的に大容量ディスクを構成することにある。こ
のRAID0は、例えば図5に示すように、3台の実物
理ディスク3,3,3の各物理領域a1,a2,
a3を1つの仮想的領域として取り扱うことにより、容
量を増大させるものである。
This RAID is classified from level 0 to level 6. Here, the application of RAID 0 which becomes level 0 will be described. Note that RAID 0 is a technique for distributing load, also called striping, in which a plurality of disks are connected to increase the capacity and virtually configure a large-capacity disk. This RAID 0 includes, for example, as shown in FIG. 5, the physical areas a1, a2, and 3 of three real physical disks 3 1 , 3 2 , and 3 3 .
The capacity is increased by treating a3 as one virtual area.

【0054】ディスク制御部4としては、例えば図6に
示すように構成される。すなわち、例えば図3に示すよ
うに領域ごとのアクセス処理回数等を調整するディスク
アクセス制御手段4aを実現するためのアプリケーショ
ン21と、このアプリケーション21からある領域への
アクセス要求を受けたとき、アドレス変換テーブル22
を見ながら複数のディスクの中の1つのディスク要求領
域を特定し、アクセス処理するためのドライブ制御デー
タを出力する仮想ドライバ23、この仮想ドライバ23
からのドライブ制御データに従ってあるディスクの要求
領域に対してアクセス処理を実行するディスクドライバ
24とによって構成されている。
The disk controller 4 is configured, for example, as shown in FIG. That is, for example, as shown in FIG. 3, an application 21 for realizing the disk access control means 4a for adjusting the number of times of access processing for each area and the like, and when an application request for access to a certain area is received from this application 21, Table 22
Driver 23 which specifies one disk request area among a plurality of disks while watching and outputs drive control data for access processing.
And a disk driver 24 for executing access processing to a requested area of a certain disk in accordance with drive control data from the disk drive.

【0055】なお、アドレス変換テーブル22は、予め
仮想ディスクの領域AのあるアドレスA1と実物理ディ
スク3のアドレス、アドレスA1と実物理ディスク3
のアドレス、…等の対応関係をもっている。
[0055] The address conversion table 22 in advance of the region A of the virtual disk address A1 actual physical disk 3 1 address, the address A1 and the actual physical disk 3
2 and so on.

【0056】一方、各ディスク(実物理ディスク)
,3,3側では、それぞれ2つの領域、つまり
実物理領域a1とb1、a2とb2、a3とb3とに分
けられている。
On the other hand, each disk (real physical disk)
3 1, 3 2, 3 3 side is divided into two regions, respectively, that is the actual physical area a1 b1, a2 and b2, a3 and the b3.

【0057】このような場合、仮想ディスクは、RAI
D0によって構成される実物理ディスクa1,a2,a
3の仮想ディスク領域Aと、同じくRAID0で構成さ
れる実物理ディスクb1,b2,b3の仮想ディスク領
域Bとをからなっている。
In such a case, the virtual disk is
Real physical disks a1, a2 and a configured by D0
3 and a virtual disk area B of real physical disks b1, b2, and b3 also configured by RAID0.

【0058】このようなRAIDシステムに適用したデ
ィスク制御装置においては、図3における処理過程で実
行する領域A,Bに対するアクセス処理を、仮想ドライ
バ23がRAIDソフトに基づいて仮想ディスクの領域
A,Bに当てはめてアクセス処理を行うので、前記実施
の形態と同様の機能を持たせることができ、同様の効果
を奏することができる。
In the disk control apparatus applied to such a RAID system, the virtual driver 23 executes the access processing to the areas A and B executed in the process shown in FIG. 3 based on the RAID software. Since the access processing is performed by applying the above, the same functions as those of the above embodiment can be provided, and the same effects can be obtained.

【0059】従って、このような実施の形態によれば、
複数の小容量ディスクを用い、ディスクの見かけ上の性
能を上げつつ、各ディスクの各領域のアクセス処理を適
切に実行することができる。
Therefore, according to such an embodiment,
Using a plurality of small-capacity disks, it is possible to appropriately execute access processing for each area of each disk while improving the apparent performance of the disk.

【0060】なお、この実施の形態では、RAID0に
ついて述べたが、他のRAID1〜RAID6について
も同様に適用できることは言うまでもない。
In this embodiment, RAID0 has been described, but it goes without saying that the same can be applied to other RAID1 to RAID6.

【0061】[0061]

【発明の効果】以上説明したように本発明によれば、デ
ィスクの他領域のアクセスによって優先度の高い領域の
アクセス性能を低下させずにアクセス処理を実行できる
ディスク制御方法およびディスク制御装置を提供でき
る。
As described above, according to the present invention, there is provided a disk control method and a disk control apparatus capable of executing access processing without deteriorating access performance of a high priority area by accessing another area of the disk. it can.

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

【図1】 本発明に係わるディスク制御装置の一実施の
形態を示す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a disk control device according to the present invention.

【図2】 図1に示すディスク制御部のハード構成要素
を説明する図。
FIG. 2 is an exemplary view for explaining hardware components of the disk control unit shown in FIG. 1;

【図3】 本発明に係わるディスクアクセス制御装置の
動作を説明するフローチャート。
FIG. 3 is a flowchart illustrating the operation of the disk access control device according to the present invention.

【図4】 ディスク内の各領域のデータブロックを説明
する図。
FIG. 4 is a view for explaining data blocks in each area in the disk.

【図5】 複数のディスクのデータ領域を、1つの領域
として扱う例を説明する図。
FIG. 5 is a view for explaining an example in which data areas of a plurality of disks are treated as one area.

【図6】 複数のディスクのデータ領域を、1つの領域
として扱う場合のディスク制御部の一構成例を示す図。
FIG. 6 is a diagram showing a configuration example of a disk control unit when data areas of a plurality of disks are treated as one area.

【図7】 従来のディスク制御を説明するディスクの領
域配置図。
FIG. 7 is an area layout diagram of a disk for explaining conventional disk control.

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

2…主制御部 3…ディスク 2…パラメータ発生機構 4…ディスク制御部 4a…ディスクアクセス制御手段 21…ディスクアクセス制御用アプリケーション 23…仮想ドライバ 24…ディスクドライバ DESCRIPTION OF SYMBOLS 2 ... Main control part 3 ... Disk 2 ... Parameter generation mechanism 4 ... Disk control part 4a ... Disk access control means 21 ... Disk access control application 23 ... Virtual driver 24 ... Disk driver

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ディスクの各領域のアクセス処理を行う
ディスク制御方法において、 前記ディスクの各領域毎に、アクセス処理回数、アクセ
スデータ量およびアクセス時間の何れか1つを基準値と
して設定し、この基準値に基づき前記各領域へのアクセ
ス処理を実行することを特徴とするディスク制御方法。
1. A disk control method for performing an access process for each area of a disk, wherein one of an access processing count, an access data amount, and an access time is set as a reference value for each area of the disk. A disk control method, wherein an access process to each area is executed based on a reference value.
【請求項2】 アクセス優先度の高いデータを格納する
領域とアクセス優先度の低いデータを格納する領域が設
定されるディスクと、 前記ディスクの各領域のアクセス優先度に従ってアクセ
ス処理回数、アクセスデータ量およびアクセス時間の少
なくとも1つ基準値として設定する設定手段と、 アクセス要求を監視し、前記基準値に基づき前記ディス
クへのアクセスを実行するディスクアクセス制御手段
と、 を備えたことを特徴とするディスク制御装置。
2. A disk in which an area for storing data with a high access priority and an area for storing data with a low access priority are set, and the number of access processes and the amount of access data according to the access priority of each area of the disk And a setting means for setting at least one of the access times as a reference value, and disk access control means for monitoring an access request and executing access to the disk based on the reference value. Control device.
【請求項3】 ディスクの各領域毎に、単位時間当たり
のアクセス処理回数、アクセスデータ量およびアクセス
時間の何れか1つを計測する計測手段と、 この計測手段により今回単位時間に計測された計測結果
を用いて次回単位時間内のアクセス処理回数、アクセス
データ量、アクセス時間の少なくとも1つを基準値とし
て自動的に設定する自動設定手段と、 アクセス要求を監視し、前記基準値に基づき前記ディス
クへのアクセスを実行するディスクアクセス制御手段
と、 を備えたことを特徴とするディスク制御装置。
3. A measuring means for measuring any one of the number of times of access processing per unit time, an access data amount, and an access time for each area of a disk, and a measurement which is measured by the measuring means in a unit time this time. Automatic setting means for automatically setting at least one of the number of times of access processing in the next unit time, the amount of access data, and the access time as a reference value using the result; monitoring an access request; A disk control device, comprising: disk access control means for performing access to a disk.
【請求項4】 請求項2または請求項3に記載のディス
ク制御装置において、 複数のディスクの各領域を、所要レベルのRAIDで構
成される仮想ディスク領域とする仮想ディスク手段と、
前記ディスクアクセス制御手段から各領域のアクセス処
理の指示を受けたとき、前記仮想ディスク領域から複数
のディスクの中の1つの要求ディスク領域を特定しこの
特定ディスク領域に対してアクセス処理を実行する仮想
ドライバとを設けたことを特徴とするディスク制御装
置。
4. The disk controller according to claim 2, wherein each area of the plurality of disks is a virtual disk area configured by a required level of RAID,
When receiving an instruction to access each area from the disk access control means, the virtual disk area identifies one requested disk area among a plurality of disks and executes an access processing to the specific disk area. A disk control device provided with a driver.
JP11041346A 1999-02-19 1999-02-19 Disk control method and its controller Pending JP2000242441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11041346A JP2000242441A (en) 1999-02-19 1999-02-19 Disk control method and its controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11041346A JP2000242441A (en) 1999-02-19 1999-02-19 Disk control method and its controller

Publications (1)

Publication Number Publication Date
JP2000242441A true JP2000242441A (en) 2000-09-08

Family

ID=12605966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11041346A Pending JP2000242441A (en) 1999-02-19 1999-02-19 Disk control method and its controller

Country Status (1)

Country Link
JP (1) JP2000242441A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010152571A (en) * 2008-12-25 2010-07-08 Kyocera Mita Corp Raid driver, electronic equipment including the same, and access request arbitration method for raid
JP2013084177A (en) * 2011-10-12 2013-05-09 Fujitsu Ltd Control method and program, and computer
JP2015095226A (en) * 2013-11-14 2015-05-18 富士通株式会社 Information processing device, data access method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010152571A (en) * 2008-12-25 2010-07-08 Kyocera Mita Corp Raid driver, electronic equipment including the same, and access request arbitration method for raid
US8347032B2 (en) 2008-12-25 2013-01-01 Kyocera Document Solutions Inc. Image forming apparatus and access request arbitration method for a RAID driver
JP2013084177A (en) * 2011-10-12 2013-05-09 Fujitsu Ltd Control method and program, and computer
JP2015095226A (en) * 2013-11-14 2015-05-18 富士通株式会社 Information processing device, data access method, and program

Similar Documents

Publication Publication Date Title
US6141707A (en) Input/output request allocation by establishing master command queue among plurality of command queues to receive and store commands, determine logical volume, and forwarding command to determined logical volume
US4476526A (en) Cache buffered memory subsystem
US6324599B1 (en) Computer system and method for tracking DMA transferred data within a read-ahead local buffer without interrupting the host processor
US8239640B2 (en) System for controlling performance aspects of a data storage and access routine
JP3137554B2 (en) Data transfer / management system and method
EP2350840B1 (en) Method for controlling performance aspects of a data storage and access routine
EP1006445A2 (en) Dynamically expandable storage unit array system
JP4313516B2 (en) Arbitration method and system for arbitrating access to disk controller memory
US20030023815A1 (en) Cache buffer control method for hard disk drives
EP1880297A1 (en) Data transfer arbitration apparatus and data transfer arbitration method
US6678752B1 (en) Data storage system with automatic storage request analysis and selection of optimal output media type
US5136692A (en) Memory disk buffer manager
US6785752B2 (en) Method for dynamically adjusting buffer utilization ratios in a hard disk drive system
US20210096985A1 (en) Memory controller and storage device including the same
JP2000242441A (en) Disk control method and its controller
JP6848278B2 (en) Storage management device, performance adjustment method and performance adjustment program
JPH05216760A (en) Computer system
GB2225462A (en) Data input/output channel apparatus
CN111309257A (en) Pre-reading method and device for reading file at constant speed and computer readable storage medium
JPH1011337A (en) Method for controlling data in storage device
JP2002140169A (en) Disc array control unit and disc array control method
JP2001184171A (en) Access controller for hard disk and access control task for hard disk
JP2994917B2 (en) Storage system
JP3183984B2 (en) File access control device for low-speed devices
JPH09305322A (en) Storage device