• No results found

Response time analysis in distributed real-time systems: An improvement based on best-case finalization time analysis

N/A
N/A
Protected

Academic year: 2021

Share "Response time analysis in distributed real-time systems: An improvement based on best-case finalization time analysis"

Copied!
5
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Response time analysis in distributed real-time systems: An

improvement based on best-case finalization time analysis

Citation for published version (APA):

Bril, R. J., Cucu-Grosjean, L., & Goossens, J. (2009). Response time analysis in distributed real-time systems: An improvement based on best-case finalization time analysis. In J. Blazewicz, M. Drozdowski, G. Kendall, & B. McCollum (Eds.), Proceedings 4th Multidisciplinary International Scheduling Conference (MISTA 2009, Dublin, Ireland, August 10-12, 2009) (pp. 1-4)

Document status and date: Published: 01/01/2009

Document Version:

Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers)

Please check the document version of this publication:

• A submitted manuscript is the version of the article upon submission and before peer-review. There can be important differences between the submitted version and the official published version of record. People interested in the research are advised to contact the author for the final version of the publication, or visit the DOI to the publisher's website.

• The final author version and the galley proof are versions of the publication after peer review.

• The final published version features the final layout of the paper including the volume, issue and page numbers.

Link to publication

General rights

Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain

• You may freely distribute the URL identifying the publication in the public portal.

If the publication is distributed under the terms of Article 25fa of the Dutch Copyright Act, indicated by the “Taverne” license above, please follow below link for the End User Agreement:

www.tue.nl/taverne Take down policy

If you believe that this document breaches copyright please contact us at: openaccess@tue.nl

providing details and we will investigate your claim.

(2)

MISTA 2009

Response time analysis in distributed real-time systems

An improvement based on best-case finalization time analysis

R.J. Bril · L. Cucu-Grosjean · J. Goossens

1 Introduction

Existing end-to-end response time analysis in distributed real-time systems [2], where the finalization of one task on a processor activates another task on another processor, is pes-simistic. By “pessimistic” we mean that not all systems deemed to be unschedulable by the analysis are in fact unschedulable. This pessimism has two causes: (i) the existing analysis is based on best-case response times rather than best-case finalization times and (ii) those best-case response times are based on analysis for (worst-case) deadlines at most equal to periods minus (absolute) activation jitter [1]. In this paper, we present analytical means to determine best-case finalization times of independent real-time tasks with deadlines larger than periods minus activation jitter under uniprocessor fixed-priority preemptive scheduling (FPPS) and arbitrary phasing, allowing an improvement of the existing analysis. We will illustrate the improvement by means of an example.

We assume a single processor and a setT of n periodically released, independent tasks

τ1, τ2, . . . , τnwith unique, fixed priorities. At any moment in time, the processor executes the

highest priority task that has work pending, i.e. tasks are scheduled using FPPS.

Each task τigenerates an infinite sequence of jobs ιik with k ∈Z. The inter-activation

times of τiare characterized by a (fixed) period Ti∈R+and an (absolute) activation jitter

AJi∈R+∪ {0}, where AJi< Ti. Moreover, τiis characterized by a (fixed) computation time

Ci∈R+, a phasing ϕi∈R, a (relative) worst-case deadline WDi∈R+, and a (relative)

best-case deadline BDi∈R+∪ {0}, where BDi≤ WDi. The set of phasings ϕiis termed the

phasing ϕ of the task setT. We assume that we have no control over the phasing ϕ, so any

arbitrary phasing may occur. The deadlines BDiand WDiare relative to the activations.

Reinder J. Bril

Technische Universiteit Eindhoven (TU/e), Mathematics and Computer Science Department, Den Dolech 2, 5600 AZ Eindhoven, The Netherlands.

E-mail: R.J.Bril@tue.nl Liliana Cucu-Grosjean

INRIA Nancy-Grand Est, TRIO team, 615 rue du Jardin Botanique, Villers les Nancy, 54600, France. E-mail: Liliana.Cucu@loria.fr

Jo¨el Goossens

Universit´e Libre de Bruxelles (ULB), Computer Science Department, Boulevard du Triomphe - C.P.212, 1050 Brussels, Belgium.

(3)

Note that the activations of τi do not necessarily take place strictly periodically with

period Ti, but somewhere in an interval of length AJithat is repeated with period Ti. The

activation times aikof τisatisfy supk,`(aiki) − ai`i) − (k − `)Ti) ≤ AJi, where ϕidenotes

the start of the interval in which job zero is activated, i.e. ϕi+ kTi≤ aik≤ ϕi+ kTi+ AJi. A

task with activation jitter equal to zero is termed a strictly periodic task.

task τi time Ti WDi aik fik Rik wdik ai,k+1 preemptions by higher priority tasks execution release

(absolute) worst-case deadline Legend:

W

(absolute) best-case deadline

B W B BDi bdik AJi

(absolute) activation jitter

ϕi+kTi ϕi+(k+1)Ti

Fik

Fig. 1 Basic model for a periodic task τiwith (absolute) activation jitter AJi.

The (relative) finalization time Fikof job ιikis defined relative to the start of the interval in

which ιikis activated, i.e. Fik= fik− (ϕi+ kTi). The active interval of job ιikis defined as the

time span between the activation time of that job and its finalization time, i.e. [aik, fik). The

response time Rikof job ιikis defined as the length of its active interval, i.e. Rik= fik− aik.

Figure 1 illustrates the above basic notions for an example job of a periodic task τi. Whereas

Fik= Rikholds for a strictly periodic task τi, the following relation holds in general

Fik≥ Rik. (1)

For notational convenience, we assume that the tasks are given in order of decreasing

prior-ity, i.e. task τ1has highest priority and task τnhas lowest priority.

2 Existing results

The worst-case response time WRi and the best-case response time BRi of a task τi are

the largest and the smallest (relative) response time of any of its jobs, respectively, i.e.

WRidef= supϕ,kRik(ϕ) and BRidef= infϕ,kRik(ϕ). For worst-case deadlines at most equal to

pe-riods minus activation jitter, i.e. WDi≤ Ti− AJi, BRiis given by the largest x ∈R+that

satisfies x = Ci+

j<i µ» x − AJj Tj ¼ − 1 ¶+ Cj. (2)

Here, the notation w+ stands for max(w, 0), which is used to indicate that the number of

preemptions of tasks with a higher priority than τican not become negative. To calculate

BRi, we can use an iterative procedure based on recurrence relationships, starting with an

upper bound, e.g. WRi.

The worst-case finalization time WFiand the best-case finalization time BFiof a task τi

are the largest and the smallest (relative) finalization time of any of its jobs, respectively, i.e.

WFidef= supϕ,kFik(ϕ) and BFidef= infϕ,kFik(ϕ). The worst-case (absolute) finalization jitter FJi

of task τiis the largest difference between the finalization times of any two of its jobs, i.e.

FJi

def

= sup

ϕ,k,`

(4)

Finalization jitter analysis presented in [2] is based on FJi≤ WFi− BRi, where BRiis

deter-mined using Equation (2). 3 Contributions

From Equation (3) we derive FJi≤ WFi− BFi. The finalization jitter analysis presented

in [2] is therefore pessimistic for two reasons; firstly BFi≥ BRifor AJi> 0; see Equation

(1) and secondly BRias determined by Equation (2) is pessimistic for worst-case deadlines

larger than periods minus activation jitter [1]. We will illustrate this by means of an example and subsequently present a conjecture for best-case finalization time analysis.

Table 1 presents the characteristics of our example task setT1consisting of three tasks,

and Figure 2 shows a time-line forT1with BF3= 3 and BR3= 2.4 of task τ3, hence BF3>

BR3. Using Equation (2) yields a value BR3= 2, which is pessimistic, i.e. too small. A

conjecture for exact best-case response time analysis of tasks with arbitrary deadlines that are scheduled using FPPS has been presented in [4].

task T C AJ BF BR

τ1 4 2 0 2 2

τ2 5 1 0 1 1

τ3 7 2 0.6 3 2.4

Table 1 Task characteristics ofT1and values for best-case finalization times and response times.

-10 0 -15 -5 task τ1 task τ2 time task τ3 F3,-2 = 5 F3,-1 = 5 F3,0 = 3

Fig. 2 Time-line forT1with a best-case finalization time BF3= 3 and a best-case response time BR3= 2.4 for job ι3,0of task τ3.

Conjecture 1 The best-case finalization time BFiof task τiwith Ti− AJi< WDiis given by

BFi= max

0≤k<w`i (BR0

i((k + 1)Ci) − kTi) . (4)

where w`iis the worst-case number of jobs of τiin a level-i active period1, and BR0i((k +

1)Ci) is the best-case response time of a task τ0iwith a computation time Ci0= (k + 1)Ci, a

period equal to its worst-case deadline, i.e. T0

i = WD0i, a worst-case deadline WD0igiven by

WD0i= WDi+

½

0 k = 0

kTi− AJiotherwise, (5)

1 A level-i active period is the longest interval in which the sum of pending loads is higher than 0 for tasks with a priority equal to or higher than the priority of task τi; see [3]. The length of the longest level-i active

period is finite for all 1 ≤ i ≤ n when either (i) the utilization factor UT = ∑

1≤ j≤n

Cj

Tj is smaller than 1 or when (ii) UT is equal to 1, the activation jitter of all tasks ofT are equal to zero, and the least common

(5)

and a best-case deadline BDiequal to its computation time, i.e. BDi= (k + 1)Ci. ¤

Based on Conjecture 1, we find w`3= 3 and BF3= max(2, 9 − 7, 17 − 14) = 3.

Note that for w`i= 1, (4) becomes equal to the solution of (2). Hence, the conjecture

therefore applies for tasks with arbitrary deadlines.

References

1. O. Redell and M. Sandfridson, Exact best-case response time analysis of fixed priority scheduled tasks, Proc. 14thEuromicro Conference on Real-Time Systems, 165-172 (2002)

2. R. Henia, R. Racu and R. Ernst, Improved Output Jitter Calculation for Compositional Performance Anal-ysis of Distributed Systems, Proc. IEEE Int. Parallel and Distributed Processing Symp., 1-8 (2007) 3. R.J. Bril, J.J. Lukkien and W.F.J. Verhaegh, Worst-case response time analysis of real-time tasks

un-der fixed-priority scheduling with deferred preemption, Accepted for Real-Time Systems Journal (2009), http://www.springerlink.com/content/f05r404j63424h27/fulltext.pdf (online).

4. R.J. Bril, L. Cucu-Grosjean and J. Goossens, Exact best-case response time analysis of real-time tasks under fixed-priority pre-emptive scheduling for arbitrary deadlines Accepted for Work-in-Progress session of the 21stEuromicro Conference on Real-Time Systems, (2009).

Referenties

GERELATEERDE DOCUMENTEN

An important real-time constraint in streaming applications is throughput. It determines the maximum input source rate the application can support, or the maximum output data rate

In this paper, we present worst-case and best-case execution times and (absolute) execution jitter analysis of indepen- dent, periodically activated, hard real-time tasks that

We derive expansion laws for the alternative composition, α-conversion, the par- allel composition, and the maximal progress operator for stochastic delays that deal only

deferred execution, a component whose behaviour depends on the contents of the input, a number of simple data-driven components and time driven com- ponent. This type of chain has

Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of

Tijdens ‘Leren aan de Zaan’ spraken Marion Poortvliet (p. 24) ieder vanuit hun eigen betrokkenheid en achtergrond gepassioneerd over de betekenis van Maakonderwijs voor

Uiteraard blijft het nodig om bij een val van diezelfde cliënt met een geaccepteerd valrisico je altijd af te vragen: is hier sprake van een vermijdbare situatie die betrekking

By a double pole is meant the existence of two poles at almost exactly the same frequency, at the same model order, with sometimes the same damping ratio, but in any case with