JPS62235646A - Resource managing system - Google Patents

Resource managing system

Info

Publication number
JPS62235646A
JPS62235646A JP7863786A JP7863786A JPS62235646A JP S62235646 A JPS62235646 A JP S62235646A JP 7863786 A JP7863786 A JP 7863786A JP 7863786 A JP7863786 A JP 7863786A JP S62235646 A JPS62235646 A JP S62235646A
Authority
JP
Japan
Prior art keywords
resource
task
load
queue
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7863786A
Other languages
Japanese (ja)
Inventor
Norihei Nakada
徳平 中田
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP7863786A priority Critical patent/JPS62235646A/en
Publication of JPS62235646A publication Critical patent/JPS62235646A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To efficiently manage resources by measuring a load state of the resources and informing it to a queue registering mechanism, monitoring whether an allocation of resources has been executed to the most backward registered task of a queue or not at the time of registering a task, and managing the registration. CONSTITUTION:Whether an allocation has been executed or not within a prescribed time to a task 11 which has been registered in the most backward part of a resource queue 10 is monitored by a resource load measuring instrument 20, and when the allocation has been executed, it is decided that a load is low, and if it is not so, it is decided that the load is high, and it is informed to a resource queue registering mechanism 30. Also, it is informed in advance that a load of the task 11 or a priority 7 is high, and the task 11 of a priority 4, which has been generated newly by the mechanism 30 is registered, after the task 11 of the priority 7, and before the task 11 of a priority 9, to which a prescribed time does not elapse.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機データ処理システムの資源管理方式
に関し、特に待行列制御の動的変更による資源管理方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a resource management method for a computer data processing system, and more particularly to a resource management method by dynamically changing queue control.

〔従来の技術〕[Conventional technology]

従来、資源待行列へのタスクの登録はその資源の負荷の
状態にかかわらず常に資源待行列の最後に登録する方法
や優先度の高いタスクを常に前方に登録する方法等一定
の方法で行っていた。
Conventionally, tasks are registered in a resource queue using a fixed method, such as always registering tasks at the end of the resource queue regardless of the resource load status, or always registering tasks with high priority at the front. Ta.

以下、図面を参照してタスクの優先度順に登録する場合
について説明する。
The case where tasks are registered in order of priority will be described below with reference to the drawings.

第2図(a)、 (b)、 (C)および第3図(a)
、 (b)、 (C)は資源に対する負荷が低い状態お
よび高い状態での従来の優先度によるタスクの登録方法
を工程順に示す図である。
Figure 2 (a), (b), (C) and Figure 3 (a)
, (b), and (c) are diagrams illustrating, in order of steps, a conventional method of registering tasks based on priorities in a state where the load on resources is low and when the load on resources is high.

第2図、第3図で10は主記憶装置、11はタスク、1
2は資源待行列lO上の先頭のタスクを示すポインタ、
111は資源待行列上の次のタスクを示すポインタ、3
0はタスクを資源待行列1に登録する資源待行列登録機
構であり、タスク11の()内の数値はそのタスクの優
先度を示し少ない値程高いものとする。
In Figures 2 and 3, 10 is the main memory, 11 is the task, 1
2 is a pointer indicating the first task on the resource queue lO;
111 is a pointer indicating the next task on the resource queue, 3
0 is a resource queue registration mechanism that registers a task in resource queue 1, and the numerical value in parentheses of task 11 indicates the priority of the task, and the smaller the value, the higher the value.

第2図(a)の状態の時に、第2図(b)で示すように
優先度(6)を持つタスクが資源を要求したとすると、
資源待行列登録機構30は優先度5のタスクの次に登録
するので第2図(C)の状態となる。
Suppose that a task with priority (6) requests a resource as shown in FIG. 2(b) in the state shown in FIG. 2(a).
The resource queue registration mechanism 30 registers the task after the priority level 5 task, resulting in the state shown in FIG. 2(C).

ここで、優先度(7)のタスクに資源が割当られるまで
の間に優先度(31,(5)、 (6)のタスクの資源
要求が発生しないような負荷のそれ#1ど高くない状態
では優先度が低くてもある程度の待合せKより資源が割
当られることになる。
Here, the load is not as high as #1, where the resource requests of tasks with priorities (31, (5), and (6)) do not occur until resources are allocated to tasks with priority (7). In this case, even if the priority is low, resources will be allocated to a certain number of queues K.

が、しかし優先度7のタスクに資源が割当られるまでの
間に優先度(3)、 (5)、 (6)のタスクの資源
要求が発生するような負荷の高い状態では、資源が全く
割当られなくなってしまう。
However, in a highly loaded state where resource requests for tasks with priorities (3), (5), and (6) occur before resources are allocated to tasks with priority 7, resources may not be allocated at all. I can't do it anymore.

第3図(a)〜(C)は優先度(5)のタスクに資源が
割当られるまでの間に優先度(3)のタスクが再度資源
を要求したことを示している。このように負荷が高い状
態では、優先度の高いタスクが繰返し資源の割当を受は
優先度の低いタスクはその負荷が低い状態になるまで全
く資源の割当を受けることができなくなってしまう。
FIGS. 3A to 3C show that the task with priority (3) requested the resource again before the resource was allocated to the task with priority (5). In such a high load state, a task with a high priority repeatedly receives resource allocation, while a task with a low priority cannot receive any resource allocation at all until its load becomes low.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の一般的な資源の割当ては資源待行列の先
頭に登録されているタスクの要求から順に行うため、そ
の要求を行ってから資源が割当てられるまでの時間は、
その資源の負荷状態と資源待行列への登録方法に依存す
る。このように、その資源の負荷状態にかかわらず一定
の方法で資源待行列へのタスクの登録を行うと、その登
録方法が負荷の低い状態に着目したものであれは負荷の
高い状態では不適機な方法となシ、負荷の高い状態に着
目したものであれば逆に負荷の低い状態では不適当な方
法となるという問題点がある。
The conventional general resource allocation described above is performed in order from the request of the task registered at the head of the resource queue, so the time from when the request is made until the resource is allocated is
It depends on the load status of the resource and how it is registered in the resource queue. In this way, if tasks are registered in a resource queue using a fixed method regardless of the load status of the resource, even if the registration method focuses on low load conditions, it may become inappropriate under high load conditions. However, if a method focuses on a high-load state, the problem is that it is inappropriate for a low-load state.

本発明の目的は、資源の負荷状態を測定することによっ
て資源待行列のタスクへの資源の割当方法を動的に変更
し効率的な資源の管理を行うことのできる資源管理方式
を提供することにある。
An object of the present invention is to provide a resource management method that can dynamically change the method of allocating resources to tasks in a resource queue by measuring the load status of resources, thereby managing resources efficiently. It is in.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の資源管理方式の構成は、資源待状態の複数のタ
スクが登録される資源待行列に前記資源を要求するタス
クを登録する資源待行列登録機構と、前記資源の負荷状
態を測定しその結果を前記資源待行列登録機構に通知す
る資源負荷測定装置とを有し、前記資源待行列への前記
タスクの登録の際に前記資源負荷測定装置により一定時
間内忙前記資源待行列の最後方に登録されているタスク
に対し前記資源の割当が行われたか否かを監視し、割当
が行われていれば負荷が低いと判断し、また割当が行わ
れていなければ負荷が高いと判断しその旨を前記資源待
行列登録機構に通知し、この通知により前記資源待行列
が前記負荷の低い状態では前記タスクの優先度+1i1
に、また前記負荷の高い状態では後から発生した前記タ
スクは優先度が高い場合でも前記一定時間以上前記賃源
待行列上で割当を待っている前記タスクよりも前方に登
録しないように、かつ、それより後方では優先度Jl!
になるように動的にタスクの登録が行われるよりに管理
されることを特徴とする。
The configuration of the resource management method of the present invention includes a resource queue registration mechanism that registers a task requesting the resource in a resource queue in which a plurality of tasks in a resource waiting state are registered, and a resource queue registration mechanism that measures the load state of the resource and and a resource load measuring device that notifies the resource queue registration mechanism of the result, and when registering the task in the resource queue, the resource load measuring device determines whether the task is busy within a certain period of time or at the end of the resource queue. It monitors whether or not the resource has been allocated to the task registered in the task, and if the resource has been allocated, it is determined that the load is low, and if it has not been allocated, it is determined that the load is high. Notify the resource queue registration mechanism to that effect, and as a result of this notification, if the resource queue is in the low load state, the priority of the task is +1i1.
In addition, in the high load state, even if the task that occurs later has a high priority, the task is not registered ahead of the task that has been waiting for assignment on the wage source queue for more than the certain period of time, and , and behind it, the priority is Jl!
It is characterized by dynamic task registration and management.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図(a)、 (b)、 (C)は本発明の一実施例
のタスクの登録方法を工程順に示したブロック図である
FIGS. 1A, 1B, and 1C are block diagrams illustrating a task registration method according to an embodiment of the present invention in the order of steps.

図中10は主記憶装置、11はタスク、12は資源待行
列10上の先頭のタスクを示すポインタ、機構である。
In the figure, 10 is a main memory, 11 is a task, and 12 is a pointer or mechanism indicating the top task on the resource queue 10.

この実施例での資源待行列1oは、負荷の低い状態では
タスクの優先度順になるように登録管理され、負荷の高
い状態では後から発生したタスクは優先度が高い場合で
も一定時間以上その待行列上で割当を待っているタスク
よシも待行列上の前に登録しないように、かつ、それよ
り後方では優先度順になるように登録管理される。
In this embodiment, the resource queue 1o is registered and managed in a state where the load is low so that the tasks are arranged in order of priority, and when the load is high, tasks that occur later are kept waiting for a certain period of time even if their priority is high. Tasks waiting for assignment on the queue are also registered and managed so that they are not registered earlier on the queue, and the tasks later on are arranged in order of priority.

また、資源負荷測定装置20は、一定時間内に資源待行
列10の最も後方忙登録されているタスクに対し資源の
割当が行われたか否かを監視し、割当が行われていれば
負荷が低いと判断し、割当が行われていなければ負荷が
高いと判断し、その旨を資源待行列登録機構30に通知
する。
In addition, the resource load measuring device 20 monitors whether or not resources have been allocated to the task that is registered as the last busy in the resource queue 10 within a certain period of time, and if the resource has been allocated, the load is reduced. If it is determined that the load is low and no allocation has been made, it is determined that the load is high, and the resource queue registration mechanism 30 is notified of this fact.

第1図(a)では資源負荷測定装置20は優先度け)の
タスクが一定時間内に資源の割当てを受けるか否かを監
視している。
In FIG. 1(a), the resource load measuring device 20 monitors whether or not a task with a priority level (1) receives resource allocation within a certain period of time.

資源負荷測定装置20は一定時間内に優先度(7)のタ
スクが資源の割当てを受けなかったために資源待行列登
録機構30に対し資源の負荷が高いことを通知する(8
1図(b))。
The resource load measurement device 20 notifies the resource queue registration mechanism 30 that the resource load is high because the task with priority (7) has not received resource allocation within a certain period of time (8
Figure 1 (b)).

これによυ資源待行列登録機構30は新たに発生した優
先度(4)のタスクを一定時間内に資源の割当てを受け
なかった優先度け)のタスクよりも後に、かつ、待合せ
を始めてから一定時間経過していない優先度(9)のタ
スクよりも前に登録する(第1図(C))。
As a result, the υ resource queue registration mechanism 30 assigns the newly generated task with priority (4) later than the task with priority (4) that has not received resource allocation within a certain period of time, and after starting queuing. It is registered before tasks with priority (9) for which a certain period of time has not elapsed (FIG. 1(C)).

なお、資源負荷測定装置20が監視しているタスクは優
先度(9)K第1図(b)の段階で変更されている。
Note that the priority of the task monitored by the resource load measuring device 20 has been changed to (9)K at the stage shown in FIG. 1(b).

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

以上説明したように、資源の負荷状態を測定し、その負
荷状態により、資源待行列へのタスクの登録方法を動的
に変更することにより、柔軟で効率的な資源の管理がで
きる効果がある。
As explained above, by measuring the load status of resources and dynamically changing the method of registering tasks in the resource queue based on the load status, flexible and efficient resource management is possible. .

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

第1図(a)、 (b)、 (C)は本発明の一実施例
のタスクの登録方法を工程順に示すブロック図、第2図
(a)。 (b)、 (C)、第3図(a)、 (b3. (C)
は資源に対する負荷が低い状態および高い状態での従来
の優先度によるタスクの登録方法を工程順に示すブロッ
ク図である。 10・・・・・・主記憶装置、11・・・・・・タスク
、12・・・・・・資源待行列上の先頭のタスクを示す
ポインタ、20・・・・・・資源負荷測定装置、3o・
・・・・・資源待行列登録機構、111・・・・・・資
源待行列上の次のタスクを示すポインタ。 、″−−゛ 代理人 弁理士  内 原   晋31.。 to Is【檀〈1 (O 率1 面 第2 図 (C) 奉3図
FIGS. 1(a), (b), and (C) are block diagrams illustrating a task registration method according to an embodiment of the present invention in the order of steps, and FIG. 2(a). (b), (C), Figure 3 (a), (b3. (C)
1 is a block diagram illustrating, in order of steps, a conventional method of registering tasks based on priorities in a state where the load on resources is low and when the load on resources is high; FIG. 10...Main storage device, 11...Task, 12...Pointer indicating the first task on the resource queue, 20...Resource load measuring device ,3o・
. . . Resource queue registration mechanism, 111 . . . Pointer indicating the next task on the resource queue. ,''--' Agent Patent Attorney Susumu Uchihara 31.

Claims (1)

【特許請求の範囲】[Claims] 資源待状態の複数のタスクが登録される資源待行列に前
記資源を要求するタスクを登録する資源待行列登録機構
と、前記資源の負荷状態を測定しその結果を前記資源待
行列登録機構に通知する資源負荷測定装置とを有し、前
記資源待行列への前記タスクの登録の際に前記資源負荷
測定装置により一定時間内に前記資源待行列の最後方に
登録されているタスクに対し前記資源の割当が行われた
か否かを監視し、割当が行われていれば負荷が低いと判
断し、また割当が行われていなければ負荷が高いと判断
しその旨を前記資源待行列登録機構に通知し、この通知
により前記資源待行列が前記負荷の低い状態では前記タ
スクの優先度順に、また前記負荷の高い状態では後から
発生した前記タスクは優先度が高い場合でも前記一定時
間以上前記資源待行列上で割当を待っている前記タスク
よりも前方に登録しないように、かつ、それより後方で
は優先度順になるように動的にタスクの登録が行われる
よりに管理されることを特徴とする資源管理方式。
A resource queue registration mechanism that registers a task requesting the resource in a resource queue in which a plurality of tasks in a resource waiting state are registered; and a resource queue registration mechanism that measures the load state of the resource and notifies the resource queue registration mechanism of the result. and a resource load measuring device that performs a resource load measuring device, and when registering the task in the resource queue, the resource load measuring device measures the resource for the task registered at the rear of the resource queue within a certain period of time. If the allocation has been made, it is determined that the load is low, and if the allocation has not been made, it is determined that the load is high, and this fact is sent to the resource queue registration mechanism. As a result of this notification, the resource queue is arranged in order of priority of the tasks when the load is low, and when the load is high, the tasks that occur later are ordered to queue the resources for more than the certain period of time even if they have a high priority. The task is managed by dynamically registering tasks so that they are not registered ahead of the task waiting for assignment on the queue, and in order of priority after that task. resource management method.
JP7863786A 1986-04-04 1986-04-04 Resource managing system Pending JPS62235646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7863786A JPS62235646A (en) 1986-04-04 1986-04-04 Resource managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7863786A JPS62235646A (en) 1986-04-04 1986-04-04 Resource managing system

Publications (1)

Publication Number Publication Date
JPS62235646A true JPS62235646A (en) 1987-10-15

Family

ID=13667383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7863786A Pending JPS62235646A (en) 1986-04-04 1986-04-04 Resource managing system

Country Status (1)

Country Link
JP (1) JPS62235646A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017016499A1 (en) * 2015-07-29 2017-02-02 腾讯科技(深圳)有限公司 Method and device for leveling load of distributed database

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017016499A1 (en) * 2015-07-29 2017-02-02 腾讯科技(深圳)有限公司 Method and device for leveling load of distributed database
US10554737B2 (en) 2015-07-29 2020-02-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for leveling loads of distributed databases

Similar Documents

Publication Publication Date Title
CN109117260B (en) Task scheduling method, device, equipment and medium
US7962913B2 (en) Scheduling threads in a multiprocessor computer
US8087026B2 (en) Fair share scheduling based on an individual user's resource usage and the tracking of that usage
US8166480B2 (en) Reducing lock contention by adding a time slice to an active thread holding a lock
KR101651871B1 (en) Job Allocation Method on Multi-core System and Apparatus thereof
US9448864B2 (en) Method and apparatus for processing message between processors
EP1241580A2 (en) Memory manager for a common memory
CN109564528B (en) System and method for computing resource allocation in distributed computing
US8627325B2 (en) Scheduling memory usage of a workload
JP2007529079A (en) System and method for application server with self-regulating threading model
US7681196B2 (en) Providing optimal number of threads to applications performing multi-tasking using threads
CN107515781B (en) Deterministic task scheduling and load balancing system based on multiple processors
CN107430526B (en) Method and node for scheduling data processing
JP3832341B2 (en) Memory pool management method
CN111338785A (en) Resource scheduling method and device, electronic equipment and storage medium
CN112860387A (en) Distributed task scheduling method and device, computer equipment and storage medium
CN109189581B (en) Job scheduling method and device
JPS62235646A (en) Resource managing system
JP2008225641A (en) Computer system, interrupt control method and program
CA2316643C (en) Fair assignment of processing resources to queued requests
JPS62175832A (en) Resources control system for electronic computer
JP2003186686A (en) Resource control apparatus, method and recording medium
CN115543554A (en) Method and device for scheduling calculation jobs and computer readable storage medium
CN114168290A (en) Task processing method and device, electronic equipment and storage medium
JPS6152761A (en) Arithmetic unit