Constant Bandwidth Servers with Constrained Deadlines

Size: px
Start display at page:

Download "Constant Bandwidth Servers with Constrained Deadlines"

Transcription

1 Consan Bandwidh Servers wih Consrained Deadlines Daniel Casini Scuola Superiore S. Anna isa, Ialy Luca Abeni Scuola Superiore S. Anna isa, Ialy Alessandro Biondi Scuola Superiore S. Anna isa, Ialy ABSTRACT Tommaso Cucinoa Scuola Superiore S. Anna isa, Ialy The Hard Consan Bandwidh Server (H-CBS) is a reservaion-based scheduling algorihm ofen used o mix hard and sof real-ime asks on he same sysem. A number of varians of he H-CBS algorihm have been proposed in he las years, bu all of hem have been conceived for implici server deadlines (i.e., equal o he server period). However, recen promising resuls on semi-pariioned scheduling ogeher wih he demand for new funcionaliy claimed by he Linux communiy, urge he need for a reservaion algorihm ha is able o work wih consrained deadlines. This paper presens hree novel H-CBS algorihms ha suppor consrained deadlines. The hree algorihms are formally analyzed, and heir performance are compared hrough an exensive se of simulaions. CCS CONCETS Compuer sysems organizaion Real-ime operaing sysems; Embedded sofware; KEYWORDS Real-ime scheduling, resource reservaions, emporal isolaion ACM Reference forma: Daniel Casini, Luca Abeni, Alessandro Biondi, Tommaso Cucinoa, and Giorgio Buazzo Consan Bandwidh Servers wih Consrained Deadlines. In roceedings of Inernaional Conference on Real-Time Neworks and Sysems, Grenoble, France, Ocober 2017 (RTNS 17), 10 pages. hps://doi.org/10.475/123_4 1 INTRODUCTION Several real-ime sysems are characerized by muliple compuaional aciviies (asks) ha require o be emporally isolaed among hemselves, meaning ha he emporal behavior of a ask is no affeced by he misbehavior of some oher ask, for insance due o execuion overruns. This is he case of open environmens [24], where independenly developed sofware componens need o be This work has been parially suppored by he RETINA Eurosars rojec E ermission o make digial or hard copies of par or all of his work for personal or classroom use is graned wihou fee provided ha copies are no made or disribued for profi or commercial advanage and ha copies bear his noice and he full ciaion on he firs page. Copyrighs for hird-pary componens of his work mus be honored. For all oher uses, conac he owner/auhor(s). RTNS 17, Ocober 2017, Grenoble, France 2017 Copyrigh held by he owner/auhor(s). ACM ISBN /08/06... $15.00 hps://doi.org/10.475/123_4 Giorgio Buazzo Scuola Superiore S. Anna isa, Ialy giorgio.buazzo@sanannapisa.i execued in isolaion. An effecive approach for achieving emporal isolaion is he resource reservaion mechanism [21], according o which each ask is assigned a fracion of he oal processor capaciy (called reservaion bandwidh). In his way, each ask running in a reservaion wih bandwidh α 1 behaves (from a emporal poin of view) as if i were execuing alone on a virual processor wih speed α imes he one of he physical processor, independenly of he behavior of he asks running in oher reservaions. Resource reservaion is especially useful o execue hard realime asks ogeher wih sof real-ime asks characerized by execuion imes subjec o high variaions (and for which i is difficul o find an upper bound) [9]. Resource reservaion is also adoped o implemen hierarchical scheduling [6, 24], where each reservaion can handle one or more asks and schedule hem according o a local scheduling policy. A reservaion is ypically implemened hrough a reservaion server, which is a kernel mechanism ha manages he reservaion bandwidh by allocaing a ime budge Q every period for he execuion of he served asks. Several reservaion servers have been proposed in he real-ime lieraure using differen policies for managing he budge, boh under fixed-prioriy schedulers and he Earlies Deadline Firs (EDF) algorihm [11]. Exising deadlinebased servers have no been designed o manage consrained deadlines. However, recen resuls on semi-pariioned scheduling [8, 13] highlighed he need for ad-hoc soluions considering reservaion servers having deadlines lower han heir reservaion periods. In fac, in hese works, whenever a reservaion canno be allocaed in any processor, i is spli ino muliple chunks using he C=D spliing scheme [10]. According o his scheme he resuling chunks have always a consrained deadline, hus implicily requiring reservaion servers wih a relaive deadline shorer han heir period. The need for a heoreically sound framework for deadline-consrained reservaions has also recenly come ou 1 in he conex of on-going developmens of he SCHED_DEADLINE scheduling class of he Linux kernel [19]. Conribuions. This paper proposes hree novel exensions o he popular Hard Consan Bandwidh Server (H-CBS) [7], in order o cope wih consrained deadlines: he firs one allows for ensuring he same wors-case guaranees as a sporadic real-ime ask ha is configured wih he same parameers of he server; he second and hird ones build upon a sufficien schedulabiliy es o improve he server performance in erms of average-case and 1 hps://lkml.org/lkml/2017/2/10/611

2 Figure 1: T sbf i () RTNS 17, Ocober 2017, Grenoble, France probabilisic merics, hus being more suiable for sof real-ime sysems. The presened approaches are compared boh in erms of analyical properies and empirical performance by simulaion. aper Srucure. The paper is organized as follows. Secion 2 inroduces he sysem model, he adoped noaion, and reviews he needed background. Secion 3 presens a general formulaion o describe differen varians of he H-CBS algorihm. Secion 4 highlighs shorcomings of exising sae-of-he-ar reservaion algorihms when dealing wih consrained deadlines. Secion 5 presens he novel reservaion algorihms exending he H-CBS o work wih consrained deadlines. Secion 6 presens some simulaion resuls for validaing he proposed approach. Finally, Secion 7 draws he conclusions and illusraes possible fuure work on he opic. 2 SYSTEM MODEL AND BACKGROUND This paper considers an arbirary number of virual processors running ino a pariioned muliprocessor sysem. Each virual processor is implemened by a reservaion server r i = (Q i, D i, i ) characerized by a budge Q i, a relaive deadline D i, and a period i. Each reservaion server has a bandwidh α i = Q i i and a consrained deadline less han or equal o is period (D i i ). If R k is he se of reservaions running on he k-h physical processor, is oal uilizaion is U k = r i R k α i. The workload running ino a reservaion r i consiss of a se Γ i of sporadic asks scheduled according o a local scheduling policy, where each ask τj i is characerized by a wors-case execuion ime C i j, a relaive deadline Di j, and a periodti j. For he sake of simpliciy, he superscrip in ask parameers denoing he reservaion will be omied when referring o a generic reservaion or i is clear from he conex. The server index is also removed whenever a single reservaion server is considered. Reservaion servers are assumed o be scheduled according o preempive EDF and asks are assumed o exchange daa hrough asynchronous (i.e., non blocking) communicaion mechanisms. In his paper, he proposed formulaions for handling servers wih consrained deadline are based on he H-CBS algorihm. 2.1 Background A reservaion server, alhough guaraneeing a desired bandwidh α i, may inroduce variable execuion delays on he served asks due o he fac ha, once he budge is exhaused, he server s asks will no be scheduled unil he nex replenishmen ime. The wors-case service delay i depends on he server parameers and he used budge managemen policy. Having a bounded wors-case service delay is a fundamenal propery for guaraneeing he schedulabiliy of he workload execuing inside he server [22]. In his work, a server is said o implemen a hard reservaion if i is able o guaranee boh a bandwidh α i and a wors-case (bounded) service delay i Server Schedulabiliy. The schedulabiliy of a consraineddeadline reservaion server can be verified hrough he rocessor Demand Crierion (DC) [3]. The DC builds on he concep of 2 Noe ha his definiion differs o he one proposed by Rajkumar e al. [23]. 2Q i Q i dbf i () C i 0 i 0 D i D. Casini e al. dbfi e (, i, E i ) Figure 1: Approximae C i + demand c i bound funcion of a sporadic ask C i demand bound funcion (dbf), 0 which α i in E α i + D i ihis case represens he wors-case compuaional demand of a reservaion (b) in any inerval [0, ]. When he dbf demand e i (, i, of E a i ) server does no exceed he one of a sporadic ask wih he same parameers, is dbf becomes: 2C i + i D i db f i () C= i Q i, (1) i The processor demand crierion 0 isdrecalled i α i in E α i + D i itheorem 2.1. (d) Theorem 2.1 (rocessor Demand Crierion (From [3])). A se R of consrained-deadline reservaions, whose demand does no exceed he one of a sporadic ask wih he same parameers, is EDFschedulable iff D, db f i () τ σ i R Q Q + σ 2Q wih D = r i R { = D i + f T i : L f N 0 }, where L is he maximum analysis inerval (see [3, 25] for more deails abou L )). The DC has a pseudo-polynomial compuaional complexiy if U < 1 (exponenial if U = 1). Sufficien polynomial-ime schedulabiliy ess for consrained-deadline reservaions can be derived by exploiing approximae demand bound funcions as defined by Fisher e al. [18]. Such approximae demand bound funcions wih a single disconinuiy (see Figure 1) are defined as follows: { Qi + α db f i () = i ( D i ) if D i, dbf T (2) 0 i () oherwise. A sufficien es exploiing he definiion of db f i () is repored below. Theorem 2.2. A reservaion 4C i se R k of periodic consrained-deadline reservaions wih U 1 is EDF-schedulable 3C i if r 2C i R k, αi + α j 1 (3) C i r j R:j i D j D i wih α 0 D i = Q i D i i, and T i + D i 2T i + D i 3T i + D i Qi = Q i + α j ( j D j ) r j R k :j i D j D i roof. From Theorem 2.1, if 0 r i R k db f i () holds, hen he sysem is schedulable. By definiion, db f i () db f i (). Hence, if 0 τ i R k db f i () holds, hen he sysem is schedulable. The funcion db f i () is characerized by a disconinuiy a = D i and by a linear par wih slope α i for > D i. Then, he funcion db f () = r i R k db f i () is consiued by a sequence of n = R disconinuiies. Le δ 1,..., δ n be he ordered sequence of disconinuiies. Since in any inerval [δ i, δ i+1 ] he funcion db f () is eiher consan or linear (wih a slope less or equal

3 τ 4 τ 4 arrives Consan Bandwidh Servers wih Consrained Deadlines Figure 1: Transien Example RTNS 17, Ocober 2017, Grenoble, France sbf i () 2Q i Q i 0 i dbf i () Figure 2: Supply bound funcion of a generic periodic reservaion server 2C i C i han U, wih U 1 by0assumpion) D i T i + ind boh i casesi is sufficien o check he condiion db f (δ i ) δ i. Hence, (c) he following es can be considered: dbfi e (, i, E i ) r i CR i k +, c i db f j (D i ) D i. r j R k C i Then, subsiuing he firs branch of Equaion 2 he es becomes: 0 α i E α i + D i i r i R k, Q j + (D i (b) D j ) Q j D i. dbf e r j R k :D i (, i, E j D j i i ) Finally, applying some algebraic ransformaions he condiion can be rewrien as: 2C i C r i i R k, α i + α j 1 r0 j R k D:j i D j i α D i i E α i + D i i The heorem follows. (d) Local schedulabiliy. Guaraneeing he schedulabiliy of he workload running inside a server requires he definiion of he supply bound funcion (sbf). The sbf (shown in Figure 2) models he minimum amoun of ime available in a reservaion r i in every ime σ Q Q + σ 2QOherwise, + σ he server ransis o he IDLE sae. inerval of lengh and can be derived by idenifying he minimum ime allocaed o r i in he wors-case scenario. The ineresed reader can refer o [24] for furher deails. 3 HARD CONSTANT BANDWIDTH SERVERS Across he las wo decades of lieraure on reservaion algorihms, various incarnaions of he H-CBS algorihm have been proposed by differen auhors. To shed he ligh on he exising proposals and provide a common basis for presening he resuls of his work, his secion presens a generalized formulaion of he H-CBS. The formulaion is based on a se of saic rules and anoher se of mea dbf T i () some even. The server is assumed o keep rack of he sae of he workload (pending or ready). As long as i has ready workload o execue, he server is agnosic wih respec o he execuion requess of he workload, which are managed according o an inernal (server-independen) policy, such as firs-in-firs-ou (FIFO) or EDF. A generalized formulaion for he H-CBS. A H-CBS server is described by hree parameers (Q, D, ), where Q is he maximum server budge, D is he server relaive deadline, and is he server period (also named as he reservaion period). The server works by racking wo dynamic sae variables: he curren budge q (also known as runime) and he scheduling deadline d (also known as server absolue deadline). A any poin in ime, he server can be in one of he following saes: IDLE, READY, and THROTTLED. The H-CBS algorihm relies on EDF scheduling and is subjec o he following rules: R1 Iniially he server is in he IDLE sae, where he budge and he scheduling deadline are iniialized o (q,d) = (0, 0). R2 When he server sars having ready workload o execue a ime : If he server is in he IDLE sae, a new budge and scheduling deadline are generaed as (q,d) = generae(q,d, ). Then, he server will ransi o he READY sae a ime w = wakeup(q,d, ). R3 A any poin in ime, he server in he READY sae ha has he earlies scheduling deadline d is seleced for execuion. R4 Whenever he server execues he workload for δ ime unis, is budge is decreased as q = q δ. Furhermore, he server noifies he consumed budge o he sysem by means of he funcion accoun(δ,d). R5 When he budge exhauss (i.e., q = 0), he server ransis o he THROTTLED sae. R6 While a server is in he THROTTLED sae, a ime p = d + D (end of he curren reservaion period) he server budge is recharged o q = Q and a new scheduling deadline is assigned as d = d +. Sill a ime p, if he server has ready workload o execue, hen i ransis o he READY sae. R7 Whenever he server is in he READY sae and sops having ready workload o execue, i ransis o he IDLE sae. 3.1 The classic H-CBS Among all he proposals, he mos common varian of he H-CBS was firs proposed by Marzario e al. [20] in 2004, and laer reformulaed by Abeni e al. [2]. Such an algorihm was designed for implici deadlines only and can be expressed by defining generae(q,d, ) as follows: { q (q,d) if < d generae(q, d, ) = rules. Such mea rules, which allow differeniaing beween he various versions, are hen discussed o insaniae he exising varians Also, wakeup(q,d, ) = and accoun(δ,d) has no effec. (Q, + ) oherwise. of he H-CBS, as well as he novel ones proposed in Secion 5 o In 2014, Biondi e al. [7] showed ha his formulaion is affeced cope wih consrained deadlines. by a schedulabiliy issue whenever he H-CBS is adoped in conjuncion o oher scheduling mechanisms ha can inroduce blocking A served workload is said 4C i o be pending from he ime i is released (i.e., enering an empy 3C i service queue) o he ime a which imes (e.g., non-preempive secions, locking proocols, ec.), hus i complees is execuion 2C (i.e., i leaving he service queue empy). perurbing he sandard EDF scheduling of he servers. The auhors also proposed a soluion o he idenified issue, which can be Furhermore, he workloadc is i said o be ready when i is pending and can make progress, ha is, i is no suspended waiing for 0 expressed by defining D i T i + D i 2T i + D i 3T i + D i wakeup(q, d, ) = min(, d q/α) and { q (Q,d generae(q, d, ) = α + ) if < d q α, (5) (Q, + ) oherwise. As i can be noed by looking a he differences beween (4) and (5), he laer formulaion always recharges he budge a he maximum value Q. The difference in he wakeup(q,d, ) funcion was provided o guaranee a bounded service delay of 2( Q). α, (4) 1

4 (b) D RTNS 17, Ocober 2017, Grenoble, France 3.2 The revised H-CBS While he radiional H-CBS algorihm ries o re-use he curren budge (and generaes a new scheduling deadline when he curren budge is no usable), he revised H-CBS [1] (again, defined for D = ), insead, ries o re-use he curren scheduling deadline as much as possible (a he cos of decreasing he budge) and is based on he following definiion of he generae() funcion: generae(q,d, ) = (max{q, Q (d )},d) (6) Moreover, wakeup(q,d, ) = and accoun(δ,d) has no effec. 3.3 The H-CBS-SO algorihm The self-suspending ask model [14] has been inroduced o capure possible self-suspensions of he execuion (waiing for some even) ha are explicily caused by he ask behavior, i.e., no imposed by he scheduler or oher scheduling mechanisms. Represenaive applicaions of such a model are in he conex of semaphore-based locking proocols or in he use of hardware acceleraors. Noably, self-suspending asks received a lo of aenion in he las years, being he corresponding schedulabiliy analysis challenging and affeced by several flaws in he lieraure [15]. A simple approach o analyze self-suspending asks is he suspension-oblivious analysis, where suspension imes are pessimisically accouned as execuion imes for he purpose of checking he sysem schedulabiliy. In 2015, Biondi e al. [4] showed ha he suspension-oblivious analysis is no compaible wih he sandard H-CBS algorihm. To reconcile he H-CBS algorihm wih a simple analysis for selfsuspending asks, he same auhors proposed a varian of he H-CBS denoed as H-CBS-SO (H-CBS for suspension-oblivious analysis). The H-CBS-SO mainains a logical queue, denoed as SS-QUEUE, ha keeps rack of he servers ha have pending bu no ready workload. The SS-QUEUE follows he EDF ordering. The key difference wih respec o he sandard H-CBS (boh he formulaions presened in Secion 3.1 are compaible) lies in he accoun(δ, d) funcion, which in he H-CBS-SO is defined as: { qss = q accoun(δ, d) = SS δ if d SS d, (7) no effec oherwise; where q SS and d SS denoe he budge and he deadline of he server a he head of he SS-QUEUE, respecively. The servers ino he SS-QUEUE are subjec o rules R5 and R6 described in Secion 3, wih he only difference ha in rule R6 he server does no ransis o he READY sae (noe ha, according o rule R7, a server is in he IDLE sae as long as i is ino he SS-QUEUE). Furhermore, whenever a server leaves he SS-QUEUE, rule R1 is no riggered. 4 ROBLEM DEFINITION The main objecive of his work is he developmen of a reservaion server wih he following feaures: (i) providing he budge o he server load wihin a relaive deadline less han or equal o he server period; (ii) guaraneeing a leas a budge Q every period ; (iii) guaraneeing a bounded wors-case service delay ; and (iv) guaraneeing he schedulabiliy of a se of such servers. Noe ha such feaures canno be achieved by using he radiional formulaions of he Hard Consan Bandwidh Server, because heir mea rules D < D = D < D < Figure 2: H-CBS: = Wors + D Case 2Q Delay Q Q D. Casini e al. Q = 2( Q) Q Figure 1: H-CBS: Wors Case Delay (a) = ( ɛ) + (D Q) + D Q Figure ɛ 3: H-CBS: Wors Case Delay Q D = Figure 3: Wors-case Figure 1: delays H-CBS: considering: 1Wors Case Delay (a) he original H- CBS (D=); (b) a soluion which discards he budge whenever he server becomes IDLE. Inse (c) shows he desirable = ( ɛ) + (D Q) (a) + D Q ɛ Q wors-case delay Figure wih 3: consrained H-CBS: Wors deadlines. Case Delay D < (c) (b) = + D 2Q Figure Q 2: H-CBS: Wors Case Delay Q Q = 2( Q) D Q D (e.g., see Equaion 4) leverage uilizaion-based (b) EDF schedulabiliy heory, which is valid only for implici deadlines. The insaniaion Figureof 2: such H-CBS: mea-rules Wors Case is obained Delay manipulaing he condiion U 1 which is necessary and sufficien o guaranee schedulabiliy when dealing wih implici deadlines. For his reason, if any server simply execues according o is bandwidh Q = 2( Q) Q he sysem is implicily schedulable. A naive soluion ha avoids leveraging D = any specific schedulabiliy es could consider o deplee he whole budge whenever a reservaion server remains wihou ready workload. According o his 1 approach, wakeup(q, d, ) = and accoun(δ,d) has no effec. Also, (a) generae(q,d, ) is defined as: (c) Figure 3: H-CBS: { (0,d) Wors Case if Delay < d D +, generae(q, d, ) = (Q, + D) oherwise. In doing so, however, he wors-case service delay would be much higher han he one ha would be experienced wih a radiional H-CBS (shown in Figure 3, inse (a)). Inse (b) of Figure 3 illusraes he wors-case service delay of such a naive soluion. The desirable wors-case service delay of a consrained-deadline server is shown in Figure 3, inse (c). A second naive soluion could consis in seing he period of a classical H-CBS equal o he relaive deadline D hus leveraging he so called densiy-based schedulabiliy es. For insance, Equaion 4 could be reused considering D in place of and he raio Q D in place of 1 α. Unforunaely, he condiion r i R Q i D i 1 is only sufficien o guaranee servers schedulabiliy and highly pessimisic. In paricular, when using a consraineddeadline server in he conex of C=D Semi-ariioned scheduling, a single zero-laxiy reservaion would occupy a whole processor! The nex secion proposes new soluions for reservaion servers ha can be used in his conex. D D (8)

5 Consan Bandwidh Servers wih Consrained Deadlines 5 ROOSED SOLUTIONS This secion presens hree soluions for realizing a H-CBS server wih consrained deadlines. The firs one is based on he H-CBS-SO algorihm presened in Secion 3.3, and ensures he server schedulabiliy wih any safe schedulabiliy es for EDF wih consrained deadlines. The second one explicily builds upon he sufficien EDF schedulabiliy es of Theorem 2.2 and is objecive is o improve he server performance wih respec o he firs soluion, in erms of probabilisic performance merics (such as deadline-miss raio of sof real-ime workload, response ime perceniles, ec.) and average-case performance (such as average hroughpu). Finally, an improved varian of he second soluion is also presened, which adops he same raionale of he revised H-CBS presened in Secion 3.2. Finally, differences among he proposed soluions are discussed. 5.1 A soluion based on H-CBS-SO As illusraed in Secion 4, he key issue wih he exising H-CBS formulaions concerns he case in which a server is suspended due o he lack of ready workload o execue. A simple insigh can be leveraged o overcome such an issue: since he H-CBS-SO was conceived o deal wih self-suspending asks running upon he server, a safe behavior can be achieved by reaing any server suspension in he same manner. The resuling algorihm is named as H-CBS D -W and is defined as follows. Firs, a logical EDF-ordered queue, named S-QUEUE, is provided. Whenever a server ransis o he IDLE sae, hen i is insered ino he S-QUEUE. The same definiion of he accoun(δ, d) funcion repored in Equaion (7) is adoped, where in his case q SS and d SS are respecively he budge and he deadline of he server a he head of he S-QUEUE. Analogously o he H-CBS-SO, he servers ino he S-QUEUE are subjec o rule R5. Also, when rule R5 applies o a server, he laer is removed from he S-QUEUE. Finally, he following definiions are adoped o insaniae he mea-rules inroduced in Secion 3 for a server r i : wakeup(q, d, ) = (9) and { (q,d) if ri is ino he S-QUEUE, generae(q, d, ) = (Q i, + D i ) oherwise. (10) The following lemma shows ha his approach makes he H- CBS D -W compaible wih any EDF schedulabiliy es for consraineddeadline sporadic asks. Lemma 5.1. If he H-CBS D -W is adoped, he processor demand of a reservaion r i R k never exceeds he one of a consraineddeadline sporadic ask wih wors-case execuion ime Q i, minimum iner-arrival ime i and relaive deadline D i. roof. As long as a reservaion has ready workload, rules R5 and R6 guaranee ha a server r i (i) does no execue for more han Q i ime unis every period i, and (ii) will always have a relaive deadline equal o D i. Whenever a server sops having ready workload, according o he definiion of he H-CBS D -W, he server is insered ino he S-QUEUE, where i is sill subjec o rule R5, so prevening r i o consume more han Q i budge unis wihin is RTNS 17, Ocober 2017, Grenoble, France curren period. Such rules ake effec because he budge of r i is decremened by he accoun(δ, d) funcion whenever a sporadic ask wih he same parameers of r i would have execued according o EDF (i.e., when r i is a he head o he S-QUEUE and is deadline is shorer han all he ones of he servers ha are in he READY sae). By he definiion of he generae(q,d, ) funcion, he server parameers do no change if r i resars having ready workload when i is ino he S-QUEUE. Finally, consider he case in which r i is no ino he S-QUEUE and resars having ready workload a ime. Le p be he end of he r i s reservaion period in which r i sopped having ready workload (enering he S-QUEUE). If p, hen according o Equaion (10) he server resars execuing wih budge Q i and deadline + D i : noe ha his behavior is compaible wih a sporadic arrival of a ask configured wih he same parameers of r i. Oherwise, if < p, hen r i mus be in he THROTTLED sae and hence canno execue unil ime p, as a corresponding sporadic ask would do. The following lemma bounds he maximum service delay of a H-CBS D -W server. Lemma 5.2. Consider a se R k of H-CBS D -W reservaions ha are EDF-schedulable. The service delay of each server r i R k is no larger han i = i + D i 2Q i. roof. Consider workload released a ime o be execued upon a server r i. The service delay is maximized in he scenarios where (i) r i has no available budge a ime ; and (ii) he following periodic insance of he server, beginning a ime p, sars providing service o he workload as lae as possible wihou violaing he server schedulabiliy, i.e., a ime p +D i Q i. Among such scenarios, he wors-case service delay occurs when he disance beween imes and p + D i Q i is maximal, which happens when (i) he firs insance (beginning a ime p i ) deplees all is budge as soon as possible and (ii) ime coincides wih he earlies ime in which such a budge is depleed. Following he definiion of he H-CBS D -W, he budge is consumed only when he server provides service or by means of he accoun(δ, d) funcion (see Equaion (7)). In boh he cases, he even discussed in (ii) canno happen before ime = p i + Q i. The corresponding delay resuls equal o (p + D i Q i ) (p i + Q i ) = D i + i 2Q i and is illusraed in Figure 3-c. The above wo lemmas imply ha he H-CBS D -W algorihm (i) guaranees he highes wors-case schedulabiliy performance, as he server behaves no worse han a sporadic ask, and (ii) provides he shores possible wors-case service delay, as idenified in Secion 4. However, hese feaures come a he cos of consuming he server budge even when he server is no acually execuing (noe ha rule R4 may perform a double budge accouning by means of he accoun(δ,d) funcion). This drawback leaves room for improvemen in erms of average-case performance and oher merics ha are no relaed o he wors-case server behavior. A pragmaic improvemen. A possible way o ge rid of he double budge accouning inroduced by he H-CBS D -W algorihm may consis in adoping a mechanism similar o he one proposed in he CASH [12] algorihm. CASH was designed for reclaiming unused budge a run-ime and relies on an EDF-ordered queue of

6 RTNS 17, Ocober 2017, Grenoble, France D. Casini e al. servers wih spare budge. For insance, he CASH mechanisms can be inegraed wih he H-CBS D -W by considering he servers ino he S-QUEUE as servers wih spare budge, and conexually (and carefully) revising he budge accouning rules of he server wihou affecing he wors-case performance of he server. Due o lack of space, his alernaive is lef as a conjecure o be invesigaed in fuure work. 5.2 An analysis-based soluion The key idea of he algorihm proposed in his secion is o leverage a schedulabiliy es for consrained-deadlines servers o solve he problem idenified in Secion 4. This new algorihm is denoed as H-CBS D. As discussed in Secion 2.1.1, he exac schedulabiliy es under EDF wih consrained deadlines (Theorem 2.1) has a pseudo-polynomial complexiy. Therefore, if such a es is used as a heoreical foundaion o develop some algorihmic rules of he H- CBS D, hen he resuling algorihm would in urn require a pseudopolynomial complexiy, hus poenially leading o a high run-ime overhead. To keep he algorihm overhead low, hence favoring is pracical applicabiliy, i is possible o leverage he (sufficien) linear-ime schedulabiliy es presened in Theorem 2.2. Noe ha his choice impacs on he admission es o be adoped for each reservaion r i R k, which mus be based on Theorem 2.2: clearly, his reduces he schedulabiliy performance of he sysem wih respec o he case considered in he previous secion. The H-CBS D explois Theorem 2.2 o design a new generae funcion for he generalized H-CBS formulaion in Secion 3. The wakeup(q, d, ) = and accoun(δ, d) funcions have no effec, meaning ha (i) he budge is always immediaely available as soon as i is recharged and ha, (ii) he budge is no decreased when he server is IDLE. Deriving he generae funcion. Given a se of reservaion servers R k, a any poin in ime each reservaion r i R k is characerized by a pair of dynamic sae-variables: he absolue deadline d i and he curren budge q i. When such parameers are used for a differen ime insan, say, hey are referred o as q i and d i. The goal of he following paragraphs is o derive a proper definiion for he generae funcion by exploiing such dynamic parameers. Firs, Lemma 5.3 is provided o bound he demand generaed by a H- CBS D server wihin a ime inerval in which he generae funcion is no invoked. Then, such a bound is used o derive a schedulabiliy es (Lemma 5.4) for he sysem wihin he same inerval of ineres. Finally, Lemma 5.4 is used o derive a definiion for he generae funcion ha guaranees o always assign a schedulable pair (q,d). Lemma 5.3 (Run-ime demand funcion). Le be an arbirary poin in ime afer a call o generae(). Le > he firs ime afer in which rule R2 riggers a call o he generae funcion for reservaion r j. Then, <, he processor demand of r j is bounded by is run-ime demand funcion, defined as: { rd f j (,q j q,d j ) = j + α j ( d j ) if d j 0 oherwise (11) where q i and d i are he curren budge and he curren absolue deadline a ime, respecively. roof. Similarly as argued in he proof of Lemma 5.1, as long as he server has ready workload, rules R5 and R6 guaranee ha he server behaves as a sporadic ask wih he same parameers of he server. As a consequence, for [,d j ), he generaed demand is zero, as he firs insance of he server wihin [, ] has deadline a ime d j. Since he inerval of ineres sared a ime, where he budge of r j is q j, he demand generaed in [,d j ] is q j Q i. By exploiing he linear demand approximaion inroduced in Equaion (2), from ime d j on, he demand of r j can be bounded as q j + α i ( d j ). A any poin in ime, if he server sops having pending workload, i eiher ransis o he IDLE sae or i is in he THROTTLED sae. Consider he firs case. To coninue o generae workload, he server mus ransi back o he READY sae, which however involves a call o generae() (see rule R2). By hypohesis, his canno happen in [, ). Similarly, if he server is in he THROTTLED sae, by rule R6 i will ransi o he IDLE sae as soon as is budge is replenished: herefore, he same argumen used above applies. The lemma follows. To reduce cluer when presening he following resuls, he funcion sae(r i, ) is defined o reurn he sae of server r i a ime. Furhermore, he following reservaion sub-ses are defined: R r k ( ) = {r i R k : sae(r i, ) = READY}, and Rk w ( ) = {r i R k : sae(r i, ) = THROTTLED r i has ready workload} Saring from Lemma 5.3, Lemma 5.4 is derived wih he aim of formulaing a novel definiion for he generae funcion of H- CBS D. In paricular, given a reservaion r i which is applying rule R2, Lemma 5.4 allows verifying if he use of a given budge and a given absolue deadline guaranees he sysem schedulabiliy. Lemma 5.4. Consider a reservaion se R k ha is schedulable according o Theorem 2.2. Le be an arbirary poin in ime afer a call o generae. Le > he firs ime afer in which any of he servers in R k riggers a call o he generae funcion. The reservaion se does no experience deadline misses < if: D, rd f j (,q j,d j ) + rd f i (,q i,d i )+ r i R w k ( ) db f i ( w i )+ r i {R r k ( )\{r j }} r i {R k \{R r k ( ) R w k ( )}} db f i ( ) (12) where > is he nex ime in which a reservaion r i R k riggers a call o generae(), i w = d i D i + i, D = {d i } {d i + i }, r i R r k ( ) r i R w k ( ) and r i R k, q i andd i are heir curren budge and absolue deadline a ime. roof. The lemma follows from he processor demand crierion recalled in Theorem 2.1 provided ha all he erms in Equaion (12) are valid demand bounds. Under he hypohesis on imes and, by Lemma 5.3 he firs wo erms are valid demand bounds for he reservaion servers in he READY sae (se R k r ( )). A reservaion server r i in he THROTTLED sae wih absolue deadline d i will experience a full budge replenishmen a i w = d i D i + i, and canno generae demand unil he laer ime. From ime i w, since

7 Consan Bandwidh Servers wih Consrained Deadlines RTNS 17, Ocober 2017, Grenoble, France he generae funcion is no called wihin [, ], is maximum demand is he same of he one generaed by a sporadic ask wih he same parameers of he server, hence is bounded by db f i ( i w ). If a reservaion server r i is in he IDLE sae, i mus call he generae funcion before saring generaing workload. Hence, is demand in he inerval of ineres is always zero, and consequenly he fourh erm is a valid bound. The se D includes all he disconinuiies of he adoped demand bounds. The lemma follows. Lemma 5.4 guaranees he sysem schedulabiliy unil he nex call o generae funcion occurs. The idea of he following resuls is o o use Lemma 5.4 wihin he definiion of he generae funcion o ensure he same schedulabiliy condiion also when generae is called. Le q and d o be he vecor of budges and deadlines for reservaions r i {R k r \ {r j }} a ime, respecively. Based on Lemma 5.4, i is possible o define a funcion o deermine wheher a pair (q j,d j ) can be used by a reservaion server r j wihou affecing he sysem schedulabiliy: { check(q,d rue if Lemma 5.4 is saisfied,q j,d j ) = false oherwise Then, he generae funcion is defined as follows (for a sake of simpliciy and homogeneiy wih respec o previous formulaions we omi he dependency from some parameers): generae(q j,d j, ) = (q j,d j ) if check(q,d,q j,d j ) < d j (Q j, + D j ) if check(q,d,q j,d j ) check(q,d, Q j, j D, ) < d j (max(0,q j ),d j ) oherwise where D j = + D j, and q j = Q j ( (d j D j )). The raionale behind his funcion is ha: (13) (1) The check funcion can be used o verify wheher he curren budge q j can be safely re-used mainaining he curren absolue deadline d j. (2) Oherwise, check is used o verify wheher is safe o perform a full budge replenishmen q j = Q j a he curren ime, wih deadline + D j. (3) Finally, if he firs wo iems fail, he deadline remains unchanged and he curren budge is se o he value ha i would have reached if i always execued in [d j D j,min(d j D j + Q j, )] Wih he algorihm definiion in place, Lemma 5.5 guaranees he schedulabiliy of H-CBS D. Lemma 5.5 (Safey in he wors case behavior). The budge and absolue deadline pairs assigned by generae as defined for he H-CBS D does no violae schedulabiliy. roof. Since Lemma 5.4 guaranees schedulabiliy unil he nex call o generae occurs and he generae funcion uses Lemma 5.4, he safey of he firs wo cases of Equaion (13) is auomaically guaraneed. Considering he hird branch of Equaion (13), he reservaion server r i which is calling he generae funcion mainains he same deadline d i and a budge q i obained considering ha i execued while i was acually IDLE. I is worh noing ha r i is guaraneed wih a budge q i qi (by means of a previous call o generae which exploied Lemma 5.4, if any, or by he admission es), regardless of he sae of r i. Then, he sysem remains schedulable if r i requires less demand. The lemma follows. Lemma 5.6 shows ha he H-CBS D algorihm guaranees o each reservaion r i a full budge replenishmen and an absolue deadline + D i o each server r i which wakes-up afer a leas i afer he las replenishmen. Lemma 5.6. Whenever H-CBS D is adoped, a any poin in ime such ha d i D i + i, he algorihm guaranees a pair (q i,d i ) = (Q i, + D i ) for each reservaion r i. roof. A he sysem sarup, a pair (qi,d i ) is implicily guaraneed by he admission es (Lemma 2.2). When he firs wo branches of he generae funcion are considered, he reservaion-se is guaraneed exploiing Lemma 5.4. I can be observed ha he proof of Lemma 5.4 would follow also wihou adding he erm: db f i ( ), r i {R r k Rw k } because each reservaion r i {R k r Rw } does no consume budge k a ime. Then, in his case he presence of ha erm is sufficien o reserve a pair (qi,d i ) o each server passing from IDLE o READY a leas afer i since he las replenishmen. Conversely, when considering he hird branch of generae he demand required by a reservaion r i is always lower or equal han he one ha i would required if i would be READY (he budge is consumed even if he reservaion is no acually execuing). Hence, a pair (qi,d i ) is implicily guaraneed by he previous call(if any) o generae which did no use he hird branch, or by he admission es. The lemma follows. As a consequence of Lemma 5.6, he hird branch of he generae funcion is never aken whenever i is called afer a leas i afer he las replenishmen (a leas he condiion for choosing second branch always succeeds). Lemma 5.7 bounds he maximum servicedelay of H-CBS D. Lemma 5.7 (Bounded-delay). Consider a reservaion se R k of H-CBS D reservaions ha are EDF-schedulable. The service delay of each server r i R k is no larger han i = i + D i 2Q i. roof. According o he general H-CBS formulaion presened in Secion 3, whenever new workload arrives a ime while he server is IDLE, generae is called. Le us analyze separaely he wors-case delay of he algorihm when he hree differen branches of he generae funcion are aken. Firs branch. The budge q i is available o be used wihin he absolue deadline d i. The wors-case scenario occurs when he period insance of he server sars execuing as lae as possible, i.e., a ime = d i q i. Hence, he wors-case delay is equal o. Since d i D i, hen = D i. Second branch. A budge Q i is available o be used wihin + D i. In he wors-case he server sars execuing a = + D i Q i, leading o a delay = = D i Q i. Third branch. The budge q is available o be execued wihin he curren absolue deadline d i. By definiion, q is he budge ha he

8 RTNS 17, Ocober 2017, Grenoble, France D. Casini e al. server would has if i always execued from is las replenishmen o ime. The scenario which maximizes he delay occurs when new workload arrives in he firs ime insan in which q = 0 and he following insance of he server execues as lae as possible. This siuaion occurs when he workload arrives a a = d i D i +Q i and he server sars execuing a = d i + i Q i. The wors-case delay in his case is = = d i + i Q i (d i D i +Q i ) = i +D i 2Q i. Finally, he global wors-case delay allowed by he algorihm is = max(,, ) = i + D i 2Q i. The lemma follows. Improving he available budge. Alernaively, he firs branch of generae could be defined o follow a principle similar o he one adoped in he revised CBS [1]: mainain he curren scheduling deadline and use he maximum budge q j allowed by Lemma 5.4. Such a budge can be derived as described in Lemma 5.8. Lemma 5.8. Consider a reservaion se R k ha is schedulable according o Theorem 2.2. Given an absolue ime in which a reservaion r j ransied from IDLE o READY wih an absolue deadline d j, he maximum safe budge q j which preserves he algorihm properies is: q s j = min D d j q j (), where D is defined in Lemma 5.4, and q j () = α j ( d j ) K + (14) wih K = r i {R r k \{r j }} rd f i (,q i,d i ) + r i R w k r i {R r k Rw k } db f i ( ). db f i ( w i )+ roof. The lemma follows direcly as a consequence of Lemma 5.4, wriing rd f j (,q j,d j ) in is exended form (by means of Equaion 12, subsiuing he firs branch of is definiion, and hen considering only absolue-deadlines greaer or equal han d j ) and solving wih respec o q j. In his case he generae funcion is defined as follows: min(q j,max(0,q s j )) if < d j q s j > 0 (Q j, + D j ) if < d j q s j 0 generae(q j,d j, ) = check(q,d, Q j, j D, ) (max(0,q j ),d j ) oherwise where D j = +D j. The algorihm obained by leveraging Lemma 5.8 is named H-CBS D -R. I is worh noing ha using H-CBS D -R each call o generae may cause he calling reservaion o reques a demand higher han he one of a sporadic ask wih parameers (Q j, D j, j ) (bu sill guaraneeing schedulabiliy), hus implemening a sor of budge-reclaiming mechanism. 5.3 Discussion The proposed soluions provide he same wors-case guaranees, namely boh of hem are able o provide he same wors-case delay and o mainain schedulabiliy among servers. However, hey differ in many poins: Applicabiliy. The H-CBS D -W is independen of he schedulabiliy es used for admiing reservaions. This implies ha i can be used boh under global, pariioned and semi-pariioned scheduling. Conversely, he H-CBS D and H-CBS D -R algorihms leverage he approximaed schedulabiliy analysis presened in Lemma 5.4, which is a processor-demand based analysis suiable only for pariioned or semi-pariioned EDF-based scheduling. Moreover, he schedulabiliy es used for admiing reservaion is consrained o be he same as he one presened in Theorem 2.2. Average-case performance. H-CBS D and H-CBS D -R leverage he schedulabiliy analysis o improve he average-case performance and probabilisic merics (ypically used for sof real-ime workload) wih respec o H-CBS D -W. In paricular H-CBS D -R poenially reclaims some spare budge whenever he generae funcion is called. Implemenaion and Complexiy. Algorihm H-CBS D -W can implemen all he mea-rules in consan-ime. On he oher hand, i may require he implemenaion of an addiional server queue, he S-QUEUE. Differenly, H-CBS D and H-CBS D -R do no require addiional daa srucures. Also, wakeup(q,d,) can sill be implemened in consan-ime and accoun(q,d,) does no require any implemenaion. As a drawback, he generae funcion has linear complexiy. 6 SIMULATION RESULTS As previously shown (see Lemmas 5.2 and 5.7), all he algorihms presened in his paper have he same wors-case performance. Whenever each reservaion server is used o schedule a single ask wih wors-case execuion ime smaller han or equal o han he maximum budge, minimum iner-arrival ime larger han or equal o he reservaion period, and he same relaive deadline of he server, hen all is deadlines are guaraneed o be respeced (his is someimes refferred as hard schedulabiliy propery of he CBS). Oherwise, some deadlines can be missed: in his case, he probabiliy o respec or miss a deadline depends on he used algorihm. To es he performance of he hree scheduling algorihms when serving his kind of real-ime asks, an exensive simulaion sudy has been carried ou and is presened in his secion. The algorihms have been esed in a widely variable se of siuaions, by randomly generaing a workload composed by realime asks wih random execuion and iner-arrival imes. The workload running ino each reservaion server consiss of a single sporadic ask τ i. The workload (i.e., he compuaion ime and he iner-arrival ime of each job) is conrolled by he following parameers: (1) The raio C r beween he average compuaion ime c i of a ask τ i and he maximum runime Q i of he server used o schedule i: c i = C r Q i. (2) The raio a beween he average uilizaion of a ask τ i and he uilizaion of he server used o schedule i: c i = a Q i p i i, where p i is he average iner-arrival ime of τ i. (3) The variance of he execuion and iner-arrival imes. The ses of servers and asks used in he simulaions have been generaed as follows. Given n = 5 reservaions 3 and a arge oal uilizaion U = i Q i i, budges and periods have been generaed using he Randfixedsum algorihm [17]. The periods i of he reservaions are disribued beween 5000 and Then, he relaive 3 Simulaions wih a differen number of reservaion servers have been performed, showing ha he number of reservaions does no affec he resuls. Hence, only resuls for n = 5 are repored.

9 Consan Bandwidh Servers wih Consrained Deadlines RTNS 17, Ocober 2017, Grenoble, France deadlines of each reservaion server have been generaed wih uniform disribuion in he inerval [Q i + β( i Q i ), i ], wih β = 0.4. Reservaion ses ha are no schedulable according o Theorem 2.2 have been discarded. All he ses generaed using his approach wih U 0.7 resuled o be schedulable according o Theorem 2.2. For U = 0.75, abou 2% of he generaed reservaions ses are no schedulable according o Theorem 2.2, whereas hey are all schedulable performing an exac schedulabiliy es; he siuaion becomes more ineresing for U = 0.9, when 49% of he generaed server ses are no schedulable according o Theorem 2.2 bu only 16% of he server ses are really no schedulable using an exac es. This fac has an impac on he usabiliy of he proposed algorihms, since (as previously discussed) H-CBS D -W can be used wih any schedulabiliy es while he oher wo algorihms require o use Theorem 2.2 o check he servers schedulabiliy 4. Afer generaing he reservaion-ses, he ask τ i served by each server has been generaed considering variables execuion imes, disribued according o a uniform random variable wih average c i = C r Q i. Similarly, he iner-arrival imes have been considered o be variable and disribued according o a uniform random variable c wih average value p i = i i aq i. The execuion imes are uniformly disribued in [c i sc i 2,c i + sc i 2 ] and he iner-arrival imes are uniformly disribued in [p i sp i 2,p i + sp i 2 ], where cs i = Q i sz, ps i = i sz, and sz is a parameer in he ask se generaion. The relaive deadline of each ask τ i is equal o he relaive deadline of he server used o schedule i. The generaed ses have been simulaed by using even-based simulaor. For each se of parameers, (U, a, C r, sz), 100 differen reservaion-ses have been generaed, and he number of missed deadlines for each ask has been couned. The raio of oal missed deadlines has been compued for each run, averaging resuls over he 100 repeiions (also compuing he 90% confidence inerval). The simulaor has been validaed by esing ses of asks and servers generaed as described above ogeher wih servers ha have been correcly dimensioned o respec he hard schedulabiliy propery of he CBS 5. For hose, he simulaions correcly repored 0 missed deadlines. Impac of he Toal Uilizaion U. In a firs se of simulaions, he impac of he oal servers uilizaion U = i Q i i has been evaluaed by varying U in he inerval [0.5, 1] wih seps of 0.1 while keeping C r, a and sz consan. The simulaions showed ha U had no significan impac on he percenage of missed deadlines. This is consisen wih he emporal isolaion propery provided by he CBS algorihm: he real-ime performance of a ask depends on he parameers of he ask and on he server used o schedule i, bu does no depend on he oher asks and servers running in he sysem. Due o his resul, in he following simulaions he oal uilizaion has been fixed o U = 0.7. Impac of he Server Load. More ineresing is he case in which he varied parameer is he parameer a (which is he raio beween 4 These resuls have been obained by generaing 1000 random ask ses according o he explained algorihm, and checking heir schedulabiliy according o Theorems 2.2 and Q i larger or equal han he wors-case execuion ime of he served ask and i smaller or equal han he minimum iner-arrival ime, wih he same relaive deadline. deadline hi raio deadline hi raio sz= cr=0.6 U= H-CBS D -W 0.2 H-CBS D H-CBS D -R Figure 4: Deadline hi raio vs a. a sz= a=0.6 U= Figure 5: Deadline hi raio vs C r. C r H-CBS D -W H-CBS D H-CBS D -R he average uilizaion of he served ask and he bandwidh of he reservaion: his value can be considered an esimaion of he server load ). When a approaches 1, in he average case he served ask ends o use all he execuion ime provided by he server, wih a significan number of insances exceeding he provided budge and compleing in subsequen periods, hus missing heir deadlines. Decreasing a, he number of respeced deadlines increases. Figure 4 shows he fracion of deadlines ha have been respeced as a funcion of a, wih C r = 0.6 and sz =. For small values of a all he algorihms are able o respec almos all of he deadlines. When a increases, H-CBS D -R coninues o respec a very high percenage of deadlines, because i provides a sor of budgereclaiming, as discussed in Secion 5.3, while he performance of he oher wo algorihms degrade. Since H-CBS R -W decreases he budge of a he server even if he ask does no execue, from Figure 4 i resuls o perform worse. Impac of he Average Execuion Time. Figure 5 shows he fracion of respeced deadlines as a funcion of C r, wih a = 0.6 and sz =. In his siuaion, he performance of H-CBS D and H- CBS D -R are similar, while H-CBS R -W performs slighly worse. All he algorihms are srongly penalized by large C r values. Impac of he Execuion and Iner-Arrival Times Variance. Figure 6 shows he fracion of respeced deadlines as a funcion of sz, wih a = 0.6 and C r = 0.6. Again, H-CBS R -W misses more deadlines han he oher wo algorihms. The plo also shows ha he number of misses deadlines increases wih sz, confirming ha large variances in he execuion and iner-arrival imes have a negaive impac on performance. The above observaions are also confirmed in Figure 7, showing he deadline hi raio vs boh C r and sz, in a summarizing 3D plo spanning across a differen region of he parameers space, wih C r from 0.7 o 1.1, sz from 0.6 o and a = 0.6.

10 RTNS 17, Ocober 2017, Grenoble, France D. Casini e al. deadline hi raio cr=0.6, a=0.60, U= SZ H-CBS D -W H-CBS D H-CBS D -R Figure 6: Deadline hi raio as a funcion of sz. deadline hi raio (a=0.60, U=0.7) H-CBS D -W H-CBS D H-CBS D -R SZ CR Figure 7: Deadline hi raio as a funcion of sz and C r. 7 CONCLUSIONS AND FUTURE WORK This paper proposed hree differen algorihms which exend he Hard Consan Bandwidh Server o work wih consrained deadlines. All he hree algorihms showed having he same wors-case properies. However, he firs one is a generic soluion independen of he adoped schedulabiliy es, whereas he ohers build upon a specific sufficien schedulabiliy es and showed having beer performance in erms of probabilisic merics (i.e., deadline hi raio). In he lieraure, many CBS-based reservaion algorihms were presened, bu none of hem is able o deal wih consrained deadlines. The proposed algorihms can be used as building blocks o efficienly (e.g., in erms of wors-case delay) implemen mechanisms for Semi-ariioned scheduling in real-ime operaing sysems. Fuure research direcions include he suppor for shared resources under consrained-deadline reservaions boh in uniprocessor and muliprocessor plaforms (e.g., exending he BROE proocol [5]) and he evaluaion of he overhead inroduced by means of an implemenaion in a real operaing sysem kernel (e.g., Linux). Moreover, boh H-CBS D and H-CBS D -R could be exended o suppor global scheduling wih bounded ardiness [16]. REFERENCES [1] L. Abeni, G. Lipari, and J. Lelli Consan bandwidh server revisied. In roceedings of he Embed Wih Linux 2014 Workshop (EWiLi 2014) (CEUR Workshop roceedings), Vol Lisboa, orugal. hp://ceur-ws.org/vol-1291 [2] L. Abeni, L. alopoli, C. Scordino, and G. Lipari Resource Reservaions for General urpose Applicaions. IEEE Transacions on Indusrial Informaics 5, 1 (Feb 2009), [3] S. K. Baruah, L. E. Rosier, and R. R. Howell Algorihms and complexiy concerning he preempive scheduling of periodic, real-ime asks on one processor. Real-ime sysems 2, 4 (1990), [4] A. Biondi, A. Balsini, and M. Marinoni Resource Reservaion for Real-ime Self-suspending Tasks: Theory and racice. In roc. of he 23rd Inernaional Conference on Real Time and Neworks Sysems (RTNS 15). ACM, 10. [5] A. Biondi, G. C. Buazzo, and M. Berogna Supporing componen-based developmen in pariioned muliprocessor real-ime sysems. In roceedings of he 27h Euromicro Conference on Real-Time Sysems (ECRTS 2015). Lund, Sweden. [6] A. Biondi, G. C. Buazzo, and M. Berogna Schedulabiliy Analysis of Hierarchical Real-Time Sysems under Shared Resources. IEEE Trans. Compu. 65, 5 (2016), [7] A. Biondi, A. Melani, and M. Berogna Hard Consan Bandwidh Server: Comprehensive Formulaion and Criical Scenarios. In roceedings of he 9h IEEE Inernaional Symposium on Indusrial Embedded Sysems (SIES 2014). isa, Ialy. [8] B. Brandenburg and M. Gul Global Scheduling No Required: Simple, Near-Opimal Muliprocessor Real-Time Scheduling wih Semi-ariioned Reservaions. In roceedings of he 37h IEEE Real-Time Sysems Symposium (RTSS 2016). oro, orugal. [9] B. B. Brandenburg and J. H. Anderson Inegraing Hard/Sof Real-Time Tasks and Bes-Effor Jobs on Muliprocessors. In 19h Euromicro Conference on Real-Time Sysems (ECRTS 07) [10] A. Burns, R. Davis,. Wang,, and F. Zhang ariioned EDF scheduling for muliprocessors using a C=D ask spliing scheme. Real-Time Sysems 48 (2012), [11] G. C. Buazzo Hard Real-Time Compuing Sysems: redicable Scheduling Algorihms and Applicaions, Third Ediion. Springer. [12] M. Caccamo, G. Buazzo, and L. Sha Capaciy sharing for overrun conrol. In roc. of he 21s IEEE conference on Real-ime sysems symposium. Orlando, Florida, USA. [13] D. Casini, A. Biondi, and G. Buazzo Semi-ariioned Scheduling of Dynamic Real-Time Workload: A racical Approach Based On Analysis-driven Load Balancing. In roceedings of he 29h Euromicro Conference on Real-Time Sysems (ECRTS 2017). Dubrovnik, Croaia. [14] J.J. Chen, G. Nelissen, and W.H. Huang A unifying response ime analysis framework for dynamic self-suspending asks. In 28h Euromicro Conference on Real-Time Sysems (ECRTS). IEEE. [15] J.J. Chen, G. Nelissen, W.-H. Huang, M. Yang, K. Blesas B. Brandenburg, C. Liu,. Richard, F. Ridouard, N. Audsley, R. Rajkumar, and D. de Niz Many suspensions, many problems: A review of selfsuspending asks in real-ime sysems. Technical Repor. Faculy of Informaik, TU Dormund. [16] U. M. C. Devi and J. H. Anderson Tardiness bounds under global EDF scheduling on a muliprocessor. In 26h IEEE Inernaional Real-Time Sysems Symposium (RTSS 05). 12 pp [17]. Emberson, R. Safford, and R. Davis Techniques for he synhesis of muliprocessor askses. In roc. of he 2nd Inernaional Workshop on Analysis Tools and Mehodologies for Embedded and Real-ime Sysems (WATERS 2010). Brussels, Belgium. [18] N. Fisher, T.. Baker, and S. Baruah Algorihms for Deermining he Demand-Based Load of a Sporadic Task Sysem. In 12h IEEE Inernaional Conference on Embedded and Real-Time Compuing Sysems and Applicaions (RTCSA 06). Sydney, Ausralia. [19] J. Lelli, C. Scordino, L. Abeni, and D. Faggioli Deadline Scheduling in he Linux kernel. Sofware: racice and Experience 46, 6 (Jun 2016), [20] L. Marzario, G. Lipari,. Balbasre, and A. Crespo IRIS: A New Reclaiming Algorihm for Server-Based Real-Time Sysems. In 10h IEEE Real-Time and Embedded Technology and Applicaions Symposium (RTAS 2004). Torono, Canada. [21] C. W. Mercer, S. Savage, and H. Tokuda rocessor capaciy reserves for mulimedia operaing sysems. In roceedings of IEEE inernaional conference on Mulimedia Compuing and Sysem. Boson, Massachuses, USA. [22] A. K. Mok, X. Feng, and D. Chen Resource pariion for real-ime sysems. In roceedings Sevenh IEEE Real-Time Technology and Applicaions Symposium (RTAS 2001). [23] R. Rajkumar, K. Juvva, A. Molano, and S. Oikawa Resource kernels: A resource-cenric approach o real-ime and mulimedia sysems. In SIE/ACM Conference on Mulimedia Compuing and Neworking. San Jose, CA, USA. [24] I. Shin and I. Lee Composiional real-ime scheduling framework. In roceedings of he 25h IEEE Real-Time Sysems Symposium(RTSS 2004). Lisbon, orugal. [25] F. Zhang and A. Burns Schedulabiliy Analysis for Real-Time Sysems wih EDF Scheduling. IEEE Trans. Compuers 58, 9 (2009),

Vehicle Arrival Models : Headway

Vehicle Arrival Models : Headway Chaper 12 Vehicle Arrival Models : Headway 12.1 Inroducion Modelling arrival of vehicle a secion of road is an imporan sep in raffic flow modelling. I has imporan applicaion in raffic flow simulaion where

More information

Written Exercise Sheet 5

Written Exercise Sheet 5 jian-jia.chen [ ] u-dormund.de lea.schoenberger [ ] u-dormund.de Exercise for he lecure Embedded Sysems Winersemeser 17/18 Wrien Exercise Shee 5 Hins: These assignmens will be discussed a E23 OH14, from

More information

Handling on-line changes. Handling on-line changes. Handling overload conditions. Handling on-line changes

Handling on-line changes. Handling on-line changes. Handling overload conditions. Handling on-line changes ED41/DIT171 - Parallel and Disribued Real-Time ysems, Chalmers/GU, 011/01 Lecure #10 Updaed pril 15, 01 Handling on-line changes Handling on-line changes Targe environmen mode changes aic (periodic) asks

More information

Evaluating the Average-case Performance Penalty of Bandwidth-like Interfaces

Evaluating the Average-case Performance Penalty of Bandwidth-like Interfaces Evaluaing he Average-case Performance Penaly of Bandwidh-like Inerfaces Björn Andersson Carnegie Mellon Universiy ABSTRACT Many soluions for composabiliy and composiionaliy rely on specifying he inerface

More information

Comments on Window-Constrained Scheduling

Comments on Window-Constrained Scheduling Commens on Window-Consrained Scheduling Richard Wes Member, IEEE and Yuing Zhang Absrac This shor repor clarifies he behavior of DWCS wih respec o Theorem 3 in our previously published paper [1], and describes

More information

Chapter 2. First Order Scalar Equations

Chapter 2. First Order Scalar Equations Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.

More information

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal

More information

A methodology for designing hierarchical scheduling systems

A methodology for designing hierarchical scheduling systems A mehodology for designing hierarchical scheduling sysems Giuseppe Lipari and Enrico Bini Absrac When execuing differen real-ime applicaions on a single processor sysem, one problem is how o compose hese

More information

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,

More information

On Measuring Pro-Poor Growth. 1. On Various Ways of Measuring Pro-Poor Growth: A Short Review of the Literature

On Measuring Pro-Poor Growth. 1. On Various Ways of Measuring Pro-Poor Growth: A Short Review of the Literature On Measuring Pro-Poor Growh 1. On Various Ways of Measuring Pro-Poor Growh: A Shor eview of he Lieraure During he pas en years or so here have been various suggesions concerning he way one should check

More information

20. Applications of the Genetic-Drift Model

20. Applications of the Genetic-Drift Model 0. Applicaions of he Geneic-Drif Model 1) Deermining he probabiliy of forming any paricular combinaion of genoypes in he nex generaion: Example: If he parenal allele frequencies are p 0 = 0.35 and q 0

More information

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon 3..3 INRODUCION O DYNAMIC OPIMIZAION: DISCREE IME PROBLEMS A. he Hamilonian and Firs-Order Condiions in a Finie ime Horizon Define a new funcion, he Hamilonian funcion, H. H he change in he oal value of

More information

Expert Advice for Amateurs

Expert Advice for Amateurs Exper Advice for Amaeurs Ernes K. Lai Online Appendix - Exisence of Equilibria The analysis in his secion is performed under more general payoff funcions. Wihou aking an explici form, he payoffs of he

More information

STATE-SPACE MODELLING. A mass balance across the tank gives:

STATE-SPACE MODELLING. A mass balance across the tank gives: B. Lennox and N.F. Thornhill, 9, Sae Space Modelling, IChemE Process Managemen and Conrol Subjec Group Newsleer STE-SPACE MODELLING Inroducion: Over he pas decade or so here has been an ever increasing

More information

Online Appendix to Solution Methods for Models with Rare Disasters

Online Appendix to Solution Methods for Models with Rare Disasters Online Appendix o Soluion Mehods for Models wih Rare Disasers Jesús Fernández-Villaverde and Oren Levinal In his Online Appendix, we presen he Euler condiions of he model, we develop he pricing Calvo block,

More information

SOLUTIONS TO ECE 3084

SOLUTIONS TO ECE 3084 SOLUTIONS TO ECE 384 PROBLEM 2.. For each sysem below, specify wheher or no i is: (i) memoryless; (ii) causal; (iii) inverible; (iv) linear; (v) ime invarian; Explain your reasoning. If he propery is no

More information

ACE 562 Fall Lecture 5: The Simple Linear Regression Model: Sampling Properties of the Least Squares Estimators. by Professor Scott H.

ACE 562 Fall Lecture 5: The Simple Linear Regression Model: Sampling Properties of the Least Squares Estimators. by Professor Scott H. ACE 56 Fall 005 Lecure 5: he Simple Linear Regression Model: Sampling Properies of he Leas Squares Esimaors by Professor Sco H. Irwin Required Reading: Griffihs, Hill and Judge. "Inference in he Simple

More information

1 Review of Zero-Sum Games

1 Review of Zero-Sum Games COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any

More information

Robotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.

Robotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1. Roboics I April 11, 017 Exercise 1 he kinemaics of a 3R spaial robo is specified by he Denavi-Harenberg parameers in ab 1 i α i d i a i θ i 1 π/ L 1 0 1 0 0 L 3 0 0 L 3 3 able 1: able of DH parameers of

More information

An introduction to the theory of SDDP algorithm

An introduction to the theory of SDDP algorithm An inroducion o he heory of SDDP algorihm V. Leclère (ENPC) Augus 1, 2014 V. Leclère Inroducion o SDDP Augus 1, 2014 1 / 21 Inroducion Large scale sochasic problem are hard o solve. Two ways of aacking

More information

Random Walk with Anti-Correlated Steps

Random Walk with Anti-Correlated Steps Random Walk wih Ani-Correlaed Seps John Noga Dirk Wagner 2 Absrac We conjecure he expeced value of random walks wih ani-correlaed seps o be exacly. We suppor his conjecure wih 2 plausibiliy argumens and

More information

Inventory Control of Perishable Items in a Two-Echelon Supply Chain

Inventory Control of Perishable Items in a Two-Echelon Supply Chain Journal of Indusrial Engineering, Universiy of ehran, Special Issue,, PP. 69-77 69 Invenory Conrol of Perishable Iems in a wo-echelon Supply Chain Fariborz Jolai *, Elmira Gheisariha and Farnaz Nojavan

More information

PENALIZED LEAST SQUARES AND PENALIZED LIKELIHOOD

PENALIZED LEAST SQUARES AND PENALIZED LIKELIHOOD PENALIZED LEAST SQUARES AND PENALIZED LIKELIHOOD HAN XIAO 1. Penalized Leas Squares Lasso solves he following opimizaion problem, ˆβ lasso = arg max β R p+1 1 N y i β 0 N x ij β j β j (1.1) for some 0.

More information

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles Diebold, Chaper 7 Francis X. Diebold, Elemens of Forecasing, 4h Ediion (Mason, Ohio: Cengage Learning, 006). Chaper 7. Characerizing Cycles Afer compleing his reading you should be able o: Define covariance

More information

Notes for Lecture 17-18

Notes for Lecture 17-18 U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up

More information

CHAPTER 2 Signals And Spectra

CHAPTER 2 Signals And Spectra CHAPER Signals And Specra Properies of Signals and Noise In communicaion sysems he received waveform is usually caegorized ino he desired par conaining he informaion, and he undesired par. he desired par

More information

Logic in computer science

Logic in computer science Logic in compuer science Logic plays an imporan role in compuer science Logic is ofen called he calculus of compuer science Logic plays a similar role in compuer science o ha played by calculus in he physical

More information

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still. Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in

More information

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes Represening Periodic Funcions by Fourier Series 3. Inroducion In his Secion we show how a periodic funcion can be expressed as a series of sines and cosines. We begin by obaining some sandard inegrals

More information

Exponential Weighted Moving Average (EWMA) Chart Under The Assumption of Moderateness And Its 3 Control Limits

Exponential Weighted Moving Average (EWMA) Chart Under The Assumption of Moderateness And Its 3 Control Limits DOI: 0.545/mjis.07.5009 Exponenial Weighed Moving Average (EWMA) Char Under The Assumpion of Moderaeness And Is 3 Conrol Limis KALPESH S TAILOR Assisan Professor, Deparmen of Saisics, M. K. Bhavnagar Universiy,

More information

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions Muli-Period Sochasic Models: Opimali of (s, S) Polic for -Convex Objecive Funcions Consider a seing similar o he N-sage newsvendor problem excep ha now here is a fixed re-ordering cos (> 0) for each (re-)order.

More information

8. Basic RL and RC Circuits

8. Basic RL and RC Circuits 8. Basic L and C Circuis This chaper deals wih he soluions of he responses of L and C circuis The analysis of C and L circuis leads o a linear differenial equaion This chaper covers he following opics

More information

Approximation Algorithms for Unique Games via Orthogonal Separators

Approximation Algorithms for Unique Games via Orthogonal Separators Approximaion Algorihms for Unique Games via Orhogonal Separaors Lecure noes by Konsanin Makarychev. Lecure noes are based on he papers [CMM06a, CMM06b, LM4]. Unique Games In hese lecure noes, we define

More information

KINEMATICS IN ONE DIMENSION

KINEMATICS IN ONE DIMENSION KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec

More information

Learning a Class from Examples. Training set X. Class C 1. Class C of a family car. Output: Input representation: x 1 : price, x 2 : engine power

Learning a Class from Examples. Training set X. Class C 1. Class C of a family car. Output: Input representation: x 1 : price, x 2 : engine power Alpaydin Chaper, Michell Chaper 7 Alpaydin slides are in urquoise. Ehem Alpaydin, copyrigh: The MIT Press, 010. alpaydin@boun.edu.r hp://www.cmpe.boun.edu.r/ ehem/imle All oher slides are based on Michell.

More information

10. State Space Methods

10. State Space Methods . Sae Space Mehods. Inroducion Sae space modelling was briefly inroduced in chaper. Here more coverage is provided of sae space mehods before some of heir uses in conrol sysem design are covered in he

More information

5. Stochastic processes (1)

5. Stochastic processes (1) Lec05.pp S-38.45 - Inroducion o Teleraffic Theory Spring 2005 Conens Basic conceps Poisson process 2 Sochasic processes () Consider some quaniy in a eleraffic (or any) sysem I ypically evolves in ime randomly

More information

Learning a Class from Examples. Training set X. Class C 1. Class C of a family car. Output: Input representation: x 1 : price, x 2 : engine power

Learning a Class from Examples. Training set X. Class C 1. Class C of a family car. Output: Input representation: x 1 : price, x 2 : engine power Alpaydin Chaper, Michell Chaper 7 Alpaydin slides are in urquoise. Ehem Alpaydin, copyrigh: The MIT Press, 010. alpaydin@boun.edu.r hp://www.cmpe.boun.edu.r/ ehem/imle All oher slides are based on Michell.

More information

Longest Common Prefixes

Longest Common Prefixes Longes Common Prefixes The sandard ordering for srings is he lexicographical order. I is induced by an order over he alphabe. We will use he same symbols (,

More information

Final Spring 2007

Final Spring 2007 .615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o

More information

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page Assignmen 1 MATH 2270 SOLUTION Please wrie ou complee soluions for each of he following 6 problems (one more will sill be added). You may, of course, consul wih your classmaes, he exbook or oher resources,

More information

Particle Swarm Optimization Combining Diversification and Intensification for Nonlinear Integer Programming Problems

Particle Swarm Optimization Combining Diversification and Intensification for Nonlinear Integer Programming Problems Paricle Swarm Opimizaion Combining Diversificaion and Inensificaion for Nonlinear Ineger Programming Problems Takeshi Masui, Masaoshi Sakawa, Kosuke Kao and Koichi Masumoo Hiroshima Universiy 1-4-1, Kagamiyama,

More information

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3 and d = c b - b c c d = c b - b c c This process is coninued unil he nh row has been compleed. The complee array of coefficiens is riangular. Noe ha in developing he array an enire row may be divided or

More information

Numerical Dispersion

Numerical Dispersion eview of Linear Numerical Sabiliy Numerical Dispersion n he previous lecure, we considered he linear numerical sabiliy of boh advecion and diffusion erms when approimaed wih several spaial and emporal

More information

Lecture 4 Notes (Little s Theorem)

Lecture 4 Notes (Little s Theorem) Lecure 4 Noes (Lile s Theorem) This lecure concerns one of he mos imporan (and simples) heorems in Queuing Theory, Lile s Theorem. More informaion can be found in he course book, Bersekas & Gallagher,

More information

Comparing Means: t-tests for One Sample & Two Related Samples

Comparing Means: t-tests for One Sample & Two Related Samples Comparing Means: -Tess for One Sample & Two Relaed Samples Using he z-tes: Assumpions -Tess for One Sample & Two Relaed Samples The z-es (of a sample mean agains a populaion mean) is based on he assumpion

More information

Methodology. -ratios are biased and that the appropriate critical values have to be increased by an amount. that depends on the sample size.

Methodology. -ratios are biased and that the appropriate critical values have to be increased by an amount. that depends on the sample size. Mehodology. Uni Roo Tess A ime series is inegraed when i has a mean revering propery and a finie variance. I is only emporarily ou of equilibrium and is called saionary in I(0). However a ime series ha

More information

Single-Pass-Based Heuristic Algorithms for Group Flexible Flow-shop Scheduling Problems

Single-Pass-Based Heuristic Algorithms for Group Flexible Flow-shop Scheduling Problems Single-Pass-Based Heurisic Algorihms for Group Flexible Flow-shop Scheduling Problems PEI-YING HUANG, TZUNG-PEI HONG 2 and CHENG-YAN KAO, 3 Deparmen of Compuer Science and Informaion Engineering Naional

More information

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes Some common engineering funcions 2.7 Inroducion This secion provides a caalogue of some common funcions ofen used in Science and Engineering. These include polynomials, raional funcions, he modulus funcion

More information

V AK (t) I T (t) I TRM. V AK( full area) (t) t t 1 Axial turn-on. Switching losses for Phase Control and Bi- Directionally Controlled Thyristors

V AK (t) I T (t) I TRM. V AK( full area) (t) t t 1 Axial turn-on. Switching losses for Phase Control and Bi- Directionally Controlled Thyristors Applicaion Noe Swiching losses for Phase Conrol and Bi- Direcionally Conrolled Thyrisors V AK () I T () Causing W on I TRM V AK( full area) () 1 Axial urn-on Plasma spread 2 Swiching losses for Phase Conrol

More information

INTRODUCTION TO MACHINE LEARNING 3RD EDITION

INTRODUCTION TO MACHINE LEARNING 3RD EDITION ETHEM ALPAYDIN The MIT Press, 2014 Lecure Slides for INTRODUCTION TO MACHINE LEARNING 3RD EDITION alpaydin@boun.edu.r hp://www.cmpe.boun.edu.r/~ehem/i2ml3e CHAPTER 2: SUPERVISED LEARNING Learning a Class

More information

Matlab and Python programming: how to get started

Matlab and Python programming: how to get started Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper,

More information

Robust estimation based on the first- and third-moment restrictions of the power transformation model

Robust estimation based on the first- and third-moment restrictions of the power transformation model h Inernaional Congress on Modelling and Simulaion, Adelaide, Ausralia, 6 December 3 www.mssanz.org.au/modsim3 Robus esimaion based on he firs- and hird-momen resricions of he power ransformaion Nawaa,

More information

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8) I. Definiions and Problems A. Perfec Mulicollineariy Econ7 Applied Economerics Topic 7: Mulicollineariy (Sudenmund, Chaper 8) Definiion: Perfec mulicollineariy exiss in a following K-variable regression

More information

) were both constant and we brought them from under the integral.

) were both constant and we brought them from under the integral. YIELD-PER-RECRUIT (coninued The yield-per-recrui model applies o a cohor, bu we saw in he Age Disribuions lecure ha he properies of a cohor do no apply in general o a collecion of cohors, which is wha

More information

CHERNOFF DISTANCE AND AFFINITY FOR TRUNCATED DISTRIBUTIONS *

CHERNOFF DISTANCE AND AFFINITY FOR TRUNCATED DISTRIBUTIONS * haper 5 HERNOFF DISTANE AND AFFINITY FOR TRUNATED DISTRIBUTIONS * 5. Inroducion In he case of disribuions ha saisfy he regulariy condiions, he ramer- Rao inequaliy holds and he maximum likelihood esimaor

More information

Solutions for Assignment 2

Solutions for Assignment 2 Faculy of rs and Science Universiy of Torono CSC 358 - Inroducion o Compuer Neworks, Winer 218 Soluions for ssignmen 2 Quesion 1 (2 Poins): Go-ack n RQ In his quesion, we review how Go-ack n RQ can be

More information

E β t log (C t ) + M t M t 1. = Y t + B t 1 P t. B t 0 (3) v t = P tc t M t Question 1. Find the FOC s for an optimum in the agent s problem.

E β t log (C t ) + M t M t 1. = Y t + B t 1 P t. B t 0 (3) v t = P tc t M t Question 1. Find the FOC s for an optimum in the agent s problem. Noes, M. Krause.. Problem Se 9: Exercise on FTPL Same model as in paper and lecure, only ha one-period govenmen bonds are replaced by consols, which are bonds ha pay one dollar forever. I has curren marke

More information

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details! MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his

More information

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Simulaion-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Week Descripion Reading Maerial 2 Compuer Simulaion of Dynamic Models Finie Difference, coninuous saes, discree ime Simple Mehods Euler Trapezoid

More information

Echocardiography Project and Finite Fourier Series

Echocardiography Project and Finite Fourier Series Echocardiography Projec and Finie Fourier Series 1 U M An echocardiagram is a plo of how a porion of he hear moves as he funcion of ime over he one or more hearbea cycles If he hearbea repeas iself every

More information

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4. PHY1 Elecriciy Topic 7 (Lecures 1 & 11) Elecric Circuis n his opic, we will cover: 1) Elecromoive Force (EMF) ) Series and parallel resisor combinaions 3) Kirchhoff s rules for circuis 4) Time dependence

More information

On Multicomponent System Reliability with Microshocks - Microdamages Type of Components Interaction

On Multicomponent System Reliability with Microshocks - Microdamages Type of Components Interaction On Mulicomponen Sysem Reliabiliy wih Microshocks - Microdamages Type of Componens Ineracion Jerzy K. Filus, and Lidia Z. Filus Absrac Consider a wo componen parallel sysem. The defined new sochasic dependences

More information

Modal identification of structures from roving input data by means of maximum likelihood estimation of the state space model

Modal identification of structures from roving input data by means of maximum likelihood estimation of the state space model Modal idenificaion of srucures from roving inpu daa by means of maximum likelihood esimaion of he sae space model J. Cara, J. Juan, E. Alarcón Absrac The usual way o perform a forced vibraion es is o fix

More information

Overview. COMP14112: Artificial Intelligence Fundamentals. Lecture 0 Very Brief Overview. Structure of this course

Overview. COMP14112: Artificial Intelligence Fundamentals. Lecture 0 Very Brief Overview. Structure of this course OMP: Arificial Inelligence Fundamenals Lecure 0 Very Brief Overview Lecurer: Email: Xiao-Jun Zeng x.zeng@mancheser.ac.uk Overview This course will focus mainly on probabilisic mehods in AI We shall presen

More information

ACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin

ACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin ACE 56 Fall 005 Lecure 4: Simple Linear Regression Model: Specificaion and Esimaion by Professor Sco H. Irwin Required Reading: Griffihs, Hill and Judge. "Simple Regression: Economic and Saisical Model

More information

CENTRALIZED VERSUS DECENTRALIZED PRODUCTION PLANNING IN SUPPLY CHAINS

CENTRALIZED VERSUS DECENTRALIZED PRODUCTION PLANNING IN SUPPLY CHAINS CENRALIZED VERSUS DECENRALIZED PRODUCION PLANNING IN SUPPLY CHAINS Georges SAHARIDIS* a, Yves DALLERY* a, Fikri KARAESMEN* b * a Ecole Cenrale Paris Deparmen of Indusial Engineering (LGI), +3343388, saharidis,dallery@lgi.ecp.fr

More information

R t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t

R t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t Exercise 7 C P = α + β R P + u C = αp + βr + v (a) (b) C R = α P R + β + w (c) Assumpions abou he disurbances u, v, w : Classical assumions on he disurbance of one of he equaions, eg. on (b): E(v v s P,

More information

Chapter 2. Models, Censoring, and Likelihood for Failure-Time Data

Chapter 2. Models, Censoring, and Likelihood for Failure-Time Data Chaper 2 Models, Censoring, and Likelihood for Failure-Time Daa William Q. Meeker and Luis A. Escobar Iowa Sae Universiy and Louisiana Sae Universiy Copyrigh 1998-2008 W. Q. Meeker and L. A. Escobar. Based

More information

Maintenance Models. Prof. Robert C. Leachman IEOR 130, Methods of Manufacturing Improvement Spring, 2011

Maintenance Models. Prof. Robert C. Leachman IEOR 130, Methods of Manufacturing Improvement Spring, 2011 Mainenance Models Prof Rober C Leachman IEOR 3, Mehods of Manufacuring Improvemen Spring, Inroducion The mainenance of complex equipmen ofen accouns for a large porion of he coss associaed wih ha equipmen

More information

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities: Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial

More information

Some Basic Information about M-S-D Systems

Some Basic Information about M-S-D Systems Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,

More information

6.2 Transforms of Derivatives and Integrals.

6.2 Transforms of Derivatives and Integrals. SEC. 6.2 Transforms of Derivaives and Inegrals. ODEs 2 3 33 39 23. Change of scale. If l( f ()) F(s) and c is any 33 45 APPLICATION OF s-shifting posiive consan, show ha l( f (c)) F(s>c)>c (Hin: In Probs.

More information

Inequality measures for intersecting Lorenz curves: an alternative weak ordering

Inequality measures for intersecting Lorenz curves: an alternative weak ordering h Inernaional Scienific Conference Financial managemen of Firms and Financial Insiuions Osrava VŠB-TU of Osrava, Faculy of Economics, Deparmen of Finance 7 h 8 h Sepember 25 Absrac Inequaliy measures for

More information

Seminar 4: Hotelling 2

Seminar 4: Hotelling 2 Seminar 4: Hoelling 2 November 3, 211 1 Exercise Par 1 Iso-elasic demand A non renewable resource of a known sock S can be exraced a zero cos. Demand for he resource is of he form: D(p ) = p ε ε > A a

More information

DEPARTMENT OF STATISTICS

DEPARTMENT OF STATISTICS A Tes for Mulivariae ARCH Effecs R. Sco Hacker and Abdulnasser Haemi-J 004: DEPARTMENT OF STATISTICS S-0 07 LUND SWEDEN A Tes for Mulivariae ARCH Effecs R. Sco Hacker Jönköping Inernaional Business School

More information

Christos Papadimitriou & Luca Trevisan November 22, 2016

Christos Papadimitriou & Luca Trevisan November 22, 2016 U.C. Bereley CS170: Algorihms Handou LN-11-22 Chrisos Papadimiriou & Luca Trevisan November 22, 2016 Sreaming algorihms In his lecure and he nex one we sudy memory-efficien algorihms ha process a sream

More information

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H. ACE 564 Spring 2006 Lecure 7 Exensions of The Muliple Regression Model: Dumm Independen Variables b Professor Sco H. Irwin Readings: Griffihs, Hill and Judge. "Dumm Variables and Varing Coefficien Models

More information

0.1 MAXIMUM LIKELIHOOD ESTIMATION EXPLAINED

0.1 MAXIMUM LIKELIHOOD ESTIMATION EXPLAINED 0.1 MAXIMUM LIKELIHOOD ESTIMATIO EXPLAIED Maximum likelihood esimaion is a bes-fi saisical mehod for he esimaion of he values of he parameers of a sysem, based on a se of observaions of a random variable

More information

Appendix to Creating Work Breaks From Available Idleness

Appendix to Creating Work Breaks From Available Idleness Appendix o Creaing Work Breaks From Available Idleness Xu Sun and Ward Whi Deparmen of Indusrial Engineering and Operaions Research, Columbia Universiy, New York, NY, 127; {xs2235,ww24}@columbia.edu Sepember

More information

Solutions to Odd Number Exercises in Chapter 6

Solutions to Odd Number Exercises in Chapter 6 1 Soluions o Odd Number Exercises in 6.1 R y eˆ 1.7151 y 6.3 From eˆ ( T K) ˆ R 1 1 SST SST SST (1 R ) 55.36(1.7911) we have, ˆ 6.414 T K ( ) 6.5 y ye ye y e 1 1 Consider he erms e and xe b b x e y e b

More information

3.1 More on model selection

3.1 More on model selection 3. More on Model selecion 3. Comparing models AIC, BIC, Adjused R squared. 3. Over Fiing problem. 3.3 Sample spliing. 3. More on model selecion crieria Ofen afer model fiing you are lef wih a handful of

More information

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17 EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive

More information

CHAPTER 12 DIRECT CURRENT CIRCUITS

CHAPTER 12 DIRECT CURRENT CIRCUITS CHAPTER 12 DIRECT CURRENT CIUITS DIRECT CURRENT CIUITS 257 12.1 RESISTORS IN SERIES AND IN PARALLEL When wo resisors are conneced ogeher as shown in Figure 12.1 we said ha hey are conneced in series. As

More information

Chapter 15: Phenomena. Chapter 15 Chemical Kinetics. Reaction Rates. Reaction Rates R P. Reaction Rates. Rate Laws

Chapter 15: Phenomena. Chapter 15 Chemical Kinetics. Reaction Rates. Reaction Rates R P. Reaction Rates. Rate Laws Chaper 5: Phenomena Phenomena: The reacion (aq) + B(aq) C(aq) was sudied a wo differen emperaures (98 K and 35 K). For each emperaure he reacion was sared by puing differen concenraions of he 3 species

More information

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Kriging Models Predicing Arazine Concenraions in Surface Waer Draining Agriculural Waersheds Paul L. Mosquin, Jeremy Aldworh, Wenlin Chen Supplemenal Maerial Number

More information

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t... Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger

More information

A Dynamic Model of Economic Fluctuations

A Dynamic Model of Economic Fluctuations CHAPTER 15 A Dynamic Model of Economic Flucuaions Modified for ECON 2204 by Bob Murphy 2016 Worh Publishers, all righs reserved IN THIS CHAPTER, OU WILL LEARN: how o incorporae dynamics ino he AD-AS model

More information

Lecture 3: Exponential Smoothing

Lecture 3: Exponential Smoothing NATCOR: Forecasing & Predicive Analyics Lecure 3: Exponenial Smoohing John Boylan Lancaser Cenre for Forecasing Deparmen of Managemen Science Mehods and Models Forecasing Mehod A (numerical) procedure

More information

Two Popular Bayesian Estimators: Particle and Kalman Filters. McGill COMP 765 Sept 14 th, 2017

Two Popular Bayesian Estimators: Particle and Kalman Filters. McGill COMP 765 Sept 14 th, 2017 Two Popular Bayesian Esimaors: Paricle and Kalman Filers McGill COMP 765 Sep 14 h, 2017 1 1 1, dx x Bel x u x P x z P Recall: Bayes Filers,,,,,,, 1 1 1 1 u z u x P u z u x z P Bayes z = observaion u =

More information

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes Half-Range Series 2.5 Inroducion In his Secion we address he following problem: Can we find a Fourier series expansion of a funcion defined over a finie inerval? Of course we recognise ha such a funcion

More information

Presentation Overview

Presentation Overview Acion Refinemen in Reinforcemen Learning by Probabiliy Smoohing By Thomas G. Dieerich & Didac Busques Speaer: Kai Xu Presenaion Overview Bacground The Probabiliy Smoohing Mehod Experimenal Sudy of Acion

More information

Errata (1 st Edition)

Errata (1 st Edition) P Sandborn, os Analysis of Elecronic Sysems, s Ediion, orld Scienific, Singapore, 03 Erraa ( s Ediion) S K 05D Page 8 Equaion (7) should be, E 05D E Nu e S K he L appearing in he equaion in he book does

More information

Chapter 7: Solving Trig Equations

Chapter 7: Solving Trig Equations Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions

More information

The Arcsine Distribution

The Arcsine Distribution The Arcsine Disribuion Chris H. Rycrof Ocober 6, 006 A common heme of he class has been ha he saisics of single walker are ofen very differen from hose of an ensemble of walkers. On he firs homework, we

More information

Internet Traffic Modeling for Efficient Network Research Management Prof. Zhili Sun, UniS Zhiyong Liu, CATR

Internet Traffic Modeling for Efficient Network Research Management Prof. Zhili Sun, UniS Zhiyong Liu, CATR Inerne Traffic Modeling for Efficien Nework Research Managemen Prof. Zhili Sun, UniS Zhiyong Liu, CATR UK-China Science Bridge Workshop 13-14 December 2011, London Ouline Inroducion Background Classical

More information

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x WEEK-3 Reciaion PHYS 131 Ch. 3: FOC 1, 3, 4, 6, 14. Problems 9, 37, 41 & 71 and Ch. 4: FOC 1, 3, 5, 8. Problems 3, 5 & 16. Feb 8, 018 Ch. 3: FOC 1, 3, 4, 6, 14. 1. (a) The horizonal componen of he projecile

More information

GMM - Generalized Method of Moments

GMM - Generalized Method of Moments GMM - Generalized Mehod of Momens Conens GMM esimaion, shor inroducion 2 GMM inuiion: Maching momens 2 3 General overview of GMM esimaion. 3 3. Weighing marix...........................................

More information

Lecture 4 Kinetics of a particle Part 3: Impulse and Momentum

Lecture 4 Kinetics of a particle Part 3: Impulse and Momentum MEE Engineering Mechanics II Lecure 4 Lecure 4 Kineics of a paricle Par 3: Impulse and Momenum Linear impulse and momenum Saring from he equaion of moion for a paricle of mass m which is subjeced o an

More information

NCSS Statistical Software. , contains a periodic (cyclic) component. A natural model of the periodic component would be

NCSS Statistical Software. , contains a periodic (cyclic) component. A natural model of the periodic component would be NCSS Saisical Sofware Chaper 468 Specral Analysis Inroducion This program calculaes and displays he periodogram and specrum of a ime series. This is someimes nown as harmonic analysis or he frequency approach

More information