Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:linux:realtime:benchmark:start [2019-01-24 10:09] – mgehrig2 | software:linux:realtime:benchmark:start [2023-04-11 11:17] (aktuell) – gelöscht Urs Graf | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Benchmark ======= | ||
| - | ===== Introduction ===== | ||
| - | There are many different tools available to measure the realtime performance of a system. | ||
| - | |||
| - | The cyclictest is the simplest and most usefull benchmark. | ||
| - | |||
| - | |||
| - | ===== Cyclictest ===== | ||
| - | The Cyclictest starts several tasks, which are called periodically. | ||
| - | The effective period duration is measured and the jitter is displayed. | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | A presentation from the " | ||
| - | The presentation can be watched on [[https:// | ||
| - | The PPT slides can be downloaded {{: | ||
| - | |||
| - | ==== Installation ==== | ||
| - | < | ||
| - | sudo apt-get install build-essential libnuma-dev | ||
| - | cd rt-tests | ||
| - | make all | ||
| - | </ | ||
| - | |||
| - | To install the Cyclictest on a MPC follow [[software: | ||
| - | |||
| - | ==== Quickstart ==== | ||
| - | < | ||
| - | sudo ./ | ||
| - | </ | ||
| - | |||
| - | 5 threads are created, which are called periodically. | ||
| - | After a few minutes, the maximum latency can be roughly estimated. | ||
| - | |||
| - | |||
| - | ==== Extensive Measurement ==== | ||
| - | In order to benchmark the realtime performance of a system well appropriately, | ||
| - | The frequency of different latencies can be counted and displayed in a histogram. | ||
| - | |||
| - | === Start Benchmark === | ||
| - | < | ||
| - | |||
| - | [{{ : | ||
| - | |||
| - | | -Sp80 |S = alle cores; p = priority**-**80 (Realtime)| | ||
| - | | -l86400000 | ||
| - | | -i1000 | ||
| - | | -h1000 | ||
| - | | -q |quiet| | ||
| - | ^ Measurement time: |l86400000*i1000 = 86400e6us = 86400s = 24h| | ||
| - | |||
| - | All measurements longer than '' | ||
| - | |||
| - | To plot the histogram this Matlab script {{: | ||
| - | |||
| - | The homepage of [[https:// | ||