JPH04360215A - Accounting controller and method for controlling load - Google Patents

Accounting controller and method for controlling load

Info

Publication number
JPH04360215A
JPH04360215A JP3134977A JP13497791A JPH04360215A JP H04360215 A JPH04360215 A JP H04360215A JP 3134977 A JP3134977 A JP 3134977A JP 13497791 A JP13497791 A JP 13497791A JP H04360215 A JPH04360215 A JP H04360215A
Authority
JP
Japan
Prior art keywords
request
load
file
resource
usage
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
JP3134977A
Other languages
Japanese (ja)
Inventor
Shoji Sakurai
鐘治 桜井
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3134977A priority Critical patent/JPH04360215A/en
Publication of JPH04360215A publication Critical patent/JPH04360215A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the efficient utilization of resources by smoothing the load of a computer resource to the lapse of time and preventing the resource from the increase of loads. CONSTITUTION:A request having priority order is inputted from a terminal 1 and stored in a queue 3 by the computer resource (CPU) 2. The request whose priority order is more than a reference value calculated from a utilization rate is extracted from the queue 3 and executed. At this time, a load recording means 50 records the utilization rate of the resource in a utilization rate file 6, a utilization recording means 51 stores information such as the utilization time of the resource in an accounting file 7 and an accounting means 51 executes accounting calculation in proportional to the utilization rate and forms an accounting information file 8. Since accounting proportional to a load state is executed, the excess state of loads to the resource or the idle state of the resource without using it can be removed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、資源の利用に課金を
行なう計算機システム等の課金制御装置に関し、また資
源の負荷状態を制御する負荷制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a billing control device for a computer system or the like that charges for the use of resources, and also to a load control method for controlling the load state of resources.

【0002】0002

【従来の技術】従来のリクエストの実行を制御する方法
としては図6に示すようにリクエストを複数のクラスに
分けて制御する方法があった。この図はJames  
L  Peterson,Abraham  Silb
erschatz著;宇津宮孝一,福田晃訳:『オペレ
ーティングシステムの概念』,P.133  1987
年7月10日株式会社培風館発行に示されているもので
、OS/MFTシステムに用いられた方法である。図に
おいては36はシステムリクエストの待ち行列、37は
会話型リクエストの待ち行列、38は会話型編集リクエ
ストの待ち行列、39はバッチリクエストの待ち行列、
40は学生のリクエストの待ち行列を表す。
2. Description of the Related Art A conventional method for controlling the execution of requests is to divide requests into a plurality of classes and control them, as shown in FIG. This illustration is by James
L. Peterson, Abraham Silb
erschatz; Translated by Koichi Utsunomiya and Akira Fukuda: "Concepts of Operating Systems", P. 133 1987
This method was published by Baifukan Co., Ltd. on July 10, 2007, and was used in the OS/MFT system. In the figure, 36 is a system request queue, 37 is an interactive request queue, 38 is an interactive edit request queue, 39 is a batch request queue,
40 represents a queue of student requests.

【0003】次いで動作について説明する。各待ち行列
の中のリクエストはシステムリクエスト、会話型リクエ
スト、会話型編集リクエスト、バッチリクエスト、学生
のリクエストの順に実行の優先順位が高い。各待ち行列
中のリクエストは優先順位に従って実行される。システ
ムリクエスト、会話型リクエスト、および会話型編集リ
クエストの待ち行列が全て空でなければ、バッチの待ち
行列中のリクエストは実行されない。もしバッチリクエ
ストが実行されている時に、会話型編集リクエストが待
ち行列にはいってくると、会話型編集リクエストが実行
される。また、待ち行列に割り当てられる実行時間を優
先順位が高い方が多くなるように割り当てることも可能
である。
Next, the operation will be explained. Requests in each queue are prioritized for execution in the following order: system requests, interactive requests, interactive editing requests, batch requests, and student requests. Requests in each queue are executed according to priority. Requests in the batch queue will not be executed unless the system request, interactive request, and interactive edit request queues are all empty. If an interactive edit request is queued while a batch request is being executed, the interactive edit request will be executed. It is also possible to allocate more execution time to the queues so that the higher the priority, the more execution time is allocated to the queue.

【0004】0004

【発明が解決しようとする課題】このような従来のリク
エストスケジュールの方法では、リクエストが多い場合
には、資源の利用率はほとんど1に近く、ユーザからみ
た計算機の応答は非常に遅い状態や、使えない状態が生
じる。逆にリクエストが少ない場合には資源の利用率が
低下してしまい、計算機資源が使われずに遊んでいる状
態が生じる。このように従来の方法では計算機資源にか
かる負荷は利用者側の利用状況だけに左右されシステム
側で制御することができないという問題があった。
[Problems to be Solved by the Invention] In such conventional request scheduling methods, when there are many requests, the resource utilization rate is almost 1, and the response of the computer from the user's perspective is very slow. A situation arises where it cannot be used. Conversely, when there are few requests, the resource utilization rate decreases, resulting in a state in which computer resources are idle without being used. As described above, the conventional method has a problem in that the load on computer resources depends only on the usage status of the user and cannot be controlled on the system side.

【0005】この発明は、上記のような問題点を解決す
るためになされたもので、計算機資源の負荷を時間に対
して平滑化し、資源に対する負荷の極端な増大を回避し
、資源の効率的な運用を期待し得る課金制御装置及び負
荷制御方法を提供する事を目的とする。
[0005] This invention was made to solve the above problems, and it smoothes the load on computer resources over time, avoids an extreme increase in the load on resources, and improves the efficiency of resources. The purpose of the present invention is to provide a billing control device and a load control method that can be expected to have efficient operation.

【0006】[0006]

【課題を解決するための手段】この発明に係る課金制御
装置は、以下の要素を有するものである。(a)計算機
資源の負荷状態を記録する負荷記録手段、(b)各利用
者がどれだけ計算機資源を利用したかを記録する利用記
録手段、(c)上記負荷記録手段により記録された負荷
状態と、利用記録手段により記録された利用結果とに基
づいて、計算機資源利用に対する課金情課を算出する課
金手段。
[Means for Solving the Problems] A billing control device according to the present invention has the following elements. (a) Load recording means for recording the load state of computer resources; (b) Usage recording means for recording how much computer resources are used by each user; (c) Load state recorded by the load recording means. and charging means for calculating charging information for computer resource usage based on the usage result recorded by the usage recording means.

【0007】この発明に係る負荷制御方法は、以下の工
程を有するものである。(a)計算機資源の利用リクエ
ストの実行を計算機資源の負荷状態と比較して決定する
実行決定工程、(b)計算機資源の負荷状態から利用リ
クエストに対しての課金の相場を決定する相場決定工程
、(c)上記相場決定工程によって決定された課金相場
にしたがい、実行決定工程の決定により実行された利用
リクエストに対する課金を算出する課金工程。
The load control method according to the present invention includes the following steps. (a) Execution determination step of determining the execution of a computer resource utilization request by comparing it with the load condition of the computer resource; (b) Market price determination step of determining the market price of charging for the utilization request from the load condition of the computer resource. , (c) a billing step for calculating charges for the usage request executed as determined in the execution determining step, in accordance with the billing market price determined in the market price determining step.

【0008】[0008]

【作用】この発明に係る課金制御装置では、課金手段が
、計算機資源の負荷の大小に応じて、相当の課金を算出
するので、負荷が大きいとき課金も大きくなり、利用者
が負荷の少ないときに利用リクエストを発することが期
待できる。
[Operation] In the charging control device according to the present invention, the charging means calculates a corresponding charge depending on the magnitude of the load on computer resources, so when the load is large, the charge is also large, and when the user has a small load, the charge is large. It is expected that usage requests will be issued.

【0009】この発明に係る負荷制御方法は、実行決定
工程において、リクエストの優先度を負荷状態と比較し
て、これを越える場合にのみリクエストが実行され、相
場決定工程において、負荷状態により利用者に対しての
課金の相場が重み付けされ、課金工程において、相場決
定工程において決定された課金相場にしたがい利用情報
から課金が算出されるので、負荷が大きいとき課金も大
きくなり、利用者が負荷の少ないときに利用リクエスト
を発することが期待できる。
[0009] In the load control method according to the present invention, the priority of the request is compared with the load condition in the execution determination step, and the request is executed only when the priority is exceeded. The market rate of charges is weighted, and in the billing process, charges are calculated from usage information according to the billing rate determined in the market price determination process. It can be expected that usage requests will be issued when there are few.

【0010】0010

【実施例】【Example】

実施例1.図1はこの発明の一実施例を示すCPU負荷
制御システムの構成図である。1はリクエストを発する
端末、2はリクエストを処理実行するCPU、3はリク
エストを格納するキュー、4はメモリ、5はディスク、
6はCPU2の負荷状態を利用率y(0≦y≦1)とし
て記録する利用率ファイル、7はリクエストの実行開始
時刻や終了時刻等の利用情報を記録するアカウンティン
グファイル、8はリクエストの実行に対して計算されて
た課金情報を記録する課金情報ファイルである。
Example 1. FIG. 1 is a block diagram of a CPU load control system showing an embodiment of the present invention. 1 is the terminal that issues the request, 2 is the CPU that processes and executes the request, 3 is the queue that stores the request, 4 is the memory, 5 is the disk,
6 is a usage rate file that records the load state of the CPU 2 as a usage rate y (0≦y≦1), 7 is an accounting file that records usage information such as request execution start time and end time, and 8 is a file used for request execution. This is a billing information file that records billing information that has been calculated.

【0011】50はCPU2を常時監視し、リクエスト
が実行されるときのCPU2の利用率yを利用率ファイ
ルに記録する負荷記録手段、51は利用リクエストの開
始・終了をアカウンティングファイル7に記録する利用
記録手段、52は利用率yと利用情報から課金を計算し
て課金情報ファイル8に記録する課金手段である。
50 is a load recording means that constantly monitors the CPU 2 and records the usage rate y of the CPU 2 when a request is executed in a usage rate file; 51 is a usage unit that records the start and end of usage requests in an accounting file 7; A recording unit 52 is a billing unit that calculates billing from the usage rate y and usage information and records it in the billing information file 8.

【0012】端末1はCPU2を利用するリクエストに
優先順位x(0<x<1)を付けてシステムに投入する
。CPU2は、CPUの利用を待っているリクエストを
格納するキュー3をメモリ4上に持つ。ディスク5上の
利用率ファイル6にはリクエストにCPU2が割り当て
られた時の利用率yが、負荷記録手段50により格納さ
れ、アカウンティングファイル7にはリクエストにCP
U2が割り当てられた時刻が、利用記録手段51により
格納される。課金情報ファイル8には、課金手段52に
より、利用率ファイル6中の利用率yの関数である課金
相場 f(y)=y とアカウンティングファイル7中のCPU2の割り当て
時刻から求まる課金情報が各利用者毎に加算され格納さ
れる。この課金情報をもとにシステム管理者が定期的に
システム利用者に課金を行なう。
[0012] The terminal 1 assigns a priority x (0<x<1) to a request using the CPU 2 and submits the request to the system. The CPU 2 has a queue 3 on the memory 4 that stores requests waiting to be used by the CPU. In the utilization rate file 6 on the disk 5, the utilization rate y when the CPU 2 is assigned to the request is stored by the load recording means 50, and in the accounting file 7, the utilization rate y when the CPU 2 is assigned to the request is stored.
The time when U2 is assigned is stored by the usage recording means 51. The billing information file 8 contains billing information determined by the billing means 52 from the billing market rate f(y)=y, which is a function of the usage rate y in the usage rate file 6, and the allocation time of the CPU 2 in the accounting file 7, for each use. It is added and stored for each person. Based on this billing information, the system administrator periodically charges the system user.

【0013】このような構成のシステムにおいてはリク
エストの投入を契機に図2に示すフローチャートに基づ
いた処理が開始されキュー3からリクエストが取り出さ
れ実行される。 (1)実行決定工程 まず、ステップ9でCPU2のキューにリクエストがあ
るかどうかを調べる。リクエストがない場合には終了す
る。リクエストがある場合にはステップ10でキュー3
のリクエストの優先順位が大きい順になるようにソート
する。ステップ11でキュー3の先頭にあるリクエスト
の優先順位xが利用率y以上であるかを調べる。x<y
の場合にはステップ10、11を繰り返す。 (2)実行工程 x≧yの場合にはステップ12で利用率yを利用率ファ
イル6に、この時の時刻tをt1 としてアカウンティ
ングファイル7にそれぞれ格納し、ステップ13でリク
エストにCPU2を割り当てる。CPU2の利用が終了
した後、ステップ14でこの時の時刻t2 をアカウン
ティングファイル7に格納する。 (3)相場決定工程 次にステップ15では、ステップ12で格納した利用率
ファイル6の利用率yから相場を決定する。この例では
f(y)=yなので、相場は利用率そのものであり0≦
f(y)≦1である。 (4)課金工程 次にステップ16では、アカウンティングファイル7中
の時刻t1とt2を差分した時間T(T=t2−t1)
と利用率ファイル6中のyより求めたf(y)により、
f(y)・Tを算出し課金情報ファイル8中の各利用者
の課金情報に加算する。この後、ステップ7に戻る。
In a system having such a configuration, when a request is submitted, processing based on the flowchart shown in FIG. 2 is started, and the request is taken out from the queue 3 and executed. (1) Execution decision step First, in step 9, it is checked whether there is a request in the queue of the CPU 2. If there are no requests, the process ends. If there is a request, queue 3 in step 10.
Sort the requests in descending order of priority. In step 11, it is checked whether the priority x of the request at the head of the queue 3 is greater than or equal to the utilization rate y. x<y
In this case, repeat steps 10 and 11. (2) In the case of execution step x≧y, in step 12, the utilization rate y is stored in the utilization rate file 6, and the time t at this time is stored as t1 in the accounting file 7, and in step 13, the CPU 2 is assigned to the request. After the CPU 2 is used, the current time t2 is stored in the accounting file 7 in step 14. (3) Market price determination step Next, in step 15, the market price is determined from the usage rate y of the usage rate file 6 stored in step 12. In this example, f(y) = y, so the market price is the utilization rate itself, and 0≦
f(y)≦1. (4) Billing process Next, in step 16, the time T (T = t2 - t1) which is the difference between times t1 and t2 in the accounting file 7 is calculated.
and f(y) obtained from y in the usage rate file 6,
f(y)·T is calculated and added to each user's billing information in the billing information file 8. After this, return to step 7.

【0014】従って優先順位に比例して課金相場が変動
することによって優先順位の大きいリクエストは高い課
金で処理され、優先順位の小さいリクエストは低い課金
で処理されることになる。
[0014] Therefore, since the billing rate changes in proportion to the priority, requests with higher priorities are processed with higher charges, and requests with lower priorities are processed with lower charges.

【0015】実施例2.実施例1においては優先順位x
は0<x<1であったが、実施例2においては、図1の
CPU負荷制御システムの構成図において、端末1から
のCPU2を利用するリクエストの優先順位は全て1(
x=1)である場合を例にして説明する。実施例2の場
合も、実施例1と同様に、CPU2は、CPUの利用を
待っているリクエストをFIFOで格納するキュー3を
メモリ4上に持つ。ディスク5上の利用率ファイル6に
はリクエストにCPU2が割り当てられた時の利用率y
が格納され、アカウンティングファイル7にはリクエス
トにCPU2が割り当てられた時刻が格納される。課金
情報ファイル8には利用率ファイル4中の利用率yの関
数である課金相場 f(y)=y とアカウンティングファイル5中のCPU2の割り当て
時刻から求まる課金情報が各利用者毎に加算されたもの
が格納される。この課金情報をもとにシステム管理者が
定期的にシステム利用者に課金を行なう。
Example 2. In Example 1, priority x
was 0<x<1, but in the second embodiment, in the configuration diagram of the CPU load control system in FIG.
The case where x=1) will be explained as an example. In the case of the second embodiment, as in the first embodiment, the CPU 2 has a queue 3 on the memory 4 in which requests waiting to be used by the CPU are stored in a FIFO format. The utilization rate file 6 on disk 5 contains the utilization rate y when CPU2 is assigned to a request.
is stored, and the accounting file 7 stores the time when the CPU 2 is assigned to the request. In the billing information file 8, the billing market rate f(y)=y, which is a function of the usage rate y in the usage rate file 4, and the billing information determined from the allocation time of the CPU 2 in the accounting file 5 are added for each user. things are stored. Based on this billing information, the system administrator periodically charges the system user.

【0016】このような構成のシステムにおいてはリク
エストの投入を契機に図3に示すフローチャートに基づ
いた処理が開始されキュー3からリクエストが取り出さ
れ実行される。まず、ステップ17でCPU2のキュー
3にリクエストがあるかどうかを調べる。リクエストが
ない場合には終了する。リクエストがある場合には、ス
テップ18で利用率yを利用率ファイル6に、この時の
時刻をt1 としてアカウンティングファイル7にそれ
ぞれ格納し、ステップ19でリクエストにCPU2を割
り当てる。CPU2の利用が終了した後、ステップ20
でこの時の時刻t2 をアカウンティングファイル7に
格納する。次にステップ21では相場f(y)を利用率
ファイルに格納された利用率yから求める。そしてステ
ップ22によりアカウンティングファイル7中の時刻t
1とt2を差分した時間T(T=t2−t1)と利用率
ファイル6中のyより求めたf(y)よりf(y)・T
を算出した課金情報ファイル8中の各利用者の課金情報
に加算する。この後、ステップ17に戻る。
In a system having such a configuration, when a request is submitted, processing based on the flowchart shown in FIG. 3 is started, and the request is taken out from the queue 3 and executed. First, in step 17, it is checked whether there is a request in the queue 3 of the CPU 2. If there are no requests, the process ends. If there is a request, in step 18 the utilization rate y is stored in the utilization rate file 6, and this time is stored as t1 in the accounting file 7, and in step 19 the CPU 2 is assigned to the request. After the use of CPU2 is finished, step 20
Then, the time t2 at this time is stored in the accounting file 7. Next, in step 21, the market price f(y) is determined from the usage rate y stored in the usage rate file. Then, in step 22, the time t in the accounting file 7 is
From f(y) obtained from the time T (T = t2 - t1) obtained by difference between 1 and t2 and y in the utilization rate file 6, f(y)・T
is added to the calculated billing information of each user in the billing information file 8. After this, the process returns to step 17.

【0017】従って、この実施例2でも、CPUの利用
率に比例して課金相場が変動することによってCPUの
利用率が高い時にはリクエストは高い課金で処理され、
CPUの利用率が低い時には低い課金で処理されること
になるが、特に実施例2では優先順位xが一定の場合(
x=1)でも(あるいは、優先順位というものがない場
合でも)、利用率yのみにより、実施例1と同様に負荷
が大きいときには課金が大きくなり、利用者が負荷の少
ないときに利用リクエストを発することが期待できる。
Therefore, in this second embodiment as well, the billing rate fluctuates in proportion to the CPU usage rate, so that when the CPU usage rate is high, requests are processed at high charges.
When the CPU utilization rate is low, processing will be performed at a low charge, but especially in Example 2, when the priority order x is constant (
x = 1) (or even if there is no priority order), depending only on the usage rate y, as in Example 1, when the load is heavy, the charge will be high, and when the load is low, the user will make a usage request. You can expect it to come out.

【0018】実施例3.図4はこの発明の他の実施例を
示すディスク装置負荷制御システムの構成図である。端
末1はディスク5を利用するリクエストに優先順位x(
0<x≦1)を付けてシステムに投入する。ディスク5
を解放するリクエストの場合にのみ優先順位をx=1と
する。ディスク5はディスクの利用を待っているリクエ
ストを格納するキュー3をメモリ4上に持つ。ディスク
5上の利用率ファイル6にはディスクの利用率yが格納
される。アカウンティングファイル7には利用されてい
るディスク5のブロック数とディスク5の割当が変化し
た時刻が格納され、初期状態では全て0である。課金情
報ファイル8には利用率ファイル6中の利用率yの関数
である課金相場 f(y)=1/|y−1| とアカウンティングファイル7より求まる課金情報が各
利用者毎に加算されたものが格納される。また、メモリ
4上の優先度テーブル26には利用者がリクエスト時に
指定した現在利用されているディスクブロックの優先度
xが記録される。27はCPUである。
Example 3. FIG. 4 is a block diagram of a disk device load control system showing another embodiment of the present invention. Terminal 1 assigns priority x (
0<x≦1) and input it into the system. disk 5
The priority is set to x=1 only in the case of a request to release . The disk 5 has a queue 3 in the memory 4 that stores requests waiting to use the disk. The utilization rate y of the disk is stored in the utilization rate file 6 on the disk 5. The accounting file 7 stores the number of blocks on the disk 5 being used and the time when the allocation of the disk 5 changes, and in the initial state, they are all 0. In the billing information file 8, the billing market rate f(y)=1/|y-1|, which is a function of the usage rate y in the usage rate file 6, and the billing information determined from the accounting file 7 are added for each user. things are stored. Furthermore, the priority table 26 on the memory 4 records the priority x of the currently used disk block specified by the user at the time of request. 27 is a CPU.

【0019】このような構成のディスク装置においては
リクエストの投入を契機に図5に示すフローチャートに
基づいた処理が開始されキュー3からリクエストが取り
出されディスクブロックの割り当てと解放が行なわれる
。まず、ステップ28でメモリ4のキュー3にリクエス
トがるかどうかを調べる。リクエストがない場合には終
了する。リクエストがある場合にはステップ29でキュ
ー3の中のリクエストの優先順位が大きい順になるよう
にソートする。ステップ30でキュー3の先頭にあるリ
クエストの優先順位xが利用率y以上であるかを調べる
。x<yの場合にはステップ31でキュー中のリクエス
トの利用者に利用率yが利用者が指定した優先度xより
大きいことを報告し、ステップ29、30を繰り返す。 x≧yの場合は、ステップ32で、x=1かどうかを判
定する。x≠1のときは、割り当てリクエストであるの
でステップ33でリクエストされたディスク5の割り当
てを行なう。ステップ34で、変化した利用率yを利用
率ファイル6に格納し、変化した割り当てブロック数b
とこの時の時刻tをt1 としてアカウンティングファ
イル7に格納し、メモリ4上の優先度テーブル26を更
新する。ステップ35で優先度テーブル26内でx<y
を満たしているディスクの利用者に対し利用率yが利用
者が指定した優先度xより大きいことを報告し、この後
、ステップ28に戻る。次にx=1のときは、解放リク
エストなので、ステップ36で、ディスク5の今まで割
り当てていたブロックの解放を行なう。そしてステップ
37で、ステップ35の実行により利用率ファイル6に
格納された利用率yから課金相場f(y)を求める。 次にステップ38でアカウンティングファイル7に格納
してある各リクエストの割り当てブロック数bと、アカ
ウンティングファイル7中の時刻t1 と現在時刻tの
差分T(T=t−t1 )と、利用率ファイル6に格納
してある利用率yから求まった課金相場f(y)の積f
(y)・b・Tを課金情報ファイル8中の各利用者の課
金情報に加算する。
In a disk device having such a configuration, upon input of a request, processing based on the flowchart shown in FIG. 5 is started, the request is taken out from the queue 3, and disk blocks are allocated and released. First, in step 28, it is checked whether there is a request in the queue 3 of the memory 4. If there are no requests, the process ends. If there are requests, the requests in the queue 3 are sorted in descending order of priority in step 29. In step 30, it is checked whether the priority x of the request at the head of the queue 3 is greater than or equal to the utilization rate y. If x<y, in step 31 it is reported to the user of the request in the queue that the usage rate y is greater than the priority x specified by the user, and steps 29 and 30 are repeated. If x≧y, in step 32 it is determined whether x=1. When x≠1, since this is an allocation request, the requested disk 5 is allocated in step 33. In step 34, the changed utilization rate y is stored in the utilization rate file 6, and the changed allocation block number b
The time t at this time is stored in the accounting file 7 as t1, and the priority table 26 on the memory 4 is updated. In step 35, x<y in the priority table 26
It is reported to the user of the disk that satisfies the above that the usage rate y is greater than the priority x specified by the user, and then the process returns to step 28. Next, when x=1, it is a release request, so in step 36, the blocks that have been allocated so far on the disk 5 are released. Then, in step 37, the charging market rate f(y) is calculated from the usage rate y stored in the usage rate file 6 by executing step 35. Next, in step 38, the allocated block number b for each request stored in the accounting file 7, the difference T (T=t-t1) between the time t1 in the accounting file 7 and the current time t, and the utilization rate file 6 are stored. Product f of charging market f(y) found from stored usage rate y
(y)・b・T is added to each user's billing information in the billing information file 8.

【0020】上記の方法に従うと、ディスク装置の利用
率が大きくなり課金相場が指定した値より大きくなった
場合に利用者に対してそのことをステップ35で報告し
、ディスクの解放を促すことができるため、ディスク装
置の利用状況を平滑化することができる。すなわち、課
金相場が大きくなったことを利用者に報告し資源の解放
を促すことによって、資源の負荷状態を平滑化すると共
に、利用者が課金の額を一定の範囲内に収めることを可
能とする。
[0020] According to the above method, when the usage rate of the disk device increases and the billing rate becomes larger than the specified value, this can be reported to the user in step 35 and the user can be encouraged to release the disk. Therefore, the usage status of disk devices can be smoothed out. In other words, by reporting to users that the billing market has increased and encouraging them to release resources, it is possible to smooth out the resource load and allow users to keep the billing amount within a certain range. do.

【0021】実施例4.上記実施例では、CPUあるい
はディスクの負荷制御システムの場合を示したが、メモ
リやプリンタ等その他の計算機資源の場合でもかまわな
い。また、課金相場の決定もその他の所定の計算式を用
いて行なってもかまわない。
Example 4. In the above embodiment, the load control system is a CPU or a disk, but other computer resources such as a memory or a printer may be used. Further, the charging market price may also be determined using other predetermined calculation formulas.

【0022】[0022]

【発明の効果】以上説明したように、本発明によれば、
計算機資源の利用率が高い場合には課金が自動的に高く
なることによって資源の利用を抑制し、計算機の利用率
が低い場合には課金が自動的に安くなることによって資
源の利用を促し、この結果計算機資源の負荷を時間に対
して平滑化し、計算機資源の極端な負荷増大を回避し、
計算機資源の効率的な運用を期待し得る。
[Effects of the Invention] As explained above, according to the present invention,
When the utilization rate of computer resources is high, the charge is automatically increased to suppress the use of resources, and when the utilization rate of the computer is low, the charge is automatically reduced to encourage the use of resources. As a result, the load on computer resources is smoothed over time, avoiding an extreme increase in the load on computer resources,
Efficient use of computer resources can be expected.

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

【図1】この発明の一実施例によるCPU負荷制御シス
テムの概略ブロック図である。
FIG. 1 is a schematic block diagram of a CPU load control system according to an embodiment of the present invention.

【図2】図1におけるリクエストの実行方法に関する流
れ図である。
FIG. 2 is a flow diagram of a method for executing a request in FIG. 1;

【図3】図1におけるリクエストの実行方法に関する流
れ図である。
FIG. 3 is a flow diagram of a method for executing a request in FIG. 1;

【図4】この発明の一実施例によるディスク装置負荷制
御システムの概略ブロック図である。
FIG. 4 is a schematic block diagram of a disk device load control system according to an embodiment of the present invention.

【図5】図4におけるリクエストの実行方法に関する流
れ図である。
FIG. 5 is a flow diagram of a method for executing a request in FIG. 4;

【図6】従来の方法を示すブロック図である。FIG. 6 is a block diagram showing a conventional method.

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

2  CPU(計算機資源の一例) 5  ディスク(計算機資源の一例) 6  利用率ファイル 7  アカウンティングファイル 8  課金情報ファイル 50  負荷記録手段 51  利用記録手段 52  課金手段 60  実行決定工程 61  実行工程 62  相場決定工程 63  課金工程 2 CPU (an example of computer resources) 5 Disk (an example of computer resources) 6 Utilization rate file 7 Accounting file 8 Billing information file 50 Load recording means 51 Usage recording means 52 Billing means 60 Execution decision process 61 Execution process 62 Market price determination process 63 Billing process

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  以下の要素を有する課金制御装置(a
)計算機資源の負荷状態を記録する負荷記録手段、(b
)各利用者がどれだけ計算機資源を利用したかを記録す
る利用記録手段、(c)上記負荷記録手段により記録さ
れた負荷状態と、利用記録手段により記録された利用結
果とに基づいて、計算機資源利用に対する課金情報を算
出する課金手段。
Claim 1: A billing control device (a
) Load recording means for recording the load state of computer resources; (b)
) a usage recording means for recording how much computer resources are used by each user; (c) a usage recording means for recording how much computer resources are used by each user; Billing means that calculates billing information for resource usage.
【請求項2】  以下の工程を有する負荷制御方法(a
)計算機資源の利用リクエストの実行を計算機資源の負
荷状態と比較して決定する実行決定工程、(b)計算機
資源の負荷状態から利用リクエストに対しての課金の相
場を決定する相場決定工程、(c)上記相場決定工程に
よって決定された課金相場にしたがい、実行決定工程の
決定により実行された利用リクエストに対する課金を算
出する課金工程。
Claim 2: A load control method (a) comprising the following steps:
) an execution determination step of determining the execution of the computer resource usage request by comparing it with the load state of the computer resource; (b) a price determination step of determining the market price of charging for the usage request from the load state of the computer resource; c) A charging step of calculating charges for the usage request executed as determined in the execution determining step, in accordance with the charging market price determined in the market price determining step.
JP3134977A 1991-06-06 1991-06-06 Accounting controller and method for controlling load Pending JPH04360215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3134977A JPH04360215A (en) 1991-06-06 1991-06-06 Accounting controller and method for controlling load

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3134977A JPH04360215A (en) 1991-06-06 1991-06-06 Accounting controller and method for controlling load

Publications (1)

Publication Number Publication Date
JPH04360215A true JPH04360215A (en) 1992-12-14

Family

ID=15141035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3134977A Pending JPH04360215A (en) 1991-06-06 1991-06-06 Accounting controller and method for controlling load

Country Status (1)

Country Link
JP (1) JPH04360215A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8239320B2 (en) 2000-03-24 2012-08-07 Sony Corporation Electronic money apparatus and an electronic circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8239320B2 (en) 2000-03-24 2012-08-07 Sony Corporation Electronic money apparatus and an electronic circuit

Similar Documents

Publication Publication Date Title
JP5041805B2 (en) Service quality controller and service quality method for data storage system
CN110995614B (en) Computing power resource allocation method and device
US10255217B2 (en) Two level QoS scheduling for latency and queue depth control
CN106790726B (en) Priority queue dynamic feedback load balancing resource scheduling method based on Docker cloud platform
Hui et al. Improved strategies for dynamic load balancing
US5999963A (en) Move-to-rear list scheduling
Coffman Jr et al. Computer scheduling methods and their countermeasures
Hac et al. A study of dynamic load balancing in a distributed system
CN112506634B (en) Fairness operation scheduling method based on reservation mechanism
US20220291959A1 (en) Activity scheduling method, system, terminal and storage medium based on high response ratio
Bernstein et al. A policy-driven scheduler for a time-sharing system
CN105022668A (en) Job scheduling method and system
Atlas et al. Design and implementation of statistical rate monotonic scheduling in KURT Linux
Bard An analytic Model of the VM/370 System
Zhang et al. A performance comparison of adaptive and static load balancing in heterogeneous distributed systems
JULIEN et al. Generalized preemption models for single-machine dynamic scheduling problems
JPH04360215A (en) Accounting controller and method for controlling load
Kim et al. A due date-based approach to part type selection in flexible manufacturing systems
Woodside Controllability of computer performance tradeoffs obtained using controlled-share queue schedulers
Bunt Scheduling techniques for operating systems
CN110096364B (en) Cloud server computing set control method and system
JPS58107962A (en) Scheduling system
Jette et al. Gang scheduler-timesharing the cray t3d
Gay et al. Composite priority queue
JP2022088762A (en) Information processing device and job scheduling method