Академический Документы
Профессиональный Документы
Культура Документы
P A R T 1. I N T R O D U C T O R Y R E M A R K S
~,~. . . . . +;~m,~ ~¢ +u. . . . . . . . . . A +;. . . . . . ;~,~,1. . . . . . . . . . . . elapsed tnnes. Because over-running m a y seriously upset 10(
facility k and time facility j a schedule, a limit is placed on the extent of over-run, lsei
Let us further suppose t h a t the a d j a c e n c y c o n s t r a i n t ap- When this limit is exceeded, the program in question is :/!yi
set aside for external superwsory" consideration or treat- ~24
plies to every space facility; that is, for every program i ment bv an installation-oriented routine. ~i
and space facility k, it is necessary that the space fraction
S~k be allocated so t h a t program i occupies a set of adja-
cent locations on facility k. Normally, this constraint 2.3. S p a c e Fra('tion D i a g r a m
applies to core and disk storage but not to tape unit aL Consider space facility k. Take space fraction for this
location. facility as ordinate and elapsed time as abscissa. Then, the
Note that any subset of programs selected to be run space-time provided by this facility is represented by the
concurrently must meet the requirement that the total
space fraction used by the subset on each Space facility
SPACE ,~-
does not exceed urfity. The scheduling problem does not FRACTION |
r e q u i r e that an upper bound be imposed on the total time LOAD |
fractions. Neither does it p r e c l u & such action. As we shall
(o.,,~~.. .... (®.,
see, the procedure described herein treats space fractions ./5-5
75~~;~5"7 re
(O
,)
and time fractions in a near-symmetric way, and art u p p e r
_ _ -
ii1~!
(0,O)~ ELAPSEDT~ME
b o u n d is i m p o s e d on total time fractions.
F:[c. 1. S p a c e f r a c t i o n dia, gr~mt
2.2. A c c u r a c y o f S c h e d u l i n g D a t a
We ,nay assume the space fractions S~k to be exact. On rectangular domain (0, 0), (0, 1), (',~, I), (.'~
the other hand, the time fractions r~ and expected elapsed is shaded in figure I.
In addition to these, the execution time t~ of each program For conveniet~ce, we treat the spa.co H,~(t i.ime fractions
represents a fore'ill type. All four types of bounds are of a program as compot~ents of a single vect;or, known as
independent; that. is, any one of them may be the greatest the load vector for that program. The loasl vet{or for a
lower bound of atl. given mix is simply the sum of lhe Ioa.d vectors of all the
These bounds may be readily computed and the value programs p:,r{icipa.ting iu ihat mix.
(T, say) of the greatest determined. While other lower The lower and uppe)' limits for each fatility *nay be
Wh~
bounds exist, they are less :readily e(.)mputed and will not tre:~ted similarly as components of ~ 5>'l.t:cr Zi~it vector b
east-s
not be discussed here. and an W)per limit vector B, respectively,
)~a.in
For every mix we now require that; e~ch c()mponent 0f
2.8. P r i n c i p l e o f U n i f o r m L o a d i n g T0r i
it.s load vector be less than or equal to the correspoMing
ium0:
The ,greatest lower bound T for the execution time of a component of the upper limit vector B. It' at: any time
~r0gr~
given set of programs m a y be used to determine for each during the generation of a mix every component of the ieim
facility the degree of loading which is necessary if this mix load vector e(tuals or exceeds the corresponding com. ar re
greatest lower bound is to be attained. Of course, this ponent of tile lower limit vector b, no more programs are :cries
theoretical loading and the greatest lower bound itself added to t h a t mix. ilher
may well be unattainable. For a time-shared facility j and }dter
a space-shared facility k, the necessary degrees of loading 2.10. Evaluation of a Schedule
ihta 1
are, respectively: We may expect that the execution time ot' m~y given It i~
E Sikti program will be extended when run concurrently with , sh0
~ 'r~t~ and i other programs due to delays in getting service from time- mpl0
T T shared facilities. These delays become significant when uire
We shall refer to these quantities as target loadings. the time fraction load on one or more facilities exceeds ited
In generating the early part of a schedule, it is possible unity. (;iv
through poor placement of programs to underload a time- For the sake of simplicity, schedules ,nay be generated >isd
shared or space-shared facility to such a degree that the ignoring these delays, tIowever, in comparing two sched- :{
ules, allowance should be made for them; otherwise, an
lwl,er
bound T cannot possibly be attained even if a perfect
packing is assumed for the remaining programs. It is also erroneous result may be obtained. Suc[h allowance can-
possible to overload a time-shared facility to such an ex- not be anything but approximate clue to inadequacies in
the information available concerning the behavior of each
tent that the time for executing the given set of programs
is agmn unnecessarily prolonged. program. I ae,
It is clear that, if the degree of loading of each facility Consider the time interval between successive mix
remMned at its target value defined above, the shortest changes (a mix change occurs whenever a program begins
possible schedule would be obtained. However, it is also or ends). Let. this time interval be of magnitude At, before
clear that in practice such an ideally uniform loading will allowance is made for extension. Let X be the maximum
normMly be unattainable. A less stringent goal must be time fraction load which the pertinent mix places on the
accepted. time-shared facilities. Then at, approximate value for the UlII
Accordingly, we set lower and upper limits upon the extended time interval for the mix is
loading of each facility. The upper limit for a space-shared
A t . m a x (i, X).
facility Should always be set to unity, since any greater
value is useless and any lesser value m a y lengthen the By summing the extended time intervMs for all mixes,
schedule unnecessarily. For t h e same reason, the upper we obtain an approximate execution time for the schedule.
limit for a time-shared facility should not be set to a value
less than unity, but it, certainly m a y exceed unity. Within REFERENCE
these constraints it is desirable t h a t for each facility the
1. E. F. CODD, •. S. LowRY, 1!]. i.~'[¢l)ONOU(ai, ([~+A. SCALZI,5.[ul-
mean of the lower and upper limits be as close as possible tiprogramming S T R E T C H : Feasibility Considcr~ti0ns.
to tlhe corresponding target loading. The remMning free- Corrt*r~. A C M 2 (November 1959). ! 21[
]i~ e,
350 C o m m u n i c a t i o n s of t h e ACM