# Heuristic Resource Allocation Algorithms for Maximizing Allowable Workload in

AI and Robotics

Oct 29, 2013 (5 years and 5 months ago)

100 views

Presenter: David Fleeman {
fleeman@ohio.edu

}

D. Juedes, F. Drews, L. Welch and D. Fleeman

Center for Intelligent, Distributed & Dependable Systems

Ohio University

Athens, OH

WPDRTS 2004

April 26, 2004

Heuristic Resource Allocation Algorithms
Dynamic, Distributed, Real
-
Time Systems

WPDRTS, April 26, 2004

2

Motivating Example

Example originated in the generic air defense system

The
detect

task is periodic and identifies threats by filtering and

The
engage

-
driven and fires a missile at the threat

The
guide missile

-
driven periodic and uses sensor
data to track a specific threat, recalculates flight path, and issues
guidance commands to the missile.

Familiar “shooter
-
to
-
target” requirement.

WPDRTS, April 26, 2004

3

Motivating Example (continued)

All three tasks have resource and timing
requirements that are environment
-
dependent.

The
detect

tracks to process and the number of tracks that are
actually threats.

The
engage

task is activated by events which occur at
rates that are determined by the external environment.

The
guide missile

task depends on the number of
missiles in flight.

WPDRTS, April 26, 2004

4

Motivating Example (continued)

Traditional WCET analysis causes poor utilization of
resources whenever there are little or no threats to be
analyzed.

We characterize the resource needs of these tasks by
execution profile functions that compute the resource
needs as a function of workload.

These functions are used in this work to choose allocations
that allow the applications:

To better utilize the resources.

Allow real
-
time constraints to be met

Minimize the need for reallocations which create system overhead
at the worst possible times.

WPDRTS, April 26, 2004

5

Problem (RMS)

Allocation of
n

m
processors.

t
is given as function
of the

w.

Problem:
Find an allocation of tasks to processors
and a setting of
w
such that this allocation is
w’≤ w,
such that
w

is
maximized
.

WPDRTS, April 26, 2004

6

Known Analytical Results

If the running
-
times of all of the tasks are
well
-
behaved
, then a modified version of First First is
guaranteed to be within 41% of optimal,
asymptotically.

If less than 12% of the system utilization is used
up by input independent tasks (i.e., constant time
tasks), then First First is within 33% of optimal,
asymptotically.

WPDRTS, April 26, 2004

7

A Modified Version of First Fit by
Oh and Baker

Input:
<T,P>

w.

Output: An allocation
alloc:T

P

and “Feasible” or “Not
Feasible”

for each job i do

place job i on the first processor j such that all tasks already
w
.

if no such processor j exists, return “Not Feasible”

Return “Feasible” and alloc.

WPDRTS, April 26, 2004

8

Using FF to Approximate MAW
-
RMS

Use binary search to find a workload
w
such
that the algorithm given on the previous
page return “Feasible,” but the same
algorithm returns “Not Feasible” for
w+1.
Use the

allocation returned
by the last feasible result of FF.

WPDRTS, April 26, 2004

9

Experimental Results

10 non
-
identical processors, each of which
described by its speed factor ranging within
[10,30]

Periods of tasks were choosen from [2500,5000]