JP3260399B2 - Asynchronous I / O dynamic priority change method - Google Patents

Asynchronous I / O dynamic priority change method

Info

Publication number
JP3260399B2
JP3260399B2 JP17388391A JP17388391A JP3260399B2 JP 3260399 B2 JP3260399 B2 JP 3260399B2 JP 17388391 A JP17388391 A JP 17388391A JP 17388391 A JP17388391 A JP 17388391A JP 3260399 B2 JP3260399 B2 JP 3260399B2
Authority
JP
Japan
Prior art keywords
asynchronous
data
storage device
buffer
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.)
Expired - Fee Related
Application number
JP17388391A
Other languages
Japanese (ja)
Other versions
JPH0520246A (en
Inventor
康弘 阿部
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 Software Hokkaido Ltd
Original Assignee
NEC Software Hokkaido 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 NEC Software Hokkaido Ltd filed Critical NEC Software Hokkaido Ltd
Priority to JP17388391A priority Critical patent/JP3260399B2/en
Publication of JPH0520246A publication Critical patent/JPH0520246A/en
Application granted granted Critical
Publication of JP3260399B2 publication Critical patent/JP3260399B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,データ処理システムに
関し,特に,システムにおける非同期I/O処理のタイ
ミングの制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing system, and more particularly to a method for controlling the timing of asynchronous I / O processing in a system.

【0002】[0002]

【従来の技術】一般に,この種のデータ処理システムに
は,主記憶装置のほかに,外部記憶装置を備え,主記憶
装置の一部を外部記憶装置用の非同期I/Oバッファと
して使用するものがある。この場合,ユーザプログラム
との間で各種要求及びデータの授受を行なう制御プログ
ラムの制御のもとに,データの非同期I/Oバッファに
対してデータの書込みあるいはこのバッファからのデー
タの読み出しが行なわれている。
2. Description of the Related Art Generally, a data processing system of this type includes an external storage device in addition to a main storage device, and uses a part of the main storage device as an asynchronous I / O buffer for the external storage device. There is. In this case, data is written to or read from the asynchronous I / O buffer of data under the control of a control program that sends and receives various requests and data to and from the user program. ing.

【0003】また,ユーザプログラムからの書き込み要
求が出されると,非同期I/Oバッファからデータの使
用率等には関係なく,外部記憶装置にデータが書き込ま
れていた。このように,従来の非同期I/O方式にて外
部記憶装置をアクセスするデータ処理システムでは,外
部記憶装置へのI/O動作はデータ間のプライオリティ
を考慮することなく実行されていた。
When a write request is issued from a user program, data is written from an asynchronous I / O buffer to an external storage device irrespective of the data usage rate or the like. As described above, in the data processing system that accesses the external storage device by the conventional asynchronous I / O method, the I / O operation to the external storage device is performed without considering the priority between data.

【0004】[0004]

【発明が解決しようとする課題】換言すれば,上記した
様に非同期I/O方式にて外部記憶装置をアクセスする
データ処理システムにおいては,外部記憶装置へのI/
Oは一意なプライオリティの非同期I/O実行タスクに
て,I/Oが実行されていた為,データの再利用化,お
よび,外部記憶装置に対する最適なアクセスなどのシス
テムにおける非同期I/Oバッファ内のデータ操作の効
率化が考慮されていない。例えば,ユーザプログラムか
らのデータ読み込み要求が発生した時点で該当するデー
タが見つからず,再度,外部記憶装置からデータを読み
込むと言った様な問題点があった。そこで,本発明の技
術的課題は,主記憶装置を有効に利用することができ,
ユーザプログラムからのデータ読み込み,書き込み時間
を短縮し,データ処理速度を飛躍的に向上することがで
きる非同期I/Oダイナミックプライオリティチェンジ
方式を提供することにある。
In other words, in the data processing system for accessing the external storage device by the asynchronous I / O method as described above, the I / O to the external storage device is not performed.
O is an asynchronous I / O execution task having a unique priority, and the I / O is being executed. Therefore, the data is reused and the optimal I / O access to the external storage device is performed in the asynchronous I / O buffer in the system. Does not consider the efficiency of data manipulation. For example, when a data read request is issued from a user program, the corresponding data is not found, and there is a problem that data is read from the external storage device again. Therefore, a technical problem of the present invention is that the main storage device can be used effectively,
It is an object of the present invention to provide an asynchronous I / O dynamic priority change method capable of shortening the time for reading and writing data from a user program and dramatically improving the data processing speed.

【0005】[0005]

【課題を解決するための手段】本発明によれば、外部記
憶装置と主記憶装置とを備え,該主記憶装置の一部を前
記外部記憶装置用の非同期I/Oバッファとして使用
し,このバッファ内にデータを格納する制御プログラム
と,このバッファ内のデータを非同期I/O実行タスク
にて主記憶空間から前記外部記憶装置へ非同期I/O動
作を行うデータ処理システムにおいて,前記非同期I/
O実行タスクのプライオリティを制御するためのプライ
オリティ制御手段と,該プライオリティ制御手段のもと
に,非同期I/Oバッファの使用率に基づき、非同期I
/O実行タスクのプライオリティをダイナミックにチェ
ンジする手段とを有することを特徴とする非同期I/O
ダイナミックプライオリティチェンジ方式が得られる。
According to the present invention, an external storage device and a main storage device are provided, and a part of the main storage device is used as an asynchronous I / O buffer for the external storage device. In a data processing system that performs an asynchronous I / O operation from a main storage space to the external storage device by using an asynchronous I / O execution task, a control program that stores data in a buffer and the asynchronous I / O execution task
A priority control means for controlling the priority of the O execution task; and an asynchronous I / O buffer based on the utilization rate of the asynchronous I / O buffer under the priority control means.
Means for dynamically changing the priority of the I / O execution task.
A dynamic priority change method is obtained.

【0006】本発明によれば,前記プライオリティ制御
手段は,前記非同期I/O実行タスクと,前記制御プロ
グラムとからの夫々のデータ書き込み要求によってカウ
ントが更新されることによって,前記バッファ内のデー
タ使用率を算出する非同期I/Oデータカウンタと,該
カウンタの内容に応じて,前記非同期I/O実行タスク
のプライオリティを制御するプライオリティ制御テーブ
ルとを有することを特徴とする非同期I/Oダイナミッ
クプライオリティチェンジ方式が得られる。
According to the present invention, the priority control means updates the count in response to each data write request from the asynchronous I / O execution task and the control program, thereby controlling the use of data in the buffer. An asynchronous I / O dynamic priority change, comprising: an asynchronous I / O data counter for calculating a rate; and a priority control table for controlling the priority of the asynchronous I / O execution task in accordance with the contents of the counter. A scheme is obtained.

【0007】[0007]

【0008】[0008]

【作用】本発明においては,主記憶装置の一部を前記外
部記憶装置用の非同期I/Oバッファとして使用してい
る。制御プログラムは,このバッファ内にデータを格納
する。一方,非同期I/O実行タスクは,バッファ内の
データを主記憶空間から外部記憶装置へ非同期I/O動
作を行う。この非同期I/O実行タスクのプライオリテ
ィは,プライオリティ制御手段によって制御され,プラ
イオリティをチェンジする手段によって,このプライオ
リティ制御手段のもとに,プライオリティがチェンジさ
れる。
In the present invention, a part of the main storage device is used as an asynchronous I / O buffer for the external storage device. The control program stores data in this buffer. On the other hand, the asynchronous I / O execution task performs an asynchronous I / O operation on data in the buffer from the main storage space to the external storage device. The priority of the asynchronous I / O execution task is controlled by priority control means, and the priority is changed by means of priority change under the priority control means.

【0009】[0009]

【実施例】次に,本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0010】図1は本発明の実施例のブロック図であ
る。図1に示すように,データ処理システムは制御プロ
グラム10と,非同期I/O実行タスク20と,プライ
オリティ制御テーブル6と,非同期I/Oデータカウン
タ7と,主記憶空間の一部が非同期I/Oバッファ3と
して使用される主記憶装置4と,外部記憶装置5とで構
成されている。
FIG. 1 is a block diagram of an embodiment of the present invention. As shown in FIG. 1, the data processing system includes a control program 10, an asynchronous I / O execution task 20, a priority control table 6, an asynchronous I / O data counter 7, and a part of the main storage space of an asynchronous I / O. It comprises a main storage device 4 used as the O buffer 3 and an external storage device 5.

【0011】図2は図1で示す非同期I/O実行タスク
20の処理例の流れ図である。
FIG. 2 is a flowchart of a processing example of the asynchronous I / O execution task 20 shown in FIG.

【0012】図2をも参照して,図1に示された実施例
の動作を説明すると,制御プログラム10は,ユーザプ
ログラム00からの入出力要求に従って,非同期I/O
バッファ3内にデータの入力1及び出力2を行いユーザ
プログラム00との間でデータの授受を行う。このデー
タの入力1の際に,非同期I/Oデータカウンタ7を更
新する。
Referring to FIG. 2, the operation of the embodiment shown in FIG. 1 will now be described. The control program 10 executes an asynchronous I / O in accordance with an input / output request from a user program 00.
Data input 1 and output 2 are performed in the buffer 3, and data is exchanged with the user program 00. At the time of this data input 1, the asynchronous I / O data counter 7 is updated.

【0013】また,非同期I/O実行タスク20は,ユ
ーザプログラム00とは別に非同期I/Oバッファ3内
のデータが無くなるまで外部記憶装置5へ書き込む。こ
の際,非同期I/Oデータカウンタ7を更新する(S
6)。
The asynchronous I / O execution task 20 writes the data in the external storage device 5 until the data in the asynchronous I / O buffer 3 is exhausted separately from the user program 00. At this time, the asynchronous I / O data counter 7 is updated (S
6).

【0014】具体的には図2に示すように,非同期I/
O実行タスク20は,非同期I/Oバッファ3内に有効
データが生成されたときレディ状態となり,非同期I/
Oバッファ3内にデータが無くなるまで外部記憶装置5
へデータを書き込む(S5,S7)。この処理を行って
いる非同期I/O実行タスク20は非同期I/Oデータ
カウンタ7と,プライオリティ制御テーブルを用いてプ
ライオリティを変更している(S1,S2,S3)。
More specifically, as shown in FIG.
The O execution task 20 becomes ready when valid data is generated in the asynchronous I / O buffer 3, and
External storage device 5 until there is no more data in O-buffer 3
Data is written to (S5, S7). The asynchronous I / O execution task 20 performing this process changes the priority using the asynchronous I / O data counter 7 and the priority control table (S1, S2, S3).

【0015】非同期I/O実行タスク20は,ユーザプ
ログラム00,制御プログラム10とは別に動作し,非
同期I/Oバッファの使用率からプライオリティをダイ
ナミックチェンジ(S6)している。このとき,バッフ
ァ使用率に当てはまるプライオリティをプライオリティ
制御テーブル6からサーチしているのである(S3)。
The asynchronous I / O execution task 20 operates separately from the user program 00 and the control program 10, and dynamically changes the priority based on the usage rate of the asynchronous I / O buffer (S6). At this time, the priority applicable to the buffer usage rate is searched from the priority control table 6 (S3).

【0016】これらのことを関連付けると,ユーザプロ
グラム00と制御プログラム10との間でデータの授受
を行っていることによりユーザプログラム00からデー
タの書き込み要求が発生した時点で制御プログラム10
は,そのデータを非同期I/Oバッファ3に格納し,非
同期I/O実行タスク20をレディ状態として,以前の
ユーザプログラムとの間のデータ授受を続ける。一方,
非同期I/O実行タスク20は制御プログラム10にレ
ディ状態とされたことによって非同期I/Oバッファ3
内の有効データを外部記憶装置5に有効データがなくな
るまで書き込み処理を続けるのである。しかし,この書
き込み処理をシステムにおいて最適なタイミングで行う
ために,非同期I/O実行タスク20と制御プログラム
10とで非同期I/Oバッファの使用率算出のためのカ
ウンタを管理することでプライオリティ制御テーブルを
用いて非同期I/O実行タスク20のプライオリティを
制御している。
In connection with the above, since data is exchanged between the user program 00 and the control program 10, when the data write request is issued from the user program 00, the control program 10
Stores the data in the asynchronous I / O buffer 3, sets the asynchronous I / O execution task 20 to the ready state, and continues data exchange with the previous user program. on the other hand,
The asynchronous I / O execution task 20 is brought into the ready state by the control program 10 and the asynchronous I / O buffer 3
The writing process is continued until the valid data in the external storage device 5 has no valid data. However, in order to perform this write processing at the optimum timing in the system, the asynchronous I / O execution task 20 and the control program 10 manage a counter for calculating the usage rate of the asynchronous I / O buffer, and thus the priority control table is managed. Is used to control the priority of the asynchronous I / O execution task 20.

【0017】[0017]

【発明の効果】以上,説明したように本発明によれば,
書き込み要求が発生した時点で非同期I/Oバッファ内
にデータを保存し,実際の書き込みは別タスクにて行わ
せるのだが,このときシステムにおいて非同期I/Oバ
ッファ内のデータを有効利用させるために,非同期I/
Oバッファの使用率から非同期I/O実行タスクのプラ
イオリティを制御し,動的に変更することによって,外
部記憶装置へ書き込みを行なわせているので,データの
再利用化,および,外部記憶装置に対しての適切なアク
セスを行う事により,主記憶装置を有効に利用すること
ができ,ユーザプログラムからのデータの読み込み,書
き込み時間が短縮し,データ処理システムの処理速度を
飛躍的に向上することができる非同期I/Oダイナミッ
クプライオリティチェンジ方式を提供することができ
る。
According to the present invention as described above,
When a write request occurs, the data is stored in the asynchronous I / O buffer, and the actual writing is performed by a separate task. At this time, in order for the system to make effective use of the data in the asynchronous I / O buffer, , Asynchronous I /
The priority of the asynchronous I / O execution task is controlled based on the usage rate of the O-buffer, and is dynamically changed so that writing to the external storage device is performed. By making appropriate access to the main storage, the main storage can be used effectively, reducing the time required to read and write data from the user program, and dramatically improving the processing speed of the data processing system. As a result, an asynchronous I / O dynamic priority change method can be provided.

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

【図1】本発明の実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の非同期I/O実行タスクの処理例の流れ
図である。
FIG. 2 is a flowchart of a processing example of an asynchronous I / O execution task in FIG. 1;

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

1 入力 2 出力 3 非同期I/Oバッファ 4 主記憶装置 5 外部記憶装置 6 プライオリティ制御テーブル 7 非同期I/Oデータカウンタ 00 ユーザプログラム 10 制御プログラム 20 非同期I/O実行タスク 1 Input 2 Output 3 Asynchronous I / O Buffer 4 Main Storage 5 External Storage 6 Priority Control Table 7 Asynchronous I / O Data Counter 00 User Program 10 Control Program 20 Asynchronous I / O Execution Task

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 外部記憶装置と主記憶装置とを備え、該
主記憶装置の一部を前記外部記憶装置用の非同期I/O
バッファとして使用し、この非同期I/Oバッファ内に
データを格納する制御プログラムと、この非同期I/O
バッファ内のデータを非同期I/O実行タスクにて主記
憶空間から前記外部記憶装置へ非同期I/O動作を行う
データ処理システムにおいて、前記非同期I/O実行タスクと前記制御プログラムとか
らのデータ書き込み要求に応じてカウントが更新される
非同期I/Oデータカウンタと、 この非同期I/Oデータカウンタのカウントに相当する
前記非同期I/Oバッファの使用率と前記非同期I/O
実行タスクのプライオリティとを対応づけて格納するプ
ライオリティ制御テーブルと、 前記非同期I/Oカウンタと前記プライオリティ制御テ
ーブルとを参照して 前記非同期I/O実行タスクのプラ
イオリティを決定し、動的に変更するプライオリティ制
御手段とを備えたことを特徴とする非同期I/Oダイナ
ミックプライオリティチェンジ方式。
An external storage device and a main storage device are provided, and a part of the main storage device is used as an asynchronous I / O for the external storage device.
Use as a buffer, and a control program to store data in the asynchronous I / O buffer, the asynchronous I / O
In a data processing system in which data in a buffer is subjected to an asynchronous I / O operation from a main storage space to an external storage device by an asynchronous I / O execution task, the asynchronous I / O execution task and the control program
The count is updated in response to these data write requests
Asynchronous I / O data counter and corresponds to the count of the asynchronous I / O data counter
Usage rate of the asynchronous I / O buffer and the asynchronous I / O
A program that stores execution task priorities in association with each other.
A priority control table, the asynchronous I / O counter, and the priority control table.
Asynchronous I / O dynamic priority change method referring to the Buru determines the priority of the asynchronous I / O execution task, is characterized in that a priority control means for dynamically changing.
JP17388391A 1991-07-15 1991-07-15 Asynchronous I / O dynamic priority change method Expired - Fee Related JP3260399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17388391A JP3260399B2 (en) 1991-07-15 1991-07-15 Asynchronous I / O dynamic priority change method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17388391A JP3260399B2 (en) 1991-07-15 1991-07-15 Asynchronous I / O dynamic priority change method

Publications (2)

Publication Number Publication Date
JPH0520246A JPH0520246A (en) 1993-01-29
JP3260399B2 true JP3260399B2 (en) 2002-02-25

Family

ID=15968883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17388391A Expired - Fee Related JP3260399B2 (en) 1991-07-15 1991-07-15 Asynchronous I / O dynamic priority change method

Country Status (1)

Country Link
JP (1) JP3260399B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014226341A1 (en) * 2014-12-18 2016-06-23 Volkswagen Aktiengesellschaft Compressor, exhaust gas turbocharger and internal combustion engine
JP7138242B2 (en) 2019-05-30 2022-09-15 三菱重工エンジン&ターボチャージャ株式会社 Centrifugal compressor and turbocharger

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6080283A (en) * 1997-11-25 2000-06-27 Eveready Battery Company, Inc. Plasma treatment for metal oxide electrodes

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014226341A1 (en) * 2014-12-18 2016-06-23 Volkswagen Aktiengesellschaft Compressor, exhaust gas turbocharger and internal combustion engine
JP7138242B2 (en) 2019-05-30 2022-09-15 三菱重工エンジン&ターボチャージャ株式会社 Centrifugal compressor and turbocharger

Also Published As

Publication number Publication date
JPH0520246A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JPH0340868B2 (en)
JP2821345B2 (en) Asynchronous I / O control method
JP3260399B2 (en) Asynchronous I / O dynamic priority change method
JPH0512194A (en) Data processing system having access to external storage in asynchronous i/o system
JP2856003B2 (en) Asynchronous data input / output method
JPH01251248A (en) Cache control system for stack data structure
JP2735400B2 (en) Asynchronous I / O control method
JPH0447350A (en) Main storage read/response control
JP3574693B2 (en) Instruction processor
JPH0449457A (en) Direct memory access transfer control device
JPH06103026A (en) Memory system
JPH0133862B2 (en)
JP2581144B2 (en) Bus control device
JP2847863B2 (en) Microprocessor interrupt control method
JP3076199B2 (en) Buffer access control circuit
JPH03282756A (en) Asynchronous input/output system
JPS63106849A (en) Control method for cache memory
JPH064447A (en) Asynchronous i/o processing system
JPH0520243A (en) Data processing system
JPH04245544A (en) Priority change system
JPH04111026A (en) Write system for updating history information to data base
JPH03286348A (en) Disk cache control system
JPH05334190A (en) Disk cache system
JPH03176749A (en) Control system for buffer storage system
JPS6162152A (en) Method for controlling vacant area of storage device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010822

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011113

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees