Worst-case execution time

The worst-case execution time (WCET) of a computational task is the maximum length of time the task could take to execute on a specific hardware platform.

What it is used for

Worst case execution time is typically used in reliable real-time systems, where understanding the worst case timing behaviour of software is important for reliability or correct functional behaviour.

As an example, a computer system that controls the behaviour of an engine in a vehicle might need to respond to inputs within a specific amount of time. One component that makes up the response time is the time spent executing the software – hence if the software worst case execution time can be determined, then the designer of the system can use this with other techniques such as schedulability analysis to ensure that the system responds fast enough.

While WCET is potentially applicable to many real-time systems, in practice an assurance of WCET is mainly used by real-time systems that are related to high reliability or safety. For example, in airborne software some attention to software is required by DO178C section 6.3.4. The increasing use of software in automotive systems is also driving the need to use WCET analysis of software.

In the design of some systems, WCET is often used as an input to schedulability analysis, although a much more common use of WCET in critical systems is to ensure that the pre-allocated timing budgets in a partition-scheduled system such as ARINC 653 are not violated.

Calculation

Since the early days of embedded computing, embedded software developers have either used:

  • end-to-end measurements of code, for example performed by setting an I/O pin on the device to high at the start of the task, and to low at the end of the task and using a logic analyzer to measure the longest pulse width, or by measuring within the software itself using the processor clock or instruction count.
  • manual static analysis techniques such as counting assembler instructions for each function, loop etc. and then combining them.

Both of these techniques have limitations. End to end measurements place a high burden on software testing to achieve the longest path; counting instructions is only applicable to simple software and hardware. In both cases, a margin for error is often used to account for untested code, hardware performance approximations or mistakes. A margin of 20% is often used, although there is very little justification used for this figure, save for historical confidence ("it worked last time").

As software and hardware have increased in complexity, they have driven the need for tool support. Complexity is increasingly becoming an issue in both static analysis and measurements. It is difficult to judge how wide the error margin should be and how well tested the software system is. System safety arguments based on a high-water mark achieved during testing are widely used, but become harder to justify as the software and hardware become less predictable.

In the future, it is likely that a requirement for safety critical systems is that they are analyzed using both static and measurement-based approaches.[citation needed]

Considerations

The problem of finding WCET by analysis is equivalent to the halting problem and is therefore not solvable in the general. Fortunately, for the kind of systems that engineers typically want to find WCET for, the software is typically well structured, will always terminate and is analyzable.

Most methods for finding a WCET involve approximations (usually a rounding upwards when there are uncertainties) and hence in practice the exact WCET itself is often regarded as unobtainable. Instead, different techniques for finding the WCET produce estimates for the WCET.[1] Those estimates are typically pessimistic, meaning that the estimated WCET is known to be higher than the real WCET (which is usually what is desired). Much work on WCET analysis is on reducing the pessimism in analysis so that the estimated value is low enough to be valuable to the system designer.

WCET analysis usually refers to the execution time of single thread, task or process. However, on modern hardware, especially multi-core, other tasks in the system will impact the WCET of a given task if they share cache, memory lines and other hardware features. Further, task scheduling events such as blocking or to be interruptions should be considered in WCET analysis if they can occur in a particular system. Therefore, it is important to consider the context in which WCET analysis is applied.

Automated approaches

There are many automated approaches to calculating WCET beyond the manual techniques above. These include:

  • analytical techniques to improve test cases to increase confidence in end to end measurements
  • static analysis of the software (“static” meaning without executing the software).
  • combined approaches, often referred to as “hybrid” analysis, being a combination of measurements and structural analysis

Static analysis techniques

A static WCET tool attempts to estimate WCET by examining the computer software without executing it directly on the hardware. Static analysis techniques have dominated research in the area since the late 1980s, although in an industrial setting, end-to-end measurements approaches were the standard practice.

Static analysis tools work at a high-level to determine the structure of a program's task, working either on a piece of source code or disassembled binary executable. They also work at a low-level, using timing information about the real hardware that the task will execute on, with all its specific features. By combining those two kinds of analysis, the tool attempts to give an upper bound on the time required to execute a given task on a given hardware platform.

At the low-level, static WCET analysis is complicated by the presence of architectural features that improve the average-case performance of the processor: instruction/data caches, branch prediction and instruction pipelines, for example. It is possible, but increasingly difficult, to determine tight WCET bounds if these modern architectural features are taken into account in the timing model used by the analysis.

Certification authorities such as the European Aviation Safety Agency, therefore, rely on model validation suites. [citation needed]

Static analysis has resulted in good results for simpler hardware, however a possible limitation of static analysis is that the hardware (the CPU in particular) has reached a complexity which is extremely hard to model. In particular, the modelling process can introduce errors from several sources: errors in chip design, lack of documentation, errors in documentation, errors in model creation; all leading to cases where the model predicts a different behavior to that observed on real hardware. Typically, where it is not possible to accurately predict a behavior, a pessimistic result is used, which can lead to the WCET estimate being much larger than anything achieved at run-time.

Obtaining tight static WCET estimation is particularly difficult on multi-core processors.

There are a number of commercial and academic tools that implement various forms of static analysis.

Measurement and hybrid techniques

Measurement-based and hybrid approaches usually try to measure the execution times of short code segments on the real hardware, which are then combined in a higher level analysis. Tools take into account the structure of the software (e.g. loops, branches), to produce an estimate of the WCET of the larger program. The rationale is that it's hard to test the longest path in complex software, but it is easier to test the longest path in many smaller components of it. A worst case effect needs only to be seen once during testing for the analysis to be able to combine it with other worst case events in its analysis.

Typically, the small sections of software can be measured automatically using techniques such as instrumentation (adding markers to the software) or with hardware support such as debuggers, and CPU hardware tracing modules. These markers result in a trace of execution, which includes both the path taken through the program and the time at which different points were executed. The trace is then analyzed to determine the maximum time that each part of the program has ever taken to execute, what the maximum observed iteration time of each loop is and whether there are any parts of the software that are untested (Code coverage).

Measurement-based WCET analysis has resulted in good results for both simple and complex hardware, although like static analysis it can suffer excessive pessimism in multi-core situations, where the impact of one core on another is hard to define. A limitation of measurement is that it relies on observing the worst-case effects during testing (although not necessarily at the same time). It can be hard to determine if the worst case effects have necessarily been tested.

There are a number of commercial and academic tools that implement various forms of measurement-based analysis.

Research

The most active research groups are in USA (American Michigan University ), Sweden (Mälardalen, Linköping), Germany (Saarbrücken, Dortmund, Braunschweig), France (Toulouse, Saclay, Rennes), Austria (Vienna), UK (University of York and Rapita Systems Ltd), Italy (Bologna), Spain (Cantabria, Valencia), and Switzerland (Zurich). Recently, the topic of code-level timing analysis has found more attention outside of Europe by research groups in the US (North Carolina, Florida), Canada, Australia, Bangladesh(MBI LAB and RDS), Kingdom of Saudi Arabia-UQU(HISE LAB), Singapore and India (IIT Madras, IISc Bangalore).

WCET Tool Challenge

The first international WCET Tool Challenge took place during the autumn of 2006. It was organized by the University of Mälardalen and sponsored by the ARTIST2 Network of Excellence on Embedded Systems Design. The aim of the Challenge was to inspect and to compare different approaches in analyzing the worst-case execution time. All available tools and prototypes able to determine safe upper bounds for the WCET of tasks have participated. The final results[2] were presented in November 2006 at the ISoLA 2006 International Symposium in Paphos, Cyprus.

A second Challenge took place in 2008.[3]

See also

References

  1. ^ "The worst-case execution-time problem—overview of methods and survey of tools", Wilhelm, Reinhard, et al., ACM Transactions on Embedded Computing Systems (TECS), Vol. 7, No. 3, 2008.
  2. ^ "Archived copy" (PDF). Archived from the original (PDF) on 2011-10-01. Retrieved 2010-08-15.{{cite web}}: CS1 maint: archived copy as title (link)
  3. ^ "WCET Challenge 2008". Archived from the original on 2012-02-16. Retrieved 2008-08-16.

Articles and white papers

Read other articles:

和田 アキ子出生名 金 福子(김복자)別名 和田 現子(帰化後の旧姓)(わだ あきこ)飯塚 現子(再婚後の本名)(いいづか あきこ)生誕 (1950-04-10) 1950年4月10日(73歳)出身地 日本・大阪府大阪市天王寺区舟橋町学歴 城星学園高等学校中途退学ジャンル R&B、ソウル、歌謡曲、ジャズ、J-POP職業 歌手、タレント、司会者、女優、ラジオパーソナリティ、実業家活動期...

 

 

Curtiss YA-10 Shrike Tipo Avión de ataque a tierraFabricante CurtissPrimer vuelo 1932Introducido 1933Retirado 1939Usuario principal Cuerpo Aéreo del Ejército de los Estados UnidosOtros usuariosdestacados Armada de los Estados UnidosN.º construidos 2Desarrollo del Curtiss A-8Desarrollado en Curtiss A-12 Shrike[editar datos en Wikidata] El Curtiss YA-10 Shrike (Model 59B) fue una versión estadounidense de desarrollo y pruebas, de los años 30, del avión de ataque a tierra A...

 

 

Intervensi SwediaBagian dari Perang Tiga Puluh TahunGustavus Adolphus memimpin pasukannya untuk meraih kemenangan di Pertempuran BreitenfeldTanggal1630–1648LokasiDi seluruh Kekaisaran Romawi SuciHasil Kemenangan di pihak Swedia Perdamaian Westfalen Berakhirnya Perang Tiga Puluh Tahun Pembatasan supremasi Habsburg Bangkitnya Kekaisaran Swedia Robohnya sistem feodalisme[2] Desentralisasi Kekaisaran Romawi Suci Penurunan substansi dalam kekuatan dan pengaruh Gereja KatolikPerubahanwila...

Pesta Olahraga Asia Tenggara Ke-25Tuan rumahVientiane LaosMotoGenerosity, Amity, Healthy, Lifestyle(bahasa Indonesia: Kemurahan Hati, Keramahtamahan, Kesehatan, dan Gaya Hidup)Jumlah negara11Jumlah disiplin379 dari 25 cabangUpacara pembukaan9 Desember 2009Upacara penutupan18 Desember 2009Dibuka olehChoummaly SayasonePresiden LaosTempat utamaStadion Nasional Laos← Nakhon Ratchasima 2007 Jakarta Palembang 2011 → Pesta Olahraga Negara-Negara Asia Tenggara 2009 (bahasa Inggri...

 

 

Census-designated place in California, United StatesBrookdalecensus-designated placeThe Brookdale Lodge in Brookdale, CaliforniaLocation of Brookdale in Santa Cruz County, California.BrookdaleLocation in CaliforniaCoordinates: 37°06′21″N 122°06′38″W / 37.10583°N 122.11056°W / 37.10583; -122.11056CountryUnited StatesStateCaliforniaCountySanta CruzArea[1] • Total3.85 sq mi (9.96 km2) • Land3.85 sq mi (9...

 

 

Song by Tin Machine Tin Machine/Maggie's FarmSingle by Tin Machinefrom the album Tin Machine B-sideMaggie's Farm / Bus Stop (live country version)ReleasedSeptember 1989RecordedAugust 1988 - early 1989; studio material recorded at Mountain Studios, Montreux Switzerland, and Compass Point Studios, Nassau live recording 25th of June 1989; at La Cigale, ParisGenreRockLength3:34/4:29LabelEMI MT 73Songwriter(s)Bowie, Gabrels, Sales, SalesProducer(s) Tin Machine Tim Palmer Tin Machine singles chrono...

جمعية الطلاب المسلمين (إندونيسيا) البلد إندونيسيا[1]  المقر الرئيسي جاكرتا  تاريخ التأسيس 5 فبراير 1947  تعديل مصدري - تعديل   رابطة الطلاب المسلمين (بالإندونيسية: Himpunan Mahasiswa Islam)‏ اختصاراً HMI، هي منظمة طلابية تأسست في يوجياكرتا في الرابع عشر من ربيع الأول 1366 هـ ال...

 

 

Santa GenevevaSanta Geneveva, lukisan abad ke-19Lahirsekitar 419/427Nanterre, PrancisMeninggal502/512Paris, PrancisDihormati diGereja Katolik Roma, Gereja Ortodoks TimurKanonisasi500Pesta3 JanuariPelindungParis Santa Geneveva adalah seorang santa yang dikenal sebagai pelindung kota Paris.[1][2] Hal itu dikarenakan Geneveva pernah menyelamatkan kota Paris dari serangan Attilla Hun.[1][2] Ketika Paris hampir diserang oleh Atilla dan pasukannya, banyak rakyat yang...

 

 

Neighborhood of Kabul in AfghanistanKharabat خراباتNeighborhood of KabulCountry AfghanistanProvinceKabul Kharābat (Dari: خرابات), is a neighborhood in the old city of Kabul, Afghanistan. It is a historic area near Hinduguzar, the quarter of Hindus and Sikhs. It has long accommodated musicians. Kharābat has educated many famous musicians of Afghanistan in the Indian Patiali school. Terminology The reason why the area is called Kharabat can be traced back to the term in Persi...

The Cheerleader AuthorRuth Doan MacDougallCountryUnited StatesLanguageEnglishPublisherPutnamPublication date1974Pages288 ppISBN0-9663352-0-1OCLC39368608Dewey Decimal813/.54 21LC ClassPS3563.A292 C48 1998 The Cheerleader is a 1973 coming of age novel by Ruth Doan MacDougall. Described on the author's website as searchingly honest, achingly real, [recalling] all the joy, excitement, and pain of crossing the bridge from childhood to young womanhood in the Fabulous Fifties, when sex was stil...

 

 

Wycombe Wanderers 2009–10 football seasonWycombe Wanderers2009–10 seasonChairmanIvor BeeksManagerPeter Taylor Gary WaddockLeague One22nd (Relegation)FA Cup1st RoundLeague Cup1st RoundTop goalscorerMatt Harrold (8)← 2008–092010–11 → The 2009–10 Football League One was Wycombe Wanderers F.C.'s sixteenth season of League football. This article shows statistics of the club's players in the season, and also lists all matches that the club has played during the seaso...

 

 

Philosopher Shaj MohanShaj Mohan, philosopherAlma materSt. Stephen's College, DelhiEraContemporary philosophySchoolDeconstructionPost-metaphysicsInstitutionsSt Stephen's College, DelhiLanguageEnglishMain interestsOntology Metaphysics Philosophy of technologyPhilosophy of politicsReasonAnastasisNotable ideasStasis,[1] anastasis, hypophysics,[2] Comprehending law[3] Shaj Mohan is an Indian philosopher.[4][5][6][7] His philosophical wo...

2001 compilation album by ABBA The Definitive CollectionCompilation album by ABBAReleased2 November 2001Recorded1972–1982StudioMetronome Studios, Stockholm; Polar Studios, Stockholm; Criteria Studios, Miami; Europafilm Studios, Stockholm; KMH Studios, Stockholm; Marcus Studios, Stockholm; Bohus Studio, Kungälv,GenrePopLength147:38LabelUniversal Music GroupProducerBenny Andersson, Björn UlvaeusABBA chronology Thank You for the Music(1994) The Definitive Collection(2001) 18 Hits(2005) P...

 

 

2011 single by Cast of Lemonade MouthBreakthroughSingle by Cast of Lemonade Mouthfrom the album Lemonade Mouth ReleasedMay 2, 2011Recorded2010GenreSynth-popLength3:27LabelWalt DisneySongwriter(s) Bryan Todd Maria Christensen Shridhar Solanki Adam Hicks Producer(s) Twin Bryan Todd Bridgit Mendler singles chronology Determinate(2011) Breakthrough(2011) Ready or Not(2012) Adam Hicks singles chronology Determinate(2011) Breakthrough(2011) Las Vegas (My City)(2011) Hayley Kiyoko single...

 

 

1993 educational video game and its 1999 remake 1993 video gameRichard Scarry's BusytownCover art of the original 1993 releaseDeveloper(s)Novotrade[3]Pearson Software[1] (1999 version)Publisher(s)Sega[2] (Sega Genesis version)Simon & Schuster[1] (DOS version, remake)Designer(s)Andras Csaszar[2]Zoltan Csaszar[2]Composer(s)Andras Magyari[2]Platform(s)DOSSega GenesisMicrosoft WindowsMac OSReleaseDOS: NA: 1993[1] Macintosh: NA: 1...

El término evolución biológica experimental, o evolución experimental, se refiere a la comprobación de hipótesis y teorías de la evolución biológica mediante el uso de experimentos controlados. Con las herramientas moleculares modernas, es posible identificar las mutaciones que actúa sobre la selección natural, lo que provocó las adaptaciones, y saber exactamente cómo funcionan estas mutaciones. Debido al gran número de generaciones requeridas para que la adaptación se produzca...

 

 

Ibrahim al-Ja'fari Primo ministro dell'IraqDurata mandato3 maggio 2005 –20 maggio 2006 PresidenteJalal Talabani PredecessoreIyad Allawi SuccessoreNuri al-Maliki Presidente del Consiglio di governo irachenoDurata mandato1º agosto 2003 –31 agosto 2003 PredecessoreMohammad Bahr al-Ulloum(ad interim) SuccessoreAhmad Chalabi Ministro degli affari esteri dell'IraqDurata mandato8 settembre 2014 –25 ottobre 2018 Capo del governoHaydar al-'Abadi Predece...

 

 

واصب شاهين (بالتركية: Vasip Şahin)‏    مناصب حاكم اسطنبول   في المنصب25 سبتمبر 2014  – 1 نوفمبر 2018    علي يرليقايا  معلومات شخصية الميلاد سنة 1964 (العمر 59–60 سنة)  بايبرد  مواطنة تركيا  الحياة العملية المدرسة الأم كلية الحقوق في جامعة إسطنبول  [لغات أخرى...

In Uzbek football, Uzbekistan Super League Topscorer (Uzbek: Oʻzbekiston Superligasi to'purari or Ўзбекистон Суперлигаси тўпурари) is an annual award by Uzbekistan Football Association given to the top goalscorer at the end of the Uzbekistan Super League season, the top domestic league competition in club football in Uzbekistan, since its creation in 1992. Jafar Irismetov is the only player who won award 3 times and the goalscorer scored most per season with 45 g...

 

 

Heavy lift ship History Name SS Empire Canute (1945–47) SS Belocean (1947–54) MV Belocean (1954–64) MV Southern Star (1964–68) MV Marie Ann (1968–76) Owner Ministry of War Transport (1945) Ministry of Transport (1945–47) Belships Co Ltd (1947–64) Bacong Shipping Co SA (1964–68) Manila Interocean Lines Inc (1968–76) Operator Christen Smith & Co Ltd (1947–64) Southern Industrial Products Ltd (1964–68) Manila Interocean Lines Inc (1968–76) Port of registry Greenock (1...

 

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!