JPS648386B2 - - Google Patents

Info

Publication number
JPS648386B2
JPS648386B2 JP58211359A JP21135983A JPS648386B2 JP S648386 B2 JPS648386 B2 JP S648386B2 JP 58211359 A JP58211359 A JP 58211359A JP 21135983 A JP21135983 A JP 21135983A JP S648386 B2 JPS648386 B2 JP S648386B2
Authority
JP
Japan
Prior art keywords
output
cpu load
data
value
load
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
Application number
JP58211359A
Other languages
Japanese (ja)
Other versions
JPS60103471A (en
Inventor
Kazunori Fujiwara
Katsuyasu Kato
Toshio Hiraishi
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58211359A priority Critical patent/JPS60103471A/en
Publication of JPS60103471A publication Critical patent/JPS60103471A/en
Publication of JPS648386B2 publication Critical patent/JPS648386B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 この発明は計算機の記録処理方式に係り、特に
バツフアメモリに格納した情報の出力方法の改善
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a recording processing method for a computer, and particularly to an improvement in a method for outputting information stored in a buffer memory.

〔発明の背景〕[Background of the invention]

第1図は従来の記録処理方式を示す構成図であ
る。
FIG. 1 is a block diagram showing a conventional recording processing method.

この従来例によれば、常駐メモリMEMは連続
的な記録を保証するために、2つのバツフア1,
2を有し、またリンケージテーブル3を具えてい
る。バツフア1,2の内容は出力要求プログラム
10に基づいて、出力プログラム12を介して出
力フアイル13(この場合は磁気テープM/T)
に送出される。
According to this conventional example, the resident memory MEM has two buffers 1 and 1, in order to guarantee continuous recording.
2 and a linkage table 3. The contents of buffers 1 and 2 are sent to an output file 13 (in this case, a magnetic tape M/T) via an output program 12 based on an output request program 10.
will be sent to.

この種の装置におけるデータの流れは次の様で
ある。
The data flow in this type of device is as follows.

先ず、出力要求プログラム10は、処理したデ
ータDTを記録用バツフア1に格納し、格納最終
アドレス情報等WPを、リンケージテーブル3に
格納し更新する。
First, the output request program 10 stores processed data DT in the recording buffer 1, and stores and updates WP such as storage final address information in the linkage table 3.

次に、更新されたリンケージテーブル3を参照
し、もし、バツフア1が満杯になつていたら、バ
ツフア1の満杯表示を示すビツト「1」にし、こ
のインベント信号11に基づいて直ちにM/T出
力プログラム12を起動する。
Next, referring to the updated linkage table 3, if buffer 1 is full, set the bit to "1" to indicate that buffer 1 is full, and immediately set the M/T output program based on this event signal 11. 12.

バツフア満杯というインベント11により、出
力要求プログラム10より起動されたM/T出力
プログラム12は、先ず、リンケージテーブル3
を参照し、満杯表示ビツトが「1」であるバツフ
ア1のデータを出力フアイル(M/T)13に強
制出力する。この出力の後、M/T出力プログラ
ム12は、リンケージテーブル3のバツフア1の
満杯表示ビツトを「0」にセツトする。この満杯
表示ビツトが「0」となつたことで、バツフア1
が再び空き状態(書き込み可能状態)になるとと
もに、バツフア2の予備となる。以下、バツフア
1,2を、サイクリツクに使用する。
Due to the buffer full event 11, the M/T output program 12 started from the output request program 10 first starts the linkage table 3
, the data of buffer 1 whose full indication bit is "1" is forcibly output to the output file (M/T) 13. After this output, the M/T output program 12 sets the fullness indicating bit of buffer 1 in the linkage table 3 to "0". When this full display bit becomes "0", the buffer becomes 1
becomes vacant again (writable state) and becomes a reserve for buffer 2. Below, buffers 1 and 2 will be used for cycling.

この様な方式によれば、例えば時間tに対する
CPUの負荷は第2図の曲線21の様であるが、
バツフア満杯のイベントが生ずると直ちに出力フ
アイル13に出力を与えてしまう。このため、例
えば、第2図の時刻t1、t3の様にCPU負荷がピー
クに近い場合でも、更に負荷22を増加させてし
まう欠点があつた。
According to such a method, for example, for time t
The CPU load is as shown in curve 21 in Figure 2,
When a buffer full event occurs, output is immediately given to the output file 13. For this reason, even when the CPU load is close to its peak, for example at times t 1 and t 3 in FIG. 2, there is a drawback that the load 22 is further increased.

〔発明の目的〕[Purpose of the invention]

この発明は、CPU負荷を時間に対して平滑化
し、CPU負荷の極端な増大を回避し、CPUの効
率的な運用を期待し得る計算機の記録処理方式を
提供することを目的とする。
An object of the present invention is to provide a recording processing method for a computer that can smooth the CPU load over time, avoid an extreme increase in the CPU load, and expect efficient CPU operation.

〔発明の概要〕[Summary of the invention]

この目的を達成するため、この発明は、計算機
のバツフアメモリに格納された情報を出力させる
場合において、CPU負荷を測定し、また予測す
ることにより、CPU負荷が低いときに集中的に
格納情報を出力する様にする。
To achieve this objective, the present invention measures and predicts the CPU load when outputting information stored in the buffer memory of a computer, and outputs the stored information intensively when the CPU load is low. do as you like.

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

以下、添付図面に従つてこの発明の実施例を説
明する。尚、各図において、同一の符号は同様の
対象を示すものとする。
Embodiments of the present invention will be described below with reference to the accompanying drawings. In each figure, the same reference numerals indicate similar objects.

第3図はこの発明の実施例を示すものであり、
第1図の従来例と同様に、常駐メモリMEMはN
個のバツフア1〜n及びリンケージテーブル30
を具えている。
FIG. 3 shows an embodiment of this invention,
Similar to the conventional example shown in Fig. 1, the resident memory MEM is N
buffers 1 to n and linkage table 30
It is equipped with

ただし、この記録用バツフア1〜nの一面は、
一度に出力するブロツクを単位としており、これ
をN面有していて、各バツフア1〜nを順次周期
的に使用する。
However, one side of this recording buffer 1 to n is
The unit is a block to be output at one time, and has N sides, and each buffer 1 to n is sequentially and periodically used.

このバツフア1〜n内のデータは、(1)常時出力
プログラム31によつて、又は(2)出力要求プログ
ラム36に基づいて強制出力プログラム38によ
つて出力フアイル39に出力される。
The data in the buffers 1 to n are output to the output file 39 by (1) the constant output program 31 or (2) the forced output program 38 based on the output request program 36.

常時出力プログラム31は、タイマ35に基づ
いて作動するCPU負荷測定・予測プログラム3
3によつて起動され、CPUの低負荷時に出力す
ることを目的とする。
The constant output program 31 is a CPU load measurement/prediction program 3 that operates based on the timer 35.
3, and its purpose is to output when the CPU is under low load.

CPU負荷測定・予測プログラム33は、公知
方法によつてCPU負荷の測定及び予測を行うも
のであり、例えば次の様である。
The CPU load measurement/prediction program 33 measures and predicts the CPU load using a known method, and is, for example, as follows.

第1に、負荷測定は、タイマ35の周期起動信
号34を1秒間に100回とし、この周期起動毎に
プログラム33によるカウント値を「1」から順
次カウントし、1秒間での起動回数すなわち1秒
間でのカウント値を基に、CPU負荷Lnを、 Ln=100−(カウント値) として求める。
First, the load measurement is performed by setting the periodic activation signal 34 of the timer 35 to 100 times per second, and counting the count value by the program 33 sequentially from "1" for each periodic activation, and calculating the number of activations per second, that is, 1. Based on the count value per second, calculate the CPU load L n as L n = 100 - (count value).

また、第2に、負荷予測は、現在のCPU負荷
測定値Lnと前回の値Lnpを基に、CPU負荷の予測
値LPを、 LP=Ln+(Lnp−Ln)/T で求める。ただし、Tは負荷の測定周期である。
Second, the load prediction is based on the current CPU load measurement value L n and the previous value L np , and calculates the predicted CPU load value L P as follows: L P = L n + (L np − L n ) /T. However, T is the load measurement cycle.

強制出力プログラム38は、CPUの高負荷状
態が連続し、バツフア1〜n内のデータを出力で
きない様な場合に、強制的に最優先で出力を送出
し、データ消失などを回避する。
The forced output program 38 forcibly sends out the output with the highest priority when the CPU is continuously in a high load state and data in buffers 1 to n cannot be output, thereby avoiding data loss.

以上の様な各プログラム31,38からのデー
タDT1,DT2及びCPU負荷の測定値Ln並びに
予測値LPは、第4図で示す様な構成のリンケー
ジテーブル30に格納する。
The data DT1, DT2 from each program 31, 38 as described above, the measured value Ln and the predicted value LP of the CPU load are stored in a linkage table 30 having a structure as shown in FIG.

次に常時出力プログラム31及び強制出力プロ
グラム38の内容を更に詳細に説明し、この発明
の内容を明らかにする。
Next, the contents of the constant output program 31 and the forced output program 38 will be explained in more detail to clarify the contents of the present invention.

常時出力プログラム31について説明する。 The constant output program 31 will be explained.

このプログラム31は、前述の様にCPU負荷
測定・予測プログラム33の起動信号32によつ
て起動されるが、この起動のタイミングは、
CPU負荷の予測値が低負荷基準値α以下のとき
である。
This program 31 is started by the start signal 32 of the CPU load measurement/prediction program 33 as described above, but the timing of this start is as follows.
This is when the predicted value of the CPU load is less than or equal to the low load reference value α.

ここで、基準値αは、出力処理による負荷を加
味した全CPU負荷の平均値とする。これに対し
て、更に、常時出力プログラム31の内部にβ=
0.6αとなる様な判定基準値βを導入する。
Here, the reference value α is an average value of all CPU loads, taking into account the load due to output processing. On the other hand, β=
Introduce a criterion value β that is 0.6α.

第5図は、基準値αで起動し、内部に判定基準
値βを有するプログラム31のフローチヤートで
ある。尚、以下の説明中(1)、(2)、……等の番号は
図面中の各ステツプ番号に対応する。
FIG. 5 is a flowchart of a program 31 that starts with a reference value α and has a determination reference value β inside. Note that the numbers (1), (2), etc. in the following explanation correspond to each step number in the drawings.

CPU負荷予測値LPがα以下であると、プログ
ラム31は起動され(1)、リンケージテーブル30
(第3図)を介してデータを1ブロツク分取込む
(2)。次に、CPU負荷の予測値LPを求め(3)、LP
βであれば、出力データ量をK倍し(4)、Kブロツ
ク分のデータを出力し、またLP>βである場合
はそのまま1ブロツク分のデータを出力し(5)、出
力フアイル39(第3図)に格納する。データが
フアイルされた後は、リンケージテーブル30
(第3図)が更新され(6)、出力データ量を初期値
にセツトし(7)、1周期の動作が終了する(8)。
When the predicted CPU load value L P is less than or equal to α, the program 31 is started (1) and the linkage table 30
Import one block of data via (Figure 3)
(2). Next, find the predicted value L P of the CPU load (3), and L P
If it is β, the output data amount is multiplied by K (4) and data for K blocks is output, and if L P > β, data for one block is output as is (5), and the output file 39 is (Fig. 3). After the data is filed, the linkage table 30
(Fig. 3) is updated (6), the output data amount is set to the initial value (7), and one cycle of operation is completed (8).

この様な処理を、時間に対するCPU負荷の実
際例で示せば第6図の様である。尚、曲線66
は、例えば時刻t1、t2の負荷測定値に基づいて、
時刻t3で予測値LPを求める様にして、各時刻で求
めた予測曲線である。
Fig. 6 shows an actual example of the CPU load versus time for such processing. Furthermore, curve 66
For example, based on the load measurements at times t 1 and t 2 ,
This is a prediction curve obtained at each time by obtaining the predicted value L P at time t3 .

ここで、時刻t1で測定値Lnは、低負荷基準値α
より大きいが、予測値LPがα以下であれば、今
後、CPU負荷は減少すると考えられるため、1
ブロツク分のデータ65を出力する。次に、時刻
t2では、α>Ln>βであるが、時刻t3で予想され
る予測値LPがLP<βであるため、Kブロツク分
のデータ62を出力する。以後、同様に、次に予
測されるCPU負荷の値の大小により、出力量を
制御し、低負荷時に、出来るだけ多くのデータを
出力させる様にする。
Here, the measured value L n at time t 1 is the low load reference value α
is larger, but if the predicted value L P is less than α, it is considered that the CPU load will decrease in the future, so 1
Data 65 for the block is output. Next, the time
At t 2 , α>L n >β, but since the predicted value L P expected at time t 3 is L P <β, data 62 for K blocks are output. Thereafter, similarly, the output amount is controlled depending on the magnitude of the next predicted CPU load value, so that as much data as possible is output when the load is low.

強制出力プログラム38について説明する。 The forced output program 38 will be explained.

このプログラム38には、起動する基準となる
バツフア面数Mが定められている。すなわち、バ
ツフア面数Nのうち強制出力基準バツフア面数M
(<N)まで満杯となつた時点で、プログラム3
8を起動する。
This program 38 has a buffer page number M defined therein as a reference for activation. In other words, the forced output standard buffer surface number M out of the buffer surface number N
When it is full to (<N), program 3
8.

強制出力プログラム38は、一度に、Kブロツ
ク分のデータを出力し、出力後リンケージテーブ
ル30の現在使用されているバツフア面数Lと最
終読出しアドレス情報RP(Read Pointer)を更
新する。
The forced output program 38 outputs K blocks of data at a time, and updates the currently used buffer surface number L and final read address information RP (Read Pointer) in the linkage table 30 after output.

一方、出力要求プログラム36は、バツフアに
データを格納後、リンケージテーブル30のバツ
フア面数Lと格納最終アドレス情報WPを更新
後、バツフア面数Lと格納最終アドレス情報Mを
比較し、上記のように、L>Mのとき強制出力プ
ログラム38を起動する。
On the other hand, after storing the data in the buffer, the output request program 36 updates the buffer surface number L and the storage final address information WP in the linkage table 30, and then compares the buffer surface number L with the storage final address information M, and as described above. Then, when L>M, the forced output program 38 is activated.

ところで、以上のような処理構成を実現させる
ためには、相互の起動タイミングの他に、タスク
の優先レベルを、決めておく必要がある。この実
施例における各々のタスクレベルを第7図に示
す。
By the way, in order to realize the above processing configuration, it is necessary to determine the priority level of tasks in addition to mutual activation timing. FIG. 7 shows each task level in this embodiment.

同図によれば、タスクレベルが0〜7と8レベ
ルの場合、強制出力プログラム38は、他の処理
より最優先で行いたいため、レベル0の最優先レ
ベルに指定し、常時出力プログラム31は、他の
処理の空き時間に動作するように優先レベルの最
も低いレベル7に指定した。これらをレベル0と
7に置くことで、出力処理には関係なく、出力要
求プログラム36は動作可能とした。また、
CPU負荷測定・予測プログラム33は、常時出
力プログラム31による負荷を除く、CPU負荷
を測定・予測させるためレベル6に置いた。
According to the figure, when the task levels are 0 to 7 and 8, the forced output program 38 is given top priority over other processes, so it is designated as the highest priority level of level 0, and the constant output program 31 is , I set it to the lowest priority level, level 7, so that it would run during free time for other processes. By placing these at levels 0 and 7, the output request program 36 is enabled to operate regardless of output processing. Also,
The CPU load measurement/prediction program 33 is placed at level 6 in order to measure and predict the CPU load, excluding the load caused by the constant output program 31.

第8図は、この発明の他の実施例の処理を示す
フローチヤートであり、常時出力プログラム31
について説明した第5図と対応する。
FIG. 8 is a flowchart showing the processing of another embodiment of the present invention, in which the constant output program 31
This corresponds to FIG. 5, which describes the above.

この実施例と、第5図で示した実施例との違い
は2つある。
There are two differences between this embodiment and the embodiment shown in FIG.

1つは、CPU負荷変化率(81)を新しく判定
条件に入れたことである。これにより、CPU負
荷変化率が増加する傾向にあれば、出力量を、予
測値LPにより制御せず、現在の測定値Lnで制御
できる(82)。
One is that the CPU load change rate (81) has been newly added to the judgment condition. As a result, if the CPU load change rate tends to increase, the output amount can be controlled using the current measured value L n instead of using the predicted value L P (82).

他は、α<LP<βのとき、予測値LPがβに近
づけば、それに応じて、出力量を増やせることで
ある(83)。ここで、予測の基準となる負荷値は、
CPU変化率が負のときは従来通りの予測値LPで、
正又は0のときは、測定値Lnである。出力量の
増加量は、例えば、基準値αとβの間に基準値
を、複数個設け、各々の基準値以下ではk倍出力
させるという方法で決める。又は、基準値αから
βまでが1〜Kブロツクということで、次式のよ
うに比例計算して決める。
The other is that when α<L P <β, if the predicted value L P approaches β, the output amount can be increased accordingly (83). Here, the load value that is the basis for prediction is
When the CPU change rate is negative, the conventional predicted value L P is used,
When it is positive or 0, it is the measured value L n . The amount of increase in the output amount is determined, for example, by providing a plurality of reference values between the reference values α and β, and increasing the output by k times when each reference value is below. Alternatively, since the reference values α to β are 1 to K blocks, they are determined by proportional calculation as shown in the following equation.

k=K×(α−LP)/(β−α) 以上のようにした場合のCPU負荷推移は、第
9図のようになり、平滑化は、更に促進できる。
すなわち、第5図の場合より、更に効率が良くな
る。
k=K×(α−L P )/(β−α) The CPU load transition in the above case is as shown in FIG. 9, and smoothing can be further promoted.
In other words, the efficiency is even better than in the case of FIG.

以下、4つの変形例を説明する。 Hereinafter, four modified examples will be explained.

第1に、低負荷基準値α以下では、出力処理に
よるCPU負荷を加えた全負荷がα以下となる様
に、出力ブロツク数をCPU負荷予測値LPにより
可変としてもよい。
First, below the low load reference value α, the number of output blocks may be varied by the predicted CPU load value L P so that the total load including the CPU load due to output processing is below α.

具体的には、予め1ブロツクの出力処理による
CPU負荷を算出しておき、予測値LPと基準値α
との間で何ブロツク分のデータが出力できるが演
算し、基準値α以下に全CPU負荷がおさまるよ
う制御する方式である。ブロツク数の計算式は次
式で求まる。
Specifically, by pre-processing the output of one block,
Calculate the CPU load and use the predicted value L P and reference value α
This method calculates how many blocks of data can be output between the two and controls the total CPU load to be below the reference value α. The formula for calculating the number of blocks is given by the following formula.

k=(α−LP)/L1 ここで、kは、ブロツク数、L1は、1ブロツ
ク出力するのに要するCPU負荷である。
k=(α-L P )/L 1 Here, k is the number of blocks, and L 1 is the CPU load required to output one block.

このkの計算では、kを整数化する必要から、
四捨五入、切捨て等、種々考えられる。
In this calculation of k, since it is necessary to convert k into an integer,
There are various possibilities such as rounding off, truncation, etc.

第10図は、この様な方式による処理結果を示
すものであり、kは切捨てによつて求めたもので
ある。
FIG. 10 shows the results of processing using this method, where k is determined by rounding down.

第2に、ある期間のCPU負荷の平均値に変動
がある場合、第11図に示す様に、低負荷基準値
αを上下に変動させるようにする。
Second, if there is a fluctuation in the average value of the CPU load for a certain period, the low load reference value α is changed up and down as shown in FIG.

例えば、1日単位、1ケ月単位、1年単位で、
周期がある場合、CPU負荷が平均して高い時期
には、基準値αを高くし、逆に低い時期には下げ
るようにすることで、平均して出力処理させる様
にすることができる。
For example, on a daily, monthly, or yearly basis.
If there is a cycle, the reference value α is increased when the CPU load is high on average, and lowered when it is low, so that output processing can be performed on average.

第3に、第12図に示す様に、低負荷基準値を
複数層設け(図の場合は、α1〜α5までの5つ)、
各階層毎にデータの出力ブロツク数を分担決定し
ておく様にすることができる。
Thirdly, as shown in Fig. 12, multiple layers of low load reference values are provided (in the case of the figure, there are five from α1 to α5),
The number of data output blocks can be determined for each layer.

例えば、同図で示す様に、低負荷基準値をα1
〜α5まで5階層設け、α1LP>α2では1ブロツ
ク、α2LP>α3では2ブロツク、といつた様に
順次5ブロツク分まで出力ブロツク数を増加させ
る。
For example, as shown in the figure, the low load reference value is α1
Five hierarchies are provided from ~α5, and the number of output blocks is sequentially increased to 5 blocks, such as 1 block when α1L P >α2, 2 blocks when α2L P >α3, and so on.

こうすることにより、簡単な構成で出力データ
の平滑化を図れる。
By doing so, output data can be smoothed with a simple configuration.

第4に、次の様な2つの処理を導入する方式で
ある。
The fourth method is to introduce the following two processes.

すなわち、第13図の時刻t1で示す様に、CPU
負荷変化率が負(CPU負荷が減少中)で、且つ、
CPU負荷予測値LPが基準値α以下の場合、出力
すべきか否かを現在のCPU負荷測定値Lnにより
判定する。
In other words, as shown at time t 1 in Figure 13, the CPU
The load change rate is negative (CPU load is decreasing), and
If the predicted CPU load value L P is less than or equal to the reference value α, it is determined whether or not to output it based on the current measured CPU load value L n .

次に、CPU負荷変化率が正(CPU負荷が増加
中)で、且つCPU負荷予測値LPが基準値α以上
の場合、出力するべきか否かを現在のCPU負荷
測定値Lnにより判定する。
Next, if the CPU load change rate is positive (CPU load is increasing) and the CPU load predicted value L P is greater than or equal to the reference value α, determine whether to output or not based on the current CPU load measurement value L n do.

具体的には、前者の場合、測定値Lnが出力基
準値α1と比較し、Ln≦α1のとき出力する。後者
の場合では、Lnα2のとき出力する。
Specifically, in the former case, the measured value L n is compared with the output reference value α 1 and is output when L n ≦ α 1 . In the latter case, it is output when L n α 2 .

この様な方式によれば、低負荷基準値αの境界
付近での出力判定を、より厳密にすることができ
る。
According to such a method, the output determination near the boundary of the low load reference value α can be made more precise.

いずれの実施例及び変形例によつても、最終的
なCPU負荷の時間的推移は第14図に示す様に
なり、予測曲線141にデータ142が重畳され
た形となる。
In any of the embodiments and modifications, the final change in CPU load over time is as shown in FIG. 14, in which data 142 is superimposed on a prediction curve 141.

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

この発明によれば、以上の様な構成とすること
により、CPU負荷を時間に対して平滑化し、
CPU負荷の極端な増大を回避し、CPUの効率的
な運用を期待し得る計算機の記録処理方式を提供
することができる。
According to this invention, by having the above configuration, the CPU load is smoothed over time,
It is possible to provide a recording processing method for a computer that avoids an extreme increase in CPU load and can be expected to efficiently operate the CPU.

また、強制出力プログラムを設けることによ
り、高負荷状態が連続した場合に、現在のCPU
負荷の値にかかわらず直ちにデータを送出するた
め、この様な高負荷状態の連続に伴う記録データ
の消失などを回避でき、信頼性が高い。
In addition, by providing a forced output program, if a high load condition continues, the current CPU
Since data is sent immediately regardless of the load value, it is possible to avoid loss of recorded data that would otherwise occur due to such continuous high load conditions, and the reliability is high.

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

第1図は従来の処理方式を示す構成図、第2図
は第1図の方式による処理結果であるCPU負荷
を示す特性図、第3図はこの発明の実施例を示す
構成図、第4図及び第5図は第3図の実施例の要
部構成図、第6図は第3図の実施例による処理結
果であるCPU負荷を示す特性図、第7図は第3
図の実施例の他の要部を示す構成図、第8図はこ
の発明の他の実施例の要部系統図、第9図は第8
図に係る実施例による処理結果であるCPU負荷
を示す特性図、第10図乃至第13図はこの発明
の4つの変形例に係る処理結果であるCPU負荷
を示す特性図、第14図はこの発明に係る一般的
処理結果であるCPU負荷を示す特性図である。 1〜n……記録用バツフア、30……リンケー
ジテーブル、31……出力要求プログラム、33
……CPU負荷測定・予測プログラム、35……
タイマ、36……出力要求プログラム、38……
強制出力プログラム、39……出力フアイル、
MEM……常駐メモリ、α……低負荷基準値。
FIG. 1 is a block diagram showing a conventional processing method, FIG. 2 is a characteristic diagram showing the CPU load as a result of processing by the method in FIG. 1, FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG. 5 and 5 are main part configuration diagrams of the embodiment of FIG. 3, FIG. 6 is a characteristic diagram showing the CPU load as a result of processing by the embodiment of FIG. 3, and FIG.
FIG. 8 is a block diagram showing other main parts of the embodiment shown in the figure, FIG. 8 is a system diagram of main parts of another embodiment of the present invention, and FIG.
FIGS. 10 to 13 are characteristic diagrams showing CPU loads as processing results according to the embodiment according to the present invention. FIG. FIG. 2 is a characteristic diagram showing a CPU load which is a general processing result according to the invention. 1-n...recording buffer, 30...linkage table, 31...output request program, 33
...CPU load measurement/prediction program, 35...
Timer, 36... Output request program, 38...
Forced output program, 39...output file,
MEM...Resident memory, α...Low load reference value.

Claims (1)

【特許請求の範囲】 1 順次到来するデータを格納する複数のブロツ
クから成る記録用バツフアと、CPU負荷を測定
予測する第1の手段と、この第1の手段による予
測値が予め定めた基準値以下の場合に起動し所定
のタイミングで前記バツフアに格納したデータを
出力フアイルに送出する第2の手段とを具えたこ
とを特徴とする計算機の記録処理方式。 2 特許請求の範囲第1項記載の方式において、
前記バツフアから取出すデータのブロツク数は前
記第1の手段による測定値又は予測値に応じて異
なる様にしたことを特徴とする計算機の記録処理
方式。 3 順次到来するデータを格納する複数のブロツ
クから成る記録用バツフアと、CPU負荷を測定
予測する第1の手段と、この第1の手段による予
測値が予め定めた基準値以下の場合に起動し所定
のタイミングで前記バツフアに格納したデータを
出力フアイルに送出する第2の手段と、前記バツ
フアのうちの使用面数が予め定めた強制出力基準
バツフア面数を越えたとき前記バツフアから所定
数のブロツク分のデータを前記第2の手段に代わ
つて前記出力フアイルに送出する第3の手段とを
具えたことを特徴とする計算機の記録処理方式。
[Claims] 1. A recording buffer consisting of a plurality of blocks for storing sequentially arriving data, a first means for measuring and predicting the CPU load, and a reference value whose predicted value by the first means is predetermined. A recording processing method for a computer, comprising: second means that is activated in the following cases and sends the data stored in the buffer to an output file at a predetermined timing. 2 In the method described in claim 1,
A recording processing method for a computer, characterized in that the number of blocks of data taken out from the buffer varies depending on the measured value or predicted value by the first means. 3. A recording buffer consisting of a plurality of blocks that store sequentially arriving data, a first means for measuring and predicting the CPU load, and a system that is activated when the predicted value by the first means is less than a predetermined reference value. a second means for sending the data stored in the buffer to an output file at a predetermined timing; A recording processing method for a computer, comprising: third means for sending a block of data to the output file in place of the second means.
JP58211359A 1983-11-10 1983-11-10 Record processing system of computer Granted JPS60103471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58211359A JPS60103471A (en) 1983-11-10 1983-11-10 Record processing system of computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58211359A JPS60103471A (en) 1983-11-10 1983-11-10 Record processing system of computer

Publications (2)

Publication Number Publication Date
JPS60103471A JPS60103471A (en) 1985-06-07
JPS648386B2 true JPS648386B2 (en) 1989-02-14

Family

ID=16604661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58211359A Granted JPS60103471A (en) 1983-11-10 1983-11-10 Record processing system of computer

Country Status (1)

Country Link
JP (1) JPS60103471A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH073663B2 (en) * 1987-12-21 1995-01-18 横河電機株式会社 SCSI host adapter
JP5220053B2 (en) * 2010-04-22 2013-06-26 三菱電機株式会社 Storage medium control device, control program, and control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51108547A (en) * 1975-03-19 1976-09-25 Hitachi Ltd 2 jukeikeisankishisutemuniokeru jidofukahaibunsochi
JPS51144543A (en) * 1975-06-06 1976-12-11 Toshiba Corp Processing system of composite computer system
JPS57120167A (en) * 1981-01-19 1982-07-27 Mitsubishi Electric Corp Load scattering method for composite computer system

Also Published As

Publication number Publication date
JPS60103471A (en) 1985-06-07

Similar Documents

Publication Publication Date Title
US20150106582A1 (en) Apparatus and method for managing data in hybrid memory
CN104516475A (en) Method and apparatus for managing global chip power on multicore system on chip
CN116954929B (en) Dynamic GPU scheduling method and system for live migration
JP5275457B2 (en) Method and system for measuring task load
JP2003271401A (en) Microprocessor having load monitoring function
WO2022257389A1 (en) Task delay risk detection method, electronic device and storage medium
JPS648386B2 (en)
CN100565488C (en) Arbiter circuit
JP2008084011A (en) Cad data loading device
CN113711060B (en) Adaptive power measurement accumulator with varying sampling frequency
CN105677487A (en) Method and device for controlling resource occupancy
JP2000148515A (en) Memory scheduling method and storage medium storing memory scheduling program
JP2001184175A (en) Storage management system
CN108509148A (en) A kind of I/O request processing methods and device
JPS60237568A (en) Data processing system
JP2658553B2 (en) Life management method of rotating body for centrifuge
JP3975684B2 (en) Disk I / O scheduling apparatus and method
US6859849B2 (en) Method and architecture capable of adaptively accessing data and instructions
JP2723038B2 (en) Method of storing data in storage device
JP2638314B2 (en) Automatic Change Method of External Storage Device for Swapping in Virtual Storage System
CN103544119A (en) Method and system for cache scheduling and medium thereof
CN111737163B (en) Data flow control method and device and solid state disk
US11853577B2 (en) Tree structure node compaction prioritization
JPH06222991A (en) Automatic page number managing system in plural page size system
JPH08137703A (en) Task switching device