JP7459573B2 - Control device, control method, and program - Google Patents
Control device, control method, and program Download PDFInfo
- Publication number
- JP7459573B2 JP7459573B2 JP2020039640A JP2020039640A JP7459573B2 JP 7459573 B2 JP7459573 B2 JP 7459573B2 JP 2020039640 A JP2020039640 A JP 2020039640A JP 2020039640 A JP2020039640 A JP 2020039640A JP 7459573 B2 JP7459573 B2 JP 7459573B2
- Authority
- JP
- Japan
- Prior art keywords
- transaction
- processing time
- setting value
- processing
- expected
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 20
- 230000007423 decrease Effects 0.000 claims description 9
- 230000003247 decreasing effect Effects 0.000 claims description 4
- 230000001276 controlling effect Effects 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 16
- 230000015654 memory Effects 0.000 description 10
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本開示は、制御装置、制御方法、及びプログラムに関する。 The present disclosure relates to a control device, a control method, and a program.
プログラムのスケジューリング方法として、EDF(Earliest Deadline First)スケジューリングが知られている(例えば、特許文献1)。EDFスケジューリングは、実行キューに保持されているトランザクション要求の中で、最もデッドライン(つまり、実行期限)が近い、つまり余裕時間が最も少ないトランザクション要求に対応するトランザクションを優先して実行するためのスケジューリング方法である。 Earliest Deadline First (EDF) scheduling is known as a program scheduling method (see, for example, Patent Document 1). EDF scheduling is a scheduling method for giving priority to the execution of a transaction that corresponds to the transaction request that has the closest deadline (i.e., execution deadline), i.e., the shortest slack time, among the transaction requests held in the execution queue.
特許文献1に開示されている技術では、デッドラインまでの余裕時間は、初めに、予め決められた固定値からスタートし、この固定値から経過時間を減算することによって算出される。
In the technique disclosed in
ところで、上記の固定値は、トランザクションの処理に掛かる目安時間であり、「期待トランザクション処理時間」と呼ぶことができる。この「期待トランザクション処理時間」は、期待値であり、実際には正常にトランザクションの処理が完了しても想定より長い時間が掛かってしまうことがある。このため、上記の固定値を用いると、デッドラインまでにトランザクションの処理が完了しない可能性が高くなると考えられる。また、上記の固定値を長めに設定すると、実際には短い時間で処理が完了するトランザクションであるにも関わらず、そのトランザクションの実行優先度が低くされてしまう。 The above fixed value is an estimate of the time it will take to process a transaction, and can be called the "expected transaction processing time." This "expected transaction processing time" is an expected value, and even if a transaction actually completes successfully, it may take longer than expected. For this reason, using the above fixed value increases the likelihood that the transaction will not be completed by the deadline. Also, if the above fixed value is set too long, the execution priority of the transaction will be lowered even if it actually completes in a short time.
しかしながら、特許文献1に開示されている技術では、上記の固定値が用いられるため、「期待トランザクション処理時間」を実際の処理時間にマッチした値に調整することができない。
However, in the technique disclosed in
本開示の目的は、実際の処理時間にマッチした値に期待トランザクション処理時間を調整することができる、制御装置、制御方法、及びプログラムを提供することにある。 The objective of the present disclosure is to provide a control device, a control method, and a program that can adjust the expected transaction processing time to a value that matches the actual processing time.
第1の態様にかかる制御装置は、複数のトランザクションのそれぞれに設定された、各トランザクションの処理に掛かる目安時間である期待トランザクション処理時間の設定値に基づいて各トランザクションのデッドラインを算出して、算出された複数のデットラインに基づいて、前記複数のトランザクションの処理順序を制御するスケジューラと、
各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行する調整制御部と、
を具備する。
The control device according to the first aspect includes a scheduler that calculates a deadline for each of a plurality of transactions based on a set value of an expected transaction processing time, which is an estimated time required for processing each of the transactions, and controls a processing order of the plurality of transactions based on the calculated deadlines;
an adjustment control unit that executes adjustment control including setting a setting value of the expected transaction processing time for each transaction, increasing and adjusting the setting value for a transaction whose processing has not been completed by the calculated deadline, and decreasing the increased and adjusted setting value when a condition is satisfied that includes a transaction corresponding to the increased and adjusted setting value being completed within a lower limit period corresponding to a setting lower limit value of the expected transaction processing time;
Equipped with:
第2の態様にかかる制御方法は、複数のトランザクションのそれぞれに設定された、各トランザクションの処理に掛かる目安時間である期待トランザクション処理時間の設定値に基づいて各トランザクションのデッドラインを算出して、算出された複数のデットラインに基づいて、前記複数のトランザクションの処理順序を制御すること、及び、
各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行すること、
を含む。
The control method according to the second aspect calculates the deadline of each transaction based on the set value of the expected transaction processing time, which is the estimated time taken to process each transaction, set for each of the plurality of transactions. controlling the processing order of the plurality of transactions based on the plurality of calculated debt lines; and
setting a set value for the expected transaction processing time for each transaction; increasing the set value for transactions that are not completed by the calculated deadline; and adjusting the set value for the expected transaction processing time for each transaction. adjusting the increased setting value downward when a condition including that the transaction corresponding to the set value is completed within a lower limit period corresponding to the lower limit setting value of the expected transaction processing time; performing regulatory control including;
including.
第3の態様にかかるプログラムは、複数のトランザクションのそれぞれに設定された、各トランザクションの処理に掛かる目安時間である期待トランザクション処理時間の設定値に基づいて各トランザクションのデッドラインを算出して、算出された複数のデットラインに基づいて、前記複数のトランザクションの処理順序を制御すること、及び、
各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行すること、
を含む処理を、制御装置に実行させる。
A program according to a third aspect of the present invention includes: calculating a deadline for each of a plurality of transactions based on a setting value of an expected transaction processing time, which is an estimated time required for processing each of the transactions, and controlling a processing order of the plurality of transactions based on the calculated deadlines; and
executing adjustment control including: setting a set value of the expected transaction processing time for each transaction; adjusting, by increasing the set value for a transaction whose processing has not been completed by the calculated deadline; and adjusting, by decreasing the set value, the increased set value when a condition is satisfied, the condition including that a transaction corresponding to the increased set value is completed within a lower limit period corresponding to a set lower limit value of the expected transaction processing time;
The control device executes a process including the steps:
本開示により、実際の処理時間にマッチした値に期待トランザクション処理時間を調整することができる、制御装置、制御方法、及びプログラムを提供することができる。 According to the present disclosure, it is possible to provide a control device, a control method, and a program that can adjust the expected transaction processing time to a value that matches the actual processing time.
以下、図面を参照しつつ、実施形態について説明する。なお、実施形態において、同一又は同等の要素には、同一の符号を付し、重複する説明は省略される。 Hereinafter, embodiments will be described with reference to the drawings. In the embodiments, the same or equivalent elements are denoted by the same reference numerals, and redundant explanations will be omitted.
<第1実施形態>
図1は、第1実施形態における制御装置の一例を示すブロック図である。図1において制御装置10は、スケジューラ(スケジューリング部)11と、調整制御部12とを含む。
<First embodiment>
FIG. 1 is a block diagram showing an example of a control device in the first embodiment. In FIG. 1 , a
スケジューラ11は、複数のトランザクションのそれぞれに設定された「期待トランザクション処理時間」の設定値に基づいて、各トランザクションのデッドラインを算出する。「期待トランザクション処理時間」は、各トランザクションの処理に掛かる目安時間である。スケジューラ11は、複数のトランザクションのそれぞれについて算出された複数のデットラインに基づいて、複数のトランザクションの処理順序を制御する。例えば、スケジューラ11は、デッドライン(つまり、実行期限)が近いトランザクションほど「処理優先度」を高くして、処理優先度の高いトランザクションから先に処理されるように、制御する。
The
調整制御部12は、「期待トランザクション処理時間」の設定及び調整制御を実行する。
The
例えば、調整制御部12は、各トランザクションに対して「期待トランザクション処理時間」の設定値を設定する。調整制御部12は、例えばクライアント装置から受け取った処理要求(つまり、トランザクション要求)がそのトランザクションにとって初めてであるトランザクションに対しては、「期待トランザクション処理時間」の設定値として「初期値」を設定する。この「初期値」は、「期待トランザクション処理時間」の設定値についての下限値である。
For example, the
また、調整制御部12は、デッドラインまでに処理が完了しなかったトランザクションについての「期待トランザクション処理時間」の設定値を、増加調整する。この「増加調整」は、「期待トランザクション処理時間」の設定値を、所定の増加調整ステップ幅だけ増加させてもよい。例えば、調整制御部12は、「期待トランザクション処理時間」の設定値を、所定値だけ増加させてもよいし、この設定値から所定割合だけ増加させてもよい。
The
また、調整制御部12は、「所定条件」が満たされた場合、既に増加調整された「期待トランザクション処理時間」の設定値を減少調整する。この「減少調整」は、既に増加調整された「期待トランザクション処理時間」の設定値を、上記の「下限値」にする調整であってもよい。又は、この「減少調整」は、既に増加調整された「期待トランザクション処理時間」の設定値を、所定の減少調整ステップ幅だけ減少させてもよい。例えば、調整制御部12は、既に増加調整された「期待トランザクション処理時間」の設定値を、所定値だけ減少させてもよいし、この設定値から所定割合だけ減少させてもよい。上記の「所定条件」は、既に増加調整された「期待トランザクション処理時間」の設定値に対応するトランザクションが、期待トランザクション処理時間の下限値に対応する「下限期間」内に完了することを含む。
Further, when the "predetermined condition" is satisfied, the
以上の制御装置10の構成により、実際の処理時間にマッチした値に期待トランザクション処理時間を調整することができる。
The above configuration of the
<第2実施形態>
第2実施形態は、より具体的な実施形態に関する。
Second Embodiment
The second embodiment relates to a more specific embodiment.
<処理装置の構成例>
図2は、第2実施形態における制御装置を含む処理装置の一例を示すブロック図である。図2には、処理装置30の他にクライアント装置20も示されている。
<Example of configuration of processing device>
FIG. 2 is a block diagram showing an example of a processing device including a control device in the second embodiment. In addition to the
図2において処理装置30は、トランザクション要求受付部31と、実行キュー32と、トランザクション実行部33と、制御部(制御装置)40とを含む。
In FIG. 2, the
トランザクション要求受付部31は、1つ又は複数のクライアント装置20から送信されたトランザクション要求を受け付けて、制御部40に出力する。トランザクション要求受付部31は、トランザクション要求を一時保持するトランザクションキュー31Aを含み、トランザクションキュー31Aは、先に保持したトランザクション要求を先に制御部40に出力する。
The transaction
実行キュー32は、制御部40から受け取るトランザクション要求を処理優先度の高い順番に並べて保持し、処理優先度の高いトランザクション要求から順にトランザクション実行部33に出力する。なお、トランザクション実行部33は、トランザクション要求と共に、トランザクション要求に対応するトランザクションの識別番号及び期待トランザクション処理時間の設定値を取得してもよい。
The
トランザクション実行部33は、実行キュー32から受け取ったトランザクション要求に対応するトランザクションを実行し、このトランザクションの実行がデッドラインまでに完了した場合、トランザクションの識別番号と、実行開始時間(つまり、トランザクション起動時間)と、トランザクション完了時間とを対応づけた状態で、制御部40に出力する。このトランザクションの実行がデッドラインまでに完了しない場合、つまり、デッドラインを超過した場合、トランザクション実行部33は、トランザクションの識別番号と、トランザクション起動時間と、デッドライン超過を示す情報とを対応付けた状態で、制御部40に出力する。
The
図2において制御部(制御装置)40は、調整制御部41と、スケジューラ(スケジューリング部)42と、テーブル管理部43と、記憶部44とを有している。
In FIG. 2, the control unit (control device) 40 includes an
記憶部44は、トランザクションの識別番号毎の、「実績関連テーブル」及び「状態関連テーブル」を記憶ずる。1つの実績関連テーブルにおいて、各エントリは、「トランザクション起動時間」と「トランザクション完了時間」と「実績トランザクション処理時間」とを対応付けて保持する。実績トランザクション処理時間は、トランザクション完了時間からトランザクション完了時間を差し引くことによって求められる。1つの実績関連テーブルにおいて、直近K(例えばKは2以上の自然数)回のトランザクション実行に対応するK個のエントリが保持される。なお、デットライン超過に対応するエントリにおいて項目「トランザクション完了時間」及び「実績トランザクション処理時間」には「デッドライン超過を示す情報」が保持される。
The
また、1つの状態関連テーブルにおいて、各エントリは、「観察モード(の識別子)」と「期待トランザクション処理時間の初期値(つまり、上記の下限値)」と「期待トランザクション処理時間(の設定値)」とを対応付けて保持する。1つの状態関連テーブルにおいて、直近K(例えばKは2以上の自然数)回のトランザクション実行に対応するK個のエントリが保持される。例えば、K=10である。なお、観察モードについては後に詳しく説明する。 In addition, in one state association table, each entry holds an "observation mode (identifier)", an "initial value of expected transaction processing time (i.e., the above-mentioned lower limit value)", and an "expected transaction processing time (set value)" in association with each other. In one state association table, K entries corresponding to the most recent K (for example, K is a natural number equal to or greater than 2) transaction executions are held. For example, K=10. The observation mode will be explained in detail later.
テーブル管理部43は、トランザクション実行部33から受け取った情報を用いて、実績関連テーブルを更新する。例えば、テーブル管理部43は、「トランザクション起動時間」及び「トランザクション完了時間」から、「実績トランザクション処理時間」を算出する。そして、テーブル管理部43は、「トランザクション起動時間」と「トランザクション完了時間」と「実績トランザクション処理時間」とを対応付けて、実績関連テーブルの1つのエントリに保持させる。
The
調整制御部41は、「期待トランザクション処理時間」の設定及び調整制御を実行する。このとき、調整制御部41は、状態関連テーブルの更新を行う。調整制御部41の具体的な処理動作については、後に詳しく説明する。
The
スケジューラ42は、複数のトランザクションのそれぞれに設定された「期待トランザクション処理時間」の設定値に基づいて、各トランザクションのデッドラインを算出する。スケジューラ42は、複数のトランザクションのそれぞれについて算出された複数のデットラインに基づいて、複数のトランザクションの処理順序を制御する。スケジューラ42は、トランザクション要求受付部31にて受け付けられたトランザクション要求に対して、デッドラインが近いトランザクションに対応するトランザクション要求ほど高い「処理優先度」を割り当てる。そして、スケジューラ42は、実行キュー32に、トランザクション要求を処理優先度の高い順番に並べて保持させる。
The
<処理装置の動作例>
以上の構成を有する処理装置30の処理動作の一例について説明する。図3~図6は、第2実施形態における処理装置の処理動作の一例を示すフローチャートである。図7~図11は、期待トランザクション処理時間の初期値と、期待トランザクション処理時間の設定値と、処理継続不可を判断するための基準時間と、実績トランザクション処理時間との関係を説明するための図である。図12~図16は、パターンの説明に供する図である。図3~図6に示すフローチャートは、トランザクション毎に(つまり、識別番号の異なるトランザクションのそれぞれについて)実行される。
<Example of Processing Device Operation>
An example of the processing operation of the
調整制御部41は、トランザクションキュー31Aからトランザクション要求を取得する(ステップS101)。
The
調整制御部41は、取得したトランザクション要求に対応する「対象トランザクション」の識別番号に対応する、記憶部44に保持されているテーブルにおけるエントリを参照する(ステップS102)。
The
調整制御部41は、現在の観察モードを判定する(ステップS103,S104)。なお、初期モードは、後述する「モード0」である。
The
現在の観察モードが「モード0」である場合(ステップS103YES)、調整制御部41は、対象トランザクションが前回のトランザクション要求のときにデッドラインまでに処理が完了したか否かを判定する(ステップS105)。図7には、デッドラインまでに処理が完了したケースが示され、図8には、デッドラインまでに処理が完了しなかったケースが示されている。
If the current observation mode is "
デッドラインまでに処理が完了していない場合、つまり、デッドラインを超過した場合(ステップS105NO)、調整制御部41は、対象トランザクションの観察モードを「モード1」に変更する(ステップS106)。
If the processing is not completed by the deadline, that is, if the deadline is exceeded (step S105 NO), the
調整制御部41は、対象トランザクションの期待トランザクション処理時間の設定値を増加調整する(ステップS107)。例えば、調整制御部41は、対象トランザクションの期待トランザクション処理時間の設定値を20%増加させてもよい。
The
調整制御部41は、ステップS101で取得したトランザクション要求をスケジューラ42へ出力する(ステップS108)。そして、図3~図6の処理フローは終了する。そして、スケジューラ42は、調整制御部41から所定期間内に受け取った複数のトランザクションのそれぞれに設定された「期待トランザクション処理時間」の設定値に基づいて、各トランザクションのデッドラインを算出する。そして、スケジューラ11は、複数のトランザクションのそれぞれについて算出された複数のデットラインに基づいて、複数のトランザクションの処理順序を制御する。
The
デッドラインまでに処理が完了した場合(ステップS105YES)、調整制御部41は、対象トランザクションが前回のトランザクション要求のときに「下限期間」内に完了したか否かを判定する(ステップS109)。図11には、トランザクションが「下限期間」内に完了したケースが示されている。
If the processing is completed by the deadline (step S105 YES), the
「下限期間」内に完了した場合(ステップS109YES)、調整制御部41は、対象トランザクションの観察モードを「モード2」に変更すると共に、「下限期間回数」をインクリメントする(ステップS110)。「下限期間回数」の初期値は、ゼロである。そして、処理ステップは、ステップS108に進む。
If the transaction is completed within the "lower limit period" (step S109 YES), the
「下限期間」内に完了していない場合(ステップS110NO)、処理ステップは、ステップS108に進む。なお、初めて「トランザクション要求」が為された対象トランザクションについては、ステップS101,S102,S103,S105,S109,S108の処理ステップが実行されることになる。 If the transaction has not been completed within the "lower limit period" (NO in step S110), the process proceeds to step S108. Note that for a target transaction for which a "transaction request" has been made for the first time, the process steps S101, S102, S103, S105, S109, and S108 will be executed.
現在の観察モードが「モード1」である場合(ステップS103NO、ステップS104YES)、調整制御部41は、対象トランザクションが前回のトランザクション要求のときにデッドラインまでに処理が完了したか否かを判定する(ステップS111)。図10には、トランザクションがデッドラインまでに処理が完了したケースが示されている。
If the current observation mode is "
デッドラインまでに処理が完了していない場合(ステップS111NO)、調整制御部41は、期待トランザクション処理時間の設定値が「処理継続不可を判断するための基準時間(つまり、処理停止基準時間)」を超えているか否かを判定する(ステップS112)。図9には、期待トランザクション処理時間の設定値が処理停止基準時間に到達したケースが示されている。すなわち、処理停止基準時間は、期待トランザクション処理時間の設定値の上限値に相当する。
If the processing is not completed by the deadline (step S111 NO), the
処理停止基準時間を超えている場合(ステップS112YES)、調整制御部41は、スケジューラ42の処理を停止させる(ステップS113)。これは、図12に示すパターンに対応する。そして、図3~図6の処理フローは終了する。
If the processing stop reference time has been exceeded (step S112 YES), the
デッドラインまでに処理が完了している場合(ステップS111YES)、調整制御部41は、直近N(例えばNは2以上の自然数)回のトランザクション要求のときに連続して対象トランザクションがデッドラインまでに処理が完了しているか否かを判定する(ステップS114)。例えば、N=5である。
If the processing has been completed by the deadline (step S111 YES), the
直近N回のトランザクション要求のときに連続して対象トランザクションがデッドラインまでに処理が完了している場合(ステップS114YES)、調整制御部41は、期待トランザクション処理時間の設定値の「信頼度指標値」を算出する(ステップS115)。
If the target transaction has been completed by the deadline for the last N consecutive transaction requests (step S114 YES), the
例えば、「信頼度指標値」は、次の式によって算出されてもよい。式中のnは上記のNであってもよい。
調整制御部41は、算出した信頼度指標値に対応する信頼度が所定レベルより高いことを示しているか否かを判定する(ステップS116)。
The
算出した信頼度指標値に対応する信頼度が所定レベルより高いことを示している場合(ステップS116YES)、調整制御部41は、対象トランザクションの観察モードを「モード0」に変更する(ステップS117)。これは、図13に示すパターンに対応する。図13に示す例では、信頼度指標値が0.3以下であるときに、信頼度指標値に対応する信頼度が所定レベルより高い。そして、処理ステップは、ステップS108に進む。
If the reliability corresponding to the calculated reliability index value is higher than the predetermined level (step S116 YES), the
算出した信頼度指標値に対応する信頼度が所定レベル以下であることを示している場合(ステップS116NO)、調整制御部41は、期待トランザクション処理時間の設定値を、観察モードが「モード0」だったときの期待トランザクション処理時間の設定値に戻し(ステップS118)、観察モードを「モード0」に変更する(ステップS119)。これは、図14に示すパターンに対応する。
If the reliability corresponding to the calculated reliability index value is equal to or lower than a predetermined level (step S116 NO), the
現在の観察モードが「モード2」である場合(ステップS103NO、ステップS104NO)、調整制御部41は、対象トランザクションが前回のトランザクション要求のときに「下限期間」内に完了したか否かを判定する(ステップS120)。
If the current observation mode is "
「下限期間」内に完了した場合(ステップS120YES)、調整制御部41は、「下限期間回数」がM(例えばMは2以上の自然数)以上であるか否かを判定する(ステップS121)。
If it is completed within the "lower limit period" (step S120 YES), the
「下限期間回数」がMより小さい場合(ステップS121NO)、調整制御部41は、「下限期間回数」をインクリメントする(ステップS122)。そして、処理ステップは、ステップS108に進む。
If the "lower limit number of periods" is smaller than M (step S121 NO), the
「下限期間回数」がM以上である場合(ステップS121YES)、調整制御部41は、対象トランザクションについての「期待トランザクション処理時間」の設定値を減少調整する(ステップS123)。ここでは、調整制御部41は、対象トランザクションについての「期待トランザクション処理時間」の設定値を、「下限値」に変更する。また、調整制御部41は、観察モードを「モード0」に変更し、「下限期間回数」をゼロにする(ステップS123)。これは、図15に示すパターンに対応する。そして、処理ステップは、ステップS108に進む。
If the "lower limit number of periods" is equal to or greater than M (step S121 YES), the
「下限期間」内に完了しなかった場合(ステップS120NO)、調整制御部41は、観察モードを「モード0」に変更し、「下限期間回数」をゼロにする(ステップS124)。これは、図16に示すパターンに対応する。そして、処理ステップは、ステップS108に進む。
If the observation is not completed within the "lower limit period" (step S120 NO), the
以上のように第2実施形態によれば、制御部(制御装置)40にて調整制御部41は、デッドラインまでに処理が完了しなかったトランザクションについての「期待トランザクション処理時間」の設定値を、増加調整する。
As described above, according to the second embodiment, the
この制御部(制御装置)40の構成により、トランザクションの処理に想定より長い時間が掛かってしまう場合でも、実際の処理時間にマッチした値に期待トランザクション処理時間を調整することができる。 This configuration of the control unit (control device) 40 makes it possible to adjust the expected transaction processing time to a value that matches the actual processing time, even if the transaction takes longer than expected to process.
また、制御部(制御装置)40にて調整制御部41は、デッドラインまでに処理が完了している場合でも信頼度指標値に対応する信頼度が所定レベル以下であることを示している場合には期待トランザクション処理時間の設定値を増加調整前の設定値に戻す。
In addition, in the control unit (control device) 40, the
この制御部(制御装置)40の構成により、期待トランザクション処理時間の設定値の信頼性を担保することができる。 This configuration of the control unit (control device) 40 can ensure the reliability of the set value of the expected transaction processing time.
また、制御部(制御装置)40にて調整制御部41は、トランザクションが「下限期間」内に完了した場合、トランザクションについての「期待トランザクション処理時間」の設定値を、「下限値」に変更する。
Further, in the control unit (control device) 40, the
この制御部(制御装置)40の構成により、トランザクションの処理に掛かる時間が通常想定される時間に戻った場合にも、実際の処理時間にマッチした値に期待トランザクション処理時間を調整することができる。これにより、トランザクションは適正な処理優先度に基づいて処理される。 This configuration of the control unit (control device) 40 makes it possible to adjust the expected transaction processing time to a value that matches the actual processing time, even if the time it takes to process a transaction returns to the normally expected time. This allows transactions to be processed based on the appropriate processing priority.
制御部(制御装置)40にて調整制御部41は、M回以上連続してトランザクションが「下限期間」内に完了した場合、トランザクションについての「期待トランザクション処理時間」の設定値を、「下限値」に変更する。
In the control unit (control device) 40, the
この制御部(制御装置)40の構成により、期待トランザクション処理時間の設定値の信頼性を担保することができる。 This configuration of the control unit (control device) 40 ensures the reliability of the setting value of the expected transaction processing time.
<他の実施形態>
図17は、制御装置のハードウェア構成例を示す図である。図17において制御装置100は、プロセッサ101と、メモリ102とを有している。プロセッサ101は、例えば、マイクロプロセッサ、MPU(Micro Processing Unit)、又はCPU(Central Processing Unit)であってもよい。プロセッサ101は、複数のプロセッサを含んでもよい。メモリ102は、揮発性メモリ及び不揮発性メモリの組み合わせによって構成される。メモリ102は、プロセッサ101から離れて配置されたストレージを含んでもよい。この場合、プロセッサ101は、図示されていないI/Oインタフェースを介してメモリ102にアクセスしてもよい。
<Other embodiments>
FIG. 17 is a diagram showing an example of a hardware configuration of a control device. In FIG. 17, the
第1実施形態及び第2実施形態の制御装置10,40は、それぞれ、図17に示したハードウェア構成を有することができる。第1実施形態及び第2実施形態の制御装置10,40のスケジューラ11,42と調整制御部12,41とテーブル管理部43とは、プロセッサ101がメモリ102に記憶されたプログラムを読み込んで実行することにより実現されてもよい。記憶部44は、メモリ102によって実現されてもよい。プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、制御装置10,40に供給することができる。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えばフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば光磁気ディスク)を含む。さらに、非一時的なコンピュータ可読媒体の例は、CD-ROM(Read Only Memory)、CD-R、CD-R/Wを含む。さらに、非一時的なコンピュータ可読媒体の例は、半導体メモリを含む。半導体メモリは、例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM(Random Access Memory)を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によって制御装置10,40に供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムを制御装置10,40に供給できる。
The
以上、実施の形態を参照して本願発明を説明したが、本願発明は上記によって限定されるものではない。本願発明の構成や詳細には、発明のスコープ内で当業者が理解し得る様々な変更をすることができる。 Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above. The configuration and details of the present invention can be modified in various ways that can be understood by those skilled in the art within the scope of the invention.
10 制御装置
11 スケジューラ(スケジューリング部)
12 調整制御部
20 クライアント装置
30 処理装置
31 トランザクション要求受付部
31A トランザクションキュー
32 実行キュー
33 トランザクション実行部
40 制御部(制御装置)
41 調整制御部
42 スケジューラ(スケジューリング部)
43 テーブル管理部
44 記憶部
10
12
41
43
Claims (9)
各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行する調整制御部と、
を具備する制御装置。 a scheduler that calculates a deadline for each transaction based on a set value of an expected transaction processing time, which is an estimated time required for processing each transaction, and controls a processing order of the transactions based on the calculated deadlines;
an adjustment control unit that executes adjustment control including setting a setting value of the expected transaction processing time for each transaction, increasing and adjusting the setting value for a transaction whose processing has not been completed by the calculated deadline, and decreasing the increased and adjusted setting value when a condition is satisfied that includes a transaction corresponding to the increased and adjusted setting value being completed within a lower limit period corresponding to a setting lower limit value of the expected transaction processing time;
A control device comprising:
請求項1記載の制御装置。 The adjustment control unit adjusts the increased setting value to the lower setting value when the condition is satisfied.
The control device according to claim 1.
請求項1記載の制御装置。 The adjustment control unit decreases the increased and adjusted set value by a predetermined decrease adjustment step width when the condition is satisfied.
The control device according to claim 1.
請求項3記載の制御装置。 The adjustment control unit decreases the increased setting value by a predetermined value;
The control device according to claim 3.
請求項3記載の制御装置。 The adjustment control unit decreases the increased and adjusted set value by a predetermined percentage from the set value.
The control device according to claim 3.
請求項1から5のいずれか1項に記載の制御装置。 The condition includes that the transaction corresponding to the increased setting value is completed N times (N is a natural number of 2 or more) consecutively within the lower limit period.
The control device according to any one of claims 1 to 5.
前記コンピュータが、各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行すること、
を含む制御方法。 The computer calculates a deadline for each transaction based on a set value of an expected transaction processing time, which is an estimated time required for processing each transaction, and controls the processing order of the transactions based on the calculated deadlines; and
said computer executing adjustment control including setting a setting value of the expected transaction processing time for each transaction, adjusting upwardly the setting value for a transaction whose processing has not been completed by the calculated deadline, and adjusting downwardly the increased setting value when a condition is satisfied including that a transaction corresponding to the increased setting value is completed within a lower limit period corresponding to a lower limit setting value of the expected transaction processing time;
A control method comprising:
各トランザクションに対して前記期待トランザクション処理時間の設定値を設定すること、前記算出されたデッドラインまでに処理が完了しなかったトランザクションについての前記設定値を増加調整すること、及び、前記増加調整された設定値に対応するトランザクションが前記期待トランザクション処理時間の設定下限値に対応する下限期間内に完了することを含む条件が満たされた場合に前記増加調整された設定値を減少調整すること、を含む調整制御を実行すること、
を含む処理を、制御装置に実行させるプログラム。 The deadline of each transaction is calculated based on the expected transaction processing time setting value, which is the approximate time it takes to process each transaction, and is based on the multiple calculated deadlines. , controlling the processing order of the plurality of transactions; and
setting a set value for the expected transaction processing time for each transaction; increasing the set value for transactions that are not completed by the calculated deadline; and adjusting the set value for the expected transaction processing time for each transaction. adjusting the increased setting value downward when a condition including that the transaction corresponding to the set value is completed within a lower limit period corresponding to the lower limit setting value of the expected transaction processing time; performing regulatory control including;
A program that causes a control device to execute processing including.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020039640A JP7459573B2 (en) | 2020-03-09 | 2020-03-09 | Control device, control method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020039640A JP7459573B2 (en) | 2020-03-09 | 2020-03-09 | Control device, control method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021140633A JP2021140633A (en) | 2021-09-16 |
JP7459573B2 true JP7459573B2 (en) | 2024-04-02 |
Family
ID=77668798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020039640A Active JP7459573B2 (en) | 2020-03-09 | 2020-03-09 | Control device, control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7459573B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013196576A (en) | 2012-03-22 | 2013-09-30 | Nec Corp | Information processing apparatus, information processing method, and information processing program |
JP2017129988A (en) | 2016-01-19 | 2017-07-27 | 富士通株式会社 | Batch control system, batch control program, and batch control method |
-
2020
- 2020-03-09 JP JP2020039640A patent/JP7459573B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013196576A (en) | 2012-03-22 | 2013-09-30 | Nec Corp | Information processing apparatus, information processing method, and information processing program |
JP2017129988A (en) | 2016-01-19 | 2017-07-27 | 富士通株式会社 | Batch control system, batch control program, and batch control method |
Also Published As
Publication number | Publication date |
---|---|
JP2021140633A (en) | 2021-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11816333B2 (en) | Congestion mitigation in a distributed storage system | |
US9354931B1 (en) | Method, server and computer-readable recording medium for managing size of thread pool dynamically | |
US7979603B2 (en) | Storage system and method for controlling activation of command | |
US8806070B2 (en) | Storage device, and storage device control method | |
US9910711B1 (en) | Method and computing device for managing size of thread pool dynamically | |
US8677375B2 (en) | Selecting executing requests to preempt | |
JP7459573B2 (en) | Control device, control method, and program | |
US20230068058A1 (en) | Machine learning device, computer device, control system, and machine learning method | |
JP6640025B2 (en) | Distributed processing control system and distributed processing control method | |
JP2021508108A (en) | Memory bandwidth scheduling based on service floor quality | |
CN112860390A (en) | Job scheduling program, information processing apparatus, and job scheduling method | |
US10031824B2 (en) | Self-diagnosis device and self-diagnosis method | |
TW200813845A (en) | Resource-based scheduler | |
WO2003005136A2 (en) | A scheduling method and system for controlling execution of processes | |
JP7167596B2 (en) | Transaction management device, transaction management method and transaction management program | |
US7321945B2 (en) | Interrupt control device sending data to a processor at an optimized time | |
JP7331386B2 (en) | Job control system, method and program | |
JP6848278B2 (en) | Storage management device, performance adjustment method and performance adjustment program | |
CN108270810B (en) | Media data access method and device | |
JP2022121124A (en) | Job assignment control device, job assignment control method, and job assignment control program | |
JP4367167B2 (en) | Real-time system, QoS adaptive control device, QoS adaptive control method used therefor, and program thereof | |
JP7237245B2 (en) | Scheduling method and scheduling system | |
CN118012343A (en) | Method and device for controlling read-write operation of solid state disk and solid state disk | |
JP7381711B2 (en) | information processing equipment | |
CN109062518B (en) | Request processing method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230203 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230929 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20231010 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231205 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20240220 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240304 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7459573 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |